diff options
| author | John Newbery <[email protected]> | 2019-10-24 11:35:42 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2019-10-29 15:46:45 -0400 |
| commit | a27a2957ed9afbe5a96caa5f0f4cbec730d27460 (patch) | |
| tree | e83a88e5984432ac8ac8b54b623f4c0ee88fc3b4 /src/miner.cpp | |
| parent | Merge #17242: refactor: Remove unused cacheSigStore from CheckInputsFromMempo... (diff) | |
| download | discoin-a27a2957ed9afbe5a96caa5f0f4cbec730d27460.tar.xz discoin-a27a2957ed9afbe5a96caa5f0f4cbec730d27460.zip | |
[validation] Add CValidationState subclasses
Split CValidationState into TxValidationState and BlockValidationState
to store validation results for transactions and blocks respectively.
Diffstat (limited to 'src/miner.cpp')
| -rw-r--r-- | src/miner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index 4f51be8a0..1c9174ee0 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -162,7 +162,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc pblock->nNonce = 0; pblocktemplate->vTxSigOpsCost[0] = WITNESS_SCALE_FACTOR * GetLegacySigOpCount(*pblock->vtx[0]); - CValidationState state; + BlockValidationState state; if (!TestBlockValidity(state, chainparams, *pblock, pindexPrev, false, false)) { throw std::runtime_error(strprintf("%s: TestBlockValidity failed: %s", __func__, FormatStateMessage(state))); } |