This commit is contained in:
jl777
2017-03-21 19:37:05 +02:00
parent 912af0a61b
commit aaf80ce83f

View File

@@ -887,10 +887,7 @@ int32_t komodo_validate_interest(const CTransaction& tx)
tiptime = activeChain.Tip()->nBlockTime; tiptime = activeChain.Tip()->nBlockTime;
if ( (int64_t)tx.nLockTime < tiptime-3600 ) if ( (int64_t)tx.nLockTime < tiptime-3600 )
{ {
for (i=0; i<sizeof(grandfathered)/sizeof(*grandfathered); i++) if ( komodo_grandfathered(tiptime) < 0 )
if ( nBlockTime == grandfathered[i] )
break;
if ( i == sizeof(grandfathered)/sizeof(*grandfathered) )
{ {
fprintf(stderr,"komodo_validate_interest reject locktime %u vs nBlockTime %u tiptime.%u\n",tx.nLockTime,(uint32_t)activeChain.Tip()->nBlockTime,tiptime); fprintf(stderr,"komodo_validate_interest reject locktime %u vs nBlockTime %u tiptime.%u\n",tx.nLockTime,(uint32_t)activeChain.Tip()->nBlockTime,tiptime);
return(-1); return(-1);