Skip to content

Commit 613c46f

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 2679bb8 commit 613c46f

File tree

2 files changed

+158
-115
lines changed

2 files changed

+158
-115
lines changed

0 commit comments

Comments
 (0)