Test
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user