Skip to content

Commit f8ad2ff

Browse files
laanwjcodablock
authored andcommitted
Merge bitcoin#7977: [trivial] Add missing const qualifiers.
f7c4f79 [trivial] Add missing const qualifiers. (Daniel Kraft)
1 parent e6b2f91 commit f8ad2ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/txmempool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

10261026
bool 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

src/txmempool.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,10 +718,10 @@ class CTxMemPool
718718
class CCoinsViewMemPool : public CCoinsViewBacked
719719
{
720720
protected:
721-
CTxMemPool &mempool;
721+
const CTxMemPool& mempool;
722722

723723
public:
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

0 commit comments

Comments
 (0)