mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-13 16:48:08 +00:00
Deserialized cnHeader in txdb.
This commit is contained in:
parent
cb9d3dbec7
commit
c5fc61ba4b
@ -380,6 +380,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts(const Consensus::Params& consensusParams,
|
||||
pindexNew->nNonce = diskindex.nNonce;
|
||||
pindexNew->nStatus = diskindex.nStatus;
|
||||
pindexNew->nTx = diskindex.nTx;
|
||||
pindexNew->cnHeader = diskindex.cnHeader;
|
||||
|
||||
// Kevacoin: Disable PoW Sanity check while loading block index from disk.
|
||||
// We use the sha256 hash for the block index for performance reasons, which is recorded for later use.
|
||||
|
@ -2294,12 +2294,6 @@ bool CChainState::DisconnectTip(CValidationState& state, const CChainParams& cha
|
||||
if (!FlushStateToDisk(chainparams, state, FLUSH_STATE_IF_NEEDED))
|
||||
return false;
|
||||
|
||||
#if 0
|
||||
// We don't need this because names never expire.
|
||||
AssertLockHeld(cs_main);
|
||||
CNameConflictTracker nameConflicts(mempool);
|
||||
#endif
|
||||
|
||||
if (disconnectpool) {
|
||||
// Save transactions to re-add to mempool at end of reorg
|
||||
for (auto it = block.vtx.rbegin(); it != block.vtx.rend(); ++it) {
|
||||
|
Loading…
Reference in New Issue
Block a user