From 2c8363bb86525fa1a3ac5d9a2fd1c5b915cbc83e Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 15 Dec 2018 08:18:10 -1100 Subject: [PATCH] Revalidate sapling activation height --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 55beec474..dab6222ab 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4920,7 +4920,7 @@ bool AcceptBlockHeader(int32_t *futureblockp,const CBlockHeader& block, CValidat *ppindex = pindex; if ( pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK ) { - if ( ASSETCHAINS_CC == 0 ) + if ( ASSETCHAINS_CC == 0 && pindex->nHeight != mainParams.consensus.vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight ) return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate"); else {