File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1021,7 +1021,7 @@ bool CTxMemPool::HasNoInputsOf(const CTransaction &tx) const
10211021 return true ;
10221022}
10231023
1024- CCoinsViewMemPool::CCoinsViewMemPool (CCoinsView * baseIn, CTxMemPool & mempoolIn) : CCoinsViewBacked(baseIn), mempool(mempoolIn) { }
1024+ CCoinsViewMemPool::CCoinsViewMemPool (CCoinsView* baseIn, const CTxMemPool& mempoolIn) : CCoinsViewBacked(baseIn), mempool(mempoolIn) { }
10251025
10261026bool CCoinsViewMemPool::GetCoin (const COutPoint &outpoint, Coin &coin) const {
10271027 // If an entry in the mempool exists, always return that one, as it's guaranteed to never
Original file line number Diff line number Diff line change @@ -718,10 +718,10 @@ class CTxMemPool
718718class CCoinsViewMemPool : public CCoinsViewBacked
719719{
720720protected:
721- CTxMemPool & mempool;
721+ const CTxMemPool& mempool;
722722
723723public:
724- CCoinsViewMemPool (CCoinsView * baseIn, CTxMemPool & mempoolIn);
724+ CCoinsViewMemPool (CCoinsView* baseIn, const CTxMemPool& mempoolIn);
725725 bool GetCoin (const COutPoint &outpoint, Coin &coin) const override ;
726726};
727727
You can’t perform that action at this time.
0 commit comments