From 3a3bb52b7f9cede3ed7a3f159f63da0100fbd009 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 9 Jul 2019 05:02:44 -1100 Subject: [PATCH] KOMODO_EARLYTXID_HEIGHT 200 --- src/bitcoind.cpp | 2 +- src/komodo_defs.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index f0055d7fd..a356e20a7 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -70,7 +70,7 @@ void WaitForShutdown(boost::thread_group* threadGroup) { int32_t i,height; bool fShutdown = ShutdownRequested(); const uint256 zeroid; // Tell the main threads to shutdown. - if (komodo_currentheight()>100 && KOMODO_EARLYTXID!=zeroid && ((height=tx_height(KOMODO_EARLYTXID))==0 || height>100)) + if (komodo_currentheight()>KOMODO_EARLYTXID_HEIGHT && KOMODO_EARLYTXID!=zeroid && ((height=tx_height(KOMODO_EARLYTXID))==0 || height>KOMODO_EARLYTXID_HEIGHT)) { fprintf(stderr,"error: earlytx must be before block height 100 or tx does not exist\n"); StartShutdown(); diff --git a/src/komodo_defs.h b/src/komodo_defs.h index 06ed750a5..001ee0dce 100644 --- a/src/komodo_defs.h +++ b/src/komodo_defs.h @@ -17,6 +17,7 @@ #define KOMODO_DEFS_H #include "komodo_nk.h" +#define KOMODO_EARLYTXID_HEIGHT 200 #define ASSETCHAINS_MINHEIGHT 128 #define ASSETCHAINS_MAX_ERAS 7 #define KOMODO_ELECTION_GAP 2000