mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
refactor: Remove unused EnsureChainman
This commit is contained in:
parent
fa34587f1c
commit
fab80fef61
3 changed files with 7 additions and 9 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue