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/consensus/tx_verify.h | |
| 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/consensus/tx_verify.h')
| -rw-r--r-- | src/consensus/tx_verify.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/consensus/tx_verify.h b/src/consensus/tx_verify.h index 3519fc555..b6599f287 100644 --- a/src/consensus/tx_verify.h +++ b/src/consensus/tx_verify.h @@ -13,7 +13,7 @@ class CBlockIndex; class CCoinsViewCache; class CTransaction; -class CValidationState; +class TxValidationState; /** Transaction validation functions */ @@ -24,7 +24,7 @@ namespace Consensus { * @param[out] txfee Set to the transaction fee if successful. * Preconditions: tx.IsCoinBase() is false. */ -bool CheckTxInputs(const CTransaction& tx, CValidationState& state, const CCoinsViewCache& inputs, int nSpendHeight, CAmount& txfee); +bool CheckTxInputs(const CTransaction& tx, TxValidationState& state, const CCoinsViewCache& inputs, int nSpendHeight, CAmount& txfee); } // namespace Consensus /** Auxiliary functions for transaction validation (ideally should not be exposed) */ |