mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
refactor: pcoinsTip -> CChainState::CoinsTip()
This aliasing makes subsequent commits easier to review; eventually CoinsTip() will return the CCoinsViewCache managed by CChainState.
This commit is contained in:
parent
e5fdda68c6
commit
fae6ab6aed
13 changed files with 70 additions and 58 deletions
|
|
@ -10,8 +10,7 @@
|
|||
void FindCoins(std::map<COutPoint, Coin>& coins)
|
||||
{
|
||||
LOCK2(cs_main, ::mempool.cs);
|
||||
assert(pcoinsTip);
|
||||
CCoinsViewCache& chain_view = *::pcoinsTip;
|
||||
CCoinsViewCache& chain_view = ::ChainstateActive().CoinsTip();
|
||||
CCoinsViewMemPool mempool_view(&chain_view, ::mempool);
|
||||
for (auto& coin : coins) {
|
||||
if (!mempool_view.GetCoin(coin.first, coin.second)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue