Increment sapling note witnesses

This commit is contained in:
Eirik Ogilvie-Wigley
2018-07-17 12:02:27 -06:00
committed by Simon
parent f86ee1c252
commit 45de2eda07
2 changed files with 26 additions and 1 deletions

View File

@@ -266,7 +266,13 @@ public:
class SaplingNoteData
{
public:
std::list<ZCIncrementalWitness> witnesses;
/**
* We initialize the hight to -1 for the same reason as we do in SproutNoteData.
* See the comment in that class for a full description.
*/
SaplingNoteData() : witnessHeight {-1} { }
std::list<ZCSaplingIncrementalWitness> witnesses;
int witnessHeight;
};