Increment witnesses for new transactions on rescan

Closes #1400
This commit is contained in:
Jack Grigg
2016-10-13 01:02:13 -05:00
parent fd23341f1e
commit b6961fc112
6 changed files with 60 additions and 16 deletions

View File

@@ -138,6 +138,9 @@ public:
//! Verification status of this block. See enum BlockStatus
unsigned int nStatus;
//! The anchor for the tree state up to the start of this block
uint256 hashAnchor;
//! block header
int nVersion;
uint256 hashMerkleRoot;
@@ -163,6 +166,7 @@ public:
nTx = 0;
nChainTx = 0;
nStatus = 0;
hashAnchor = uint256();
nSequenceId = 0;
nVersion = 0;
@@ -320,6 +324,7 @@ public:
READWRITE(VARINT(nDataPos));
if (nStatus & BLOCK_HAVE_UNDO)
READWRITE(VARINT(nUndoPos));
READWRITE(hashAnchor);
// block header
READWRITE(this->nVersion);