From 3d02f57b4235eac7b9dd1e6bf38bcf84504626b5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 25 Mar 2017 01:10:50 +0200 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 583993481..fd307a805 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -810,7 +810,7 @@ int32_t komodo_validate_interest(const CTransaction &tx,int32_t txheight,uint32_ uint32_t cmptime = nTime; if ( KOMODO_REWIND == 0 && ASSETCHAINS_SYMBOL[0] == 0 && (int64_t)tx.nLockTime >= LOCKTIME_THRESHOLD ) //1473793441 ) { - if ( txheight > 246748-1000 ) + if ( txheight > 246748 ) { if ( txheight < 247205 ) cmptime -= 600; diff --git a/src/main.cpp b/src/main.cpp index 2e0ea8fff..1599b2fe1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1111,7 +1111,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa if (pfMissingInputs) *pfMissingInputs = false; auto verifier = libzcash::ProofVerifier::Strict(); - if ( komodo_validate_interest(tx,chainActive.Tip()->nHeight+1,chainActive.Tip()->GetMedianTimePast() + 777,3) < 0 ) + if ( komodo_validate_interest(tx,chainActive.Tip()->nHeight+1,chainActive.Tip()->GetMedianTimePast() + 777,0) < 0 ) { fprintf(stderr,"AcceptToMemoryPool komodo_validate_interest failure\n"); return error("AcceptToMemoryPool: komodo_validate_interest failed");