mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
refactor: Remove unused EnsureChainman
This commit is contained in:
@@ -75,7 +75,10 @@ CTxMemPool& EnsureMemPool(const util::Ref& context)
|
||||
ChainstateManager& EnsureChainman(const util::Ref& context)
|
||||
{
|
||||
NodeContext& node = EnsureNodeContext(context);
|
||||
return EnsureChainman(node);
|
||||
if (!node.chainman) {
|
||||
throw JSONRPCError(RPC_INTERNAL_ERROR, "Node chainman not found");
|
||||
}
|
||||
return *node.chainman;
|
||||
}
|
||||
|
||||
/* Calculate the difficulty for a given block index.
|
||||
|
||||
Reference in New Issue
Block a user