Changeset View
Changeset View
Standalone View
Standalone View
src/node/context.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | struct NodeContext { | ||||
//! Declare default constructor and destructor that are not inline, so code | //! Declare default constructor and destructor that are not inline, so code | ||||
//! instantiating the NodeContext struct doesn't need to #include class | //! instantiating the NodeContext struct doesn't need to #include class | ||||
//! definitions for all the unique_ptr members. | //! definitions for all the unique_ptr members. | ||||
NodeContext(); | NodeContext(); | ||||
~NodeContext(); | ~NodeContext(); | ||||
}; | }; | ||||
inline ChainstateManager &EnsureChainman(const NodeContext &node) { | |||||
assert(node.chainman); | |||||
return *node.chainman; | |||||
} | |||||
#endif // BITCOIN_NODE_CONTEXT_H | #endif // BITCOIN_NODE_CONTEXT_H |