Add consensus support for Sapling merkle trees.

This commit is contained in:
Sean Bowe
2018-05-06 23:27:52 -06:00
parent 85b39f57bb
commit 1f8be05b63
5 changed files with 47 additions and 25 deletions

View File

@@ -67,14 +67,14 @@ class CBlockUndo
{
public:
std::vector<CTxUndo> vtxundo; // for all but the coinbase
uint256 old_tree_root;
uint256 old_sprout_tree_root;
ADD_SERIALIZE_METHODS;
template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action) {
READWRITE(vtxundo);
READWRITE(old_tree_root);
READWRITE(old_sprout_tree_root);
}
};