Auto merge of #4120 - daira:testnet-blossom-rewind, r=Eirik0

Add intended rewind for Blossom on testnet

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Homu 2019-08-28 16:03:09 -07:00
commit ff5729bbe9
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);