From 0d4c230f4947572af2c4f4c8b3525e86838ebfa4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 15 Dec 2018 08:51:26 -1100 Subject: [PATCH] Test --- src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6bc50a646..cba9ffe5c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1076,10 +1076,13 @@ bool ContextualCheckTransaction( } // Rules that apply to Overwinter or later: - if (overwinterActive) { + if (overwinterActive) + { // Reject transactions intended for Sprout - if (!tx.fOverwintered) { + if (!tx.fOverwintered) + { int32_t ht = Params().GetConsensus().vUpgrades[Consensus::UPGRADE_OVERWINTER].nActivationHeight; + fprintf(stderr,"overwinter is active tx.%s not, ht.%d vs %d\n",tx.GetHash().ToString(),nHeight,ht); return state.DoS((ASSETCHAINS_PRIVATE != 0 || ht < 0 || nHeight < ht) ? 0 : dosLevel, error("ContextualCheckTransaction: overwinter is active"),REJECT_INVALID, "tx-overwinter-active"); }