Add intended rewind for Blossom on testnet.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2019-08-26 17:37:53 +01:00
parent 0512e9eb00
commit 7d5de93518
1 changed files with 3 additions and 1 deletions

View File

@ -4636,7 +4636,9 @@ bool RewindBlockIndex(const CChainParams& chainparams, bool& clearWitnessCaches)
// This is true when we intend to do a long rewind.
bool intendedRewind =
(networkID == "test" && nHeight == 252500 && *phashFirstInsufValidated ==
uint256S("0018bd16a9c6f15795a754c498d2b2083ab78f14dae44a66a8d0e90ba8464d9c"));
uint256S("0018bd16a9c6f15795a754c498d2b2083ab78f14dae44a66a8d0e90ba8464d9c")) ||
(networkID == "test" && nHeight == 584000 && *phashFirstInsufValidated ==
uint256S("002e1d6daf4ab7b296e7df839dc1bee9d615583bb4bc34b1926ce78307532852"));
clearWitnessCaches = (rewindLength > MAX_REORG_LENGTH && intendedRewind);