diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-04 19:55:44 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-05 08:42:15 +0200 |
commit | fa5eabe72117f6e3704858e8d5b2c57a120258ed (patch) | |
tree | d211dad9c0328c1da3f04f090eb4e44d02560d78 /src/txorphanage.h | |
parent | ad4bf8a94594e7fe424e409ba9474d91584bb78c (diff) |
refactor: Remove negative lock annotations from globals
Diffstat (limited to 'src/txorphanage.h')
-rw-r--r-- | src/txorphanage.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txorphanage.h b/src/txorphanage.h index df55cdb3be..dc9fa87dbb 100644 --- a/src/txorphanage.h +++ b/src/txorphanage.h @@ -24,7 +24,7 @@ public: bool AddTx(const CTransactionRef& tx, NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); /** Check if we already have an orphan transaction (by txid or wtxid) */ - bool HaveTx(const GenTxid& gtxid) const EXCLUSIVE_LOCKS_REQUIRED(!g_cs_orphans); + bool HaveTx(const GenTxid& gtxid) const LOCKS_EXCLUDED(::g_cs_orphans); /** Get an orphan transaction and its orginating peer * (Transaction ref will be nullptr if not found) @@ -38,7 +38,7 @@ public: void EraseForPeer(NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); /** Erase all orphans included in or invalidated by a new block */ - void EraseForBlock(const CBlock& block) EXCLUSIVE_LOCKS_REQUIRED(!g_cs_orphans); + void EraseForBlock(const CBlock& block) LOCKS_EXCLUDED(::g_cs_orphans); /** Limit the orphanage to the given maximum */ unsigned int LimitOrphans(unsigned int max_orphans) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); |