EnsureAnyChainman

Get the chainstate manager from an opaque RPC context, asserting it is present.

Synopsis

Declared in <rpc/server_util.h>

ChainstateManager&
EnsureAnyChainman(std::any const& context);

Return Value

The node's chainstate manager.

Parameters

NameDescription
contextThe opaque per-connection context.