diff options
| author | James O'Beirne <[email protected]> | 2019-07-24 11:45:04 -0400 |
|---|---|---|
| committer | James O'Beirne <[email protected]> | 2019-08-06 13:13:06 -0400 |
| commit | fae6ab6aed3b9fdc9201bb19a307dfc3d9b89891 (patch) | |
| tree | 32136f410bdb26e8c414caddf9e3c86dbf45a8db /src/node/coin.cpp | |
| parent | Merge #16554: test: only include and use OpenSSL where it's actually needed (... (diff) | |
| download | discoin-fae6ab6aed3b9fdc9201bb19a307dfc3d9b89891.tar.xz discoin-fae6ab6aed3b9fdc9201bb19a307dfc3d9b89891.zip | |
refactor: pcoinsTip -> CChainState::CoinsTip()
This aliasing makes subsequent commits easier to review; eventually CoinsTip()
will return the CCoinsViewCache managed by CChainState.
Diffstat (limited to 'src/node/coin.cpp')
| -rw-r--r-- | src/node/coin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node/coin.cpp b/src/node/coin.cpp index bb98e63f3..ad8d1d3af 100644 --- a/src/node/coin.cpp +++ b/src/node/coin.cpp @@ -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)) { |