diff options
| author | Pieter Wuille <[email protected]> | 2014-09-10 01:38:43 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-10 01:44:30 +0200 |
| commit | f7cdcb80ab7016e33e8399df796885ce54eb63b0 (patch) | |
| tree | 0d8dc00b07b55b3be99fb475d04827f5e37506c6 /src/txmempool.cpp | |
| parent | Merge pull request #4882 (diff) | |
| parent | Combine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins. (diff) | |
| download | discoin-f7cdcb80ab7016e33e8399df796885ce54eb63b0.tar.xz discoin-f7cdcb80ab7016e33e8399df796885ce54eb63b0.zip | |
Merge pull request #4822
629d75f Combine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins. (Pieter Wuille)
Diffstat (limited to 'src/txmempool.cpp')
| -rw-r--r-- | src/txmempool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 28339837b..6bbadc834 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -509,8 +509,8 @@ void CTxMemPool::check(const CCoinsViewCache *pcoins) const const CTransaction& tx2 = it2->second.GetTx(); assert(tx2.vout.size() > txin.prevout.n && !tx2.vout[txin.prevout.n].IsNull()); } else { - const CCoins &coins = pcoins->GetCoins(txin.prevout.hash); - assert(coins.IsAvailable(txin.prevout.n)); + const CCoins* coins = pcoins->AccessCoins(txin.prevout.hash); + assert(coins && coins->IsAvailable(txin.prevout.n)); } // Check whether its inputs are marked in mapNextTx. std::map<COutPoint, CInPoint>::const_iterator it3 = mapNextTx.find(txin.prevout); |