p2p, rpc: address relay fixups

This commit is contained in:
Jon Atack
2021-08-03 13:04:19 +02:00
parent 87257d860e
commit 5e33f762d4
2 changed files with 4 additions and 4 deletions

View File

@@ -652,7 +652,7 @@ private:
* @return True if address relay is enabled with peer
* False if address relay is disallowed
*/
bool SetupAddressRelay(CNode& node, Peer& peer);
bool SetupAddressRelay(const CNode& node, Peer& peer);
};
} // namespace
@@ -4461,7 +4461,7 @@ public:
};
}
bool PeerManagerImpl::SetupAddressRelay(CNode& node, Peer& peer)
bool PeerManagerImpl::SetupAddressRelay(const CNode& node, Peer& peer)
{
// We don't participate in addr relay with outbound block-relay-only
// connections to prevent providing adversaries with the additional