diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index b1c816fac..5b55e5c07 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -222,6 +222,7 @@ public: inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) { READWRITE(address); READWRITE(nullifier); + READWRITE(witnesses); } friend bool operator<(const CNoteData& a, const CNoteData& b) { diff --git a/src/zcash/IncrementalMerkleTree.hpp b/src/zcash/IncrementalMerkleTree.hpp index 419d74840..1d023168a 100644 --- a/src/zcash/IncrementalMerkleTree.hpp +++ b/src/zcash/IncrementalMerkleTree.hpp @@ -131,6 +131,9 @@ class IncrementalWitness { friend class IncrementalMerkleTree; public: + // Required for Unserialize() + IncrementalWitness() {} + MerklePath path() const { return tree.path(partial_path()); }