Skip to content

Commit 04fa434

Browse files
committed
refactoring: move block metadata structures into BlockManager
Separate out the management of chain-agnostic block metadata from any given CChainState instance. This allows us to avoid duplicating data like `mapBlockIndex` unnecessarily for multiple chainstates. This also adds a CChainState constructor that accepts and sets m_blockman. Ultimately this reference will point to a BlockMan instance that is shared across CChainStates. This commit can be decomposed into smaller commits if necessary.
1 parent 8a503a6 commit 04fa434

File tree

2 files changed

+158
-118
lines changed

2 files changed

+158
-118
lines changed

0 commit comments

Comments
 (0)