[net] Pass nRecvFloodSize to CNode

This commit is contained in:
dergoegge
2023-03-24 15:45:50 +01:00
parent 860402ef2e
commit cd0c8eeb09
5 changed files with 19 additions and 17 deletions

View File

@@ -4887,7 +4887,7 @@ bool PeerManagerImpl::ProcessMessages(CNode* pfrom, std::atomic<bool>& interrupt
// Don't bother if send buffer is too full to respond anyway
if (pfrom->fPauseSend) return false;
auto poll_result{pfrom->PollMessage(m_connman.GetReceiveFloodSize())};
auto poll_result{pfrom->PollMessage()};
if (!poll_result) {
// No message to process
return false;