aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2022-01-19 04:10:26 +1000
committerAnthony Towns <aj@erisian.com.au>2022-05-10 12:09:33 +1000
commiteaa2e3f25cefbd1b9a1214102f88dbfa8109d244 (patch)
treedb2dbb9f0656a95ced4b7a37c6456b510f4184df /src/validation.h
parent5c67e84d37d452e9186a6357e5405fabeff241c7 (diff)
downloadbitcoin-eaa2e3f25cefbd1b9a1214102f88dbfa8109d244.tar.xz
validation: move UpdateUncommittedBlockStructures and GenerateCoinbaseCommitment into ChainstateManager
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/validation.h b/src/validation.h
index 1c30bcb57d..55f8b841f4 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -362,12 +362,6 @@ bool TestBlockValidity(BlockValidationState& state,
bool fCheckPOW = true,
bool fCheckMerkleRoot = true) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
-/** Update uncommitted block structures (currently: only the witness reserved value). This is safe for submitted blocks. */
-void UpdateUncommittedBlockStructures(CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams);
-
-/** Produce the necessary coinbase commitment for a block (modifies the hash, don't call for mined blocks). */
-std::vector<unsigned char> GenerateCoinbaseCommitment(CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams);
-
/** RAII wrapper for VerifyDB: Verify consistency of the block and coin databases */
class CVerifyDB {
public:
@@ -1000,6 +994,12 @@ public:
//! ResizeCoinsCaches() as needed.
void MaybeRebalanceCaches() EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
+ /** Update uncommitted block structures (currently: only the witness reserved value). This is safe for submitted blocks. */
+ void UpdateUncommittedBlockStructures(CBlock& block, const CBlockIndex* pindexPrev) const;
+
+ /** Produce the necessary coinbase commitment for a block (modifies the hash, don't call for mined blocks). */
+ std::vector<unsigned char> GenerateCoinbaseCommitment(CBlock& block, const CBlockIndex* pindexPrev) const;
+
~ChainstateManager();
};