validation: Make CChainState.m_blockman public
This commit is contained in:
1 parent
d363d06bf7
commit
0e17c833cd
2 files changed
+6
-7
No files matched your search
+2
-2
@@ -1264,8 +1264,8 @@ void CoinsViews::InitCache()
|
|||||||
}
|
}
|
||||||
|
|
||||||
CChainState::CChainState(CTxMemPool& mempool, BlockManager& blockman, uint256 from_snapshot_blockhash)
|
CChainState::CChainState(CTxMemPool& mempool, BlockManager& blockman, uint256 from_snapshot_blockhash)
|
||||||
: m_blockman(blockman),
|
: m_mempool(mempool),
|
||||||
m_mempool(mempool),
|
m_blockman(blockman),
|
||||||
m_from_snapshot_blockhash(from_snapshot_blockhash) {}
|
m_from_snapshot_blockhash(from_snapshot_blockhash) {}
|
||||||
|
|
||||||
void CChainState::InitCoinsDB(
|
void CChainState::InitCoinsDB(
|
||||||
|
|||||||
+4
-5
@@ -536,11 +536,6 @@ protected:
|
|||||||
*/
|
*/
|
||||||
mutable std::atomic<bool> m_cached_finished_ibd{false};
|
mutable std::atomic<bool> m_cached_finished_ibd{false};
|
||||||
|
|
||||||
//! Reference to a BlockManager instance which itself is shared across all
|
|
||||||
//! CChainState instances. Keeping a local reference allows us to test more
|
|
||||||
//! easily as opposed to referencing a global.
|
|
||||||
BlockManager& m_blockman;
|
|
||||||
|
|
||||||
//! mempool that is kept in sync with the chain
|
//! mempool that is kept in sync with the chain
|
||||||
CTxMemPool& m_mempool;
|
CTxMemPool& m_mempool;
|
||||||
|
|
||||||
@@ -548,6 +543,10 @@ protected:
|
|||||||
std::unique_ptr<CoinsViews> m_coins_views;
|
std::unique_ptr<CoinsViews> m_coins_views;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
//! Reference to a BlockManager instance which itself is shared across all
|
||||||
|
//! CChainState instances.
|
||||||
|
BlockManager& m_blockman;
|
||||||
|
|
||||||
explicit CChainState(CTxMemPool& mempool, BlockManager& blockman, uint256 from_snapshot_blockhash = uint256());
|
explicit CChainState(CTxMemPool& mempool, BlockManager& blockman, uint256 from_snapshot_blockhash = uint256());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user