move new zindex stuff to the end of serialization and more logging
This commit is contained in:
29
src/chain.h
29
src/chain.h
@@ -607,20 +607,6 @@ public:
|
||||
READWRITE(VARINT(nStatus));
|
||||
READWRITE(VARINT(nTx));
|
||||
|
||||
// These values only serialized when -zindex enabled
|
||||
if((s.GetType() & SER_DISK) && fZindex) {
|
||||
READWRITE(VARINT(nShieldedTx));
|
||||
READWRITE(VARINT(nShieldingTx));
|
||||
READWRITE(VARINT(nDeshieldingTx));
|
||||
READWRITE(VARINT(nFullyShieldedTx));
|
||||
|
||||
READWRITE(VARINT(nShieldedPayments));
|
||||
READWRITE(VARINT(nShieldingPayments));
|
||||
READWRITE(VARINT(nDeshieldingPayments));
|
||||
READWRITE(VARINT(nFullyShieldedPayments));
|
||||
|
||||
READWRITE(VARINT(nNotarizations));
|
||||
}
|
||||
|
||||
if (nStatus & (BLOCK_HAVE_DATA | BLOCK_HAVE_UNDO))
|
||||
READWRITE(VARINT(nFile));
|
||||
@@ -668,6 +654,21 @@ public:
|
||||
READWRITE(nNotaryPay);
|
||||
READWRITE(segid);
|
||||
}
|
||||
|
||||
// These values only serialized when -zindex enabled
|
||||
if((s.GetType() & SER_DISK) && fZindex) {
|
||||
READWRITE(VARINT(nShieldedTx));
|
||||
READWRITE(VARINT(nShieldingTx));
|
||||
READWRITE(VARINT(nDeshieldingTx));
|
||||
READWRITE(VARINT(nFullyShieldedTx));
|
||||
|
||||
READWRITE(VARINT(nPayments));
|
||||
READWRITE(VARINT(nNotarizations));
|
||||
READWRITE(VARINT(nShieldedPayments));
|
||||
READWRITE(VARINT(nShieldingPayments));
|
||||
READWRITE(VARINT(nDeshieldingPayments));
|
||||
READWRITE(VARINT(nFullyShieldedPayments));
|
||||
}
|
||||
}
|
||||
|
||||
uint256 GetBlockHash() const
|
||||
|
||||
Reference in New Issue
Block a user