Add support for PopAnchor(.., SPROUT/SAPLING)

This commit is contained in:
Sean Bowe
2018-05-06 19:05:11 -06:00
parent 27616b9a04
commit c643ff0b51
4 changed files with 30 additions and 16 deletions

View File

@@ -2150,7 +2150,7 @@ bool DisconnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex
}
// set the old best anchor back
view.PopAnchor(blockUndo.old_tree_root);
view.PopAnchor(blockUndo.old_tree_root, SPROUT);
// move best block pointer to prevout block
view.SetBestBlock(pindex->pprev->GetBlockHash());