Add tests for sapling anchors

This commit is contained in:
Eirik Ogilvie-Wigley
2018-05-16 10:31:53 -06:00
parent b1d2a69908
commit 3182b4abc3
4 changed files with 143 additions and 126 deletions

View File

@@ -2430,8 +2430,8 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
pos.nTxOffset += ::GetSerializeSize(tx, SER_DISK, CLIENT_VERSION);
}
view.PushSproutAnchor(sprout_tree);
view.PushSaplingAnchor(sapling_tree);
view.PushAnchor(sprout_tree);
view.PushAnchor(sapling_tree);
if (!fJustCheck) {
pindex->hashFinalSproutRoot = sprout_tree.root();
}