mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-15 20:50:41 +02:00
[net processing] Fix overindentation in MaybeSendAddr()
Reviewer hint: review with `git diff --ignore-all-space`.
This commit is contained in:
parent
38c0be5da3
commit
01a79ff924
@ -4172,7 +4172,7 @@ void PeerManagerImpl::MaybeSendAddr(CNode& node, std::chrono::microseconds curre
|
|||||||
|
|
||||||
// We sent an `addr` message to this peer recently. Nothing more to do.
|
// We sent an `addr` message to this peer recently. Nothing more to do.
|
||||||
if (current_time <= node.m_next_addr_send) return;
|
if (current_time <= node.m_next_addr_send) return;
|
||||||
{
|
|
||||||
node.m_next_addr_send = PoissonNextSend(current_time, AVG_ADDRESS_BROADCAST_INTERVAL);
|
node.m_next_addr_send = PoissonNextSend(current_time, AVG_ADDRESS_BROADCAST_INTERVAL);
|
||||||
std::vector<CAddress> vAddr;
|
std::vector<CAddress> vAddr;
|
||||||
vAddr.reserve(node.vAddrToSend.size());
|
vAddr.reserve(node.vAddrToSend.size());
|
||||||
@ -4207,7 +4207,6 @@ void PeerManagerImpl::MaybeSendAddr(CNode& node, std::chrono::microseconds curre
|
|||||||
// we only send the big addr message once
|
// we only send the big addr message once
|
||||||
if (node.vAddrToSend.capacity() > 40)
|
if (node.vAddrToSend.capacity() > 40)
|
||||||
node.vAddrToSend.shrink_to_fit();
|
node.vAddrToSend.shrink_to_fit();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
Loading…
Reference in New Issue
Block a user