From 750456d6f29c63d57af05bfbdd6035bb9c965de2 Mon Sep 17 00:00:00 2001 From: Amiti Uttarwar Date: Wed, 20 May 2020 13:50:04 -0700 Subject: [trivial] Remove misleading 'const' Returning by const value is only meaningful in a specific circumstance around user defined types. In this case, the const is not enforcing any restrictions on the call site, so is misleading. --- src/txmempool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/txmempool.h b/src/txmempool.h index 4568eb928d..fd762565e8 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -714,7 +714,7 @@ public: void RemoveUnbroadcastTx(const uint256& txid, const bool unchecked = false); /** Returns transactions in unbroadcast set */ - const std::set GetUnbroadcastTxs() const { + std::set GetUnbroadcastTxs() const { LOCK(cs); return m_unbroadcast_txids; } -- cgit v1.2.3