Test
This commit is contained in:
@@ -713,8 +713,7 @@ bool IsFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime,int
|
|||||||
return true;
|
return true;
|
||||||
if ( ASSETCHAINS_SYMBOL[0] == 0 && flags == STANDARD_LOCKTIME_VERIFY_FLAGS && (int64_t)tx.nLockTime >= LOCKTIME_THRESHOLD && (int64_t)tx.nLockTime < nBlockTime-3600 )
|
if ( ASSETCHAINS_SYMBOL[0] == 0 && flags == STANDARD_LOCKTIME_VERIFY_FLAGS && (int64_t)tx.nLockTime >= LOCKTIME_THRESHOLD && (int64_t)tx.nLockTime < nBlockTime-3600 )
|
||||||
{
|
{
|
||||||
//if ( nBlockTime >= 1490159171 ) // 246748
|
if ( nBlockTime >= 1490159171 ) // 246748
|
||||||
if ( nBlockHeight > 246748 )
|
|
||||||
{
|
{
|
||||||
fprintf(stderr,"[%d] IsFinalTx reject locktime %u vs nBlockTime %u\n",(int32_t)(tx.nLockTime-nBlockTime),tx.nLockTime,(uint32_t)nBlockTime);
|
fprintf(stderr,"[%d] IsFinalTx reject locktime %u vs nBlockTime %u\n",(int32_t)(tx.nLockTime-nBlockTime),tx.nLockTime,(uint32_t)nBlockTime);
|
||||||
return(false); // need to prevent pastdating tx
|
return(false); // need to prevent pastdating tx
|
||||||
@@ -875,8 +874,7 @@ int32_t komodo_validate_interest(const CTransaction& tx)
|
|||||||
tiptime = chainActive.Tip()->nTime;
|
tiptime = chainActive.Tip()->nTime;
|
||||||
if ( (int64_t)tx.nLockTime < tiptime-3600 )
|
if ( (int64_t)tx.nLockTime < tiptime-3600 )
|
||||||
{
|
{
|
||||||
//if ( tiptime > 1490159171 ) // 246748
|
if ( tiptime > 1490159171 ) // 246748
|
||||||
if ( txheight > 246748 )
|
|
||||||
{
|
{
|
||||||
static uint32_t counter;
|
static uint32_t counter;
|
||||||
if ( counter++ < 100 )
|
if ( counter++ < 100 )
|
||||||
|
|||||||
Reference in New Issue
Block a user