File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1264,8 +1264,8 @@ void CoinsViews::InitCache()
1264
1264
}
1265
1265
1266
1266
CChainState::CChainState (CTxMemPool& mempool, BlockManager& blockman, uint256 from_snapshot_blockhash)
1267
- : m_blockman(blockman ),
1268
- m_mempool(mempool ),
1267
+ : m_mempool(mempool ),
1268
+ m_blockman(blockman ),
1269
1269
m_from_snapshot_blockhash(from_snapshot_blockhash) {}
1270
1270
1271
1271
void CChainState::InitCoinsDB (
Original file line number Diff line number Diff line change @@ -536,18 +536,17 @@ class CChainState
536
536
*/
537
537
mutable std::atomic<bool > m_cached_finished_ibd{false };
538
538
539
- // ! Reference to a BlockManager instance which itself is shared across all
540
- // ! CChainState instances. Keeping a local reference allows us to test more
541
- // ! easily as opposed to referencing a global.
542
- BlockManager& m_blockman;
543
-
544
539
// ! mempool that is kept in sync with the chain
545
540
CTxMemPool& m_mempool;
546
541
547
542
// ! Manages the UTXO set, which is a reflection of the contents of `m_chain`.
548
543
std::unique_ptr<CoinsViews> m_coins_views;
549
544
550
545
public:
546
+ // ! Reference to a BlockManager instance which itself is shared across all
547
+ // ! CChainState instances.
548
+ BlockManager& m_blockman;
549
+
551
550
explicit CChainState (CTxMemPool& mempool, BlockManager& blockman, uint256 from_snapshot_blockhash = uint256());
552
551
553
552
/* *
You can’t perform that action at this time.
0 commit comments