diff options
| author | Amiti Uttarwar <[email protected]> | 2020-05-20 13:50:04 -0700 |
|---|---|---|
| committer | Amiti Uttarwar <[email protected]> | 2020-05-25 11:27:07 -0700 |
| commit | 750456d6f29c63d57af05bfbdd6035bb9c965de2 (patch) | |
| tree | 0e54bbd1f732bf6f6313c03e962f1e37cb31e87b | |
| parent | [test] Manage node connections better in mempool persist test (diff) | |
| download | discoin-750456d6f29c63d57af05bfbdd6035bb9c965de2.tar.xz discoin-750456d6f29c63d57af05bfbdd6035bb9c965de2.zip | |
[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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 4568eb928..fd762565e 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; } |