mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge 384866e870 into merged_master (Bitcoin PR bitcoin/bitcoin#24427)
This commit is contained in:
commit
c1a9e05f44
1 changed files with 2 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
@ -4570,8 +4570,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;
|
||||
|
|
@ -5121,8 +5119,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue