diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-02-23 10:28:05 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-02-23 10:26:54 +0100 |
commit | faa329fd46b4d688a5aa728b8b22a8d098987588 (patch) | |
tree | 38e72c288d95627f99c341197b81ded077951b15 /src/net_processing.cpp | |
parent | 3c565302aaa91ae46aa09b8aeb95206711d9d8a6 (diff) |
refactor: Release cs_main before MaybeSendFeefilter
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 3cebca1a77..ca4716cd5d 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -415,7 +415,7 @@ private: void RelayAddress(NodeId originator, const CAddress& addr, bool fReachable); /** Send `feefilter` message. */ - void MaybeSendFeefilter(CNode& node, std::chrono::microseconds current_time) EXCLUSIVE_LOCKS_REQUIRED(cs_main); + void MaybeSendFeefilter(CNode& node, std::chrono::microseconds current_time); const CChainParams& m_chainparams; CConnman& m_connman; @@ -4500,8 +4500,6 @@ void PeerManagerImpl::MaybeSendAddr(CNode& node, Peer& peer, std::chrono::micros void PeerManagerImpl::MaybeSendFeefilter(CNode& pto, std::chrono::microseconds current_time) { - AssertLockHeld(cs_main); - if (m_ignore_incoming_txs) return; if (!pto.m_tx_relay) return; if (pto.GetCommonVersion() < FEEFILTER_VERSION) return; @@ -5048,8 +5046,7 @@ bool PeerManagerImpl::SendMessages(CNode* pto) if (!vGetData.empty()) m_connman.PushMessage(pto, msgMaker.Make(NetMsgType::GETDATA, vGetData)); - - MaybeSendFeefilter(*pto, current_time); } // release cs_main + MaybeSendFeefilter(*pto, current_time); return true; } |