diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-04-18 09:55:57 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-05-21 09:56:16 -0400 |
commit | fa1d97b25686a5caca623599f6d608fd08616fe8 (patch) | |
tree | 512acf98aae5436c61ba7870c0876ea611ae1210 /src/rpc/blockchain.cpp | |
parent | fa24d4909864096934577abc26cfa9be47f634ba (diff) |
validation: Make ProcessNewBlock*() members of ChainstateManager
Diffstat (limited to 'src/rpc/blockchain.cpp')
-rw-r--r-- | src/rpc/blockchain.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 3c5fd565e3..50cea07e0a 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -71,6 +71,12 @@ CTxMemPool& EnsureMemPool(const util::Ref& context) return *node.mempool; } +ChainstateManager& EnsureChainman(const util::Ref& context) +{ + NodeContext& node = EnsureNodeContext(context); + return EnsureChainman(node); +} + /* Calculate the difficulty for a given block index. */ double GetDifficulty(const CBlockIndex* blockindex) |