aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2020-05-20 13:50:04 -0700
committerAmiti Uttarwar <amiti@uttarwar.org>2020-05-25 11:27:07 -0700
commit750456d6f29c63d57af05bfbdd6035bb9c965de2 (patch)
tree0e54bbd1f732bf6f6313c03e962f1e37cb31e87b
parentfa32e676e5833a5c5fc735ef00c0a80f5fab7a2c (diff)
[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.
-rw-r--r--src/txmempool.h2
1 files changed, 1 insertions, 1 deletions
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<uint256> GetUnbroadcastTxs() const {
+ std::set<uint256> GetUnbroadcastTxs() const {
LOCK(cs);
return m_unbroadcast_txids;
}