mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-20 13:28:20 +02:00
Don't send inv msg when empty (#909)
This commit is contained in:
parent
e127297f16
commit
afa8ccd144
1 changed files with 3 additions and 2 deletions
|
|
@ -165,8 +165,9 @@ class PeerMessageHandler:
|
|||
invs = [
|
||||
CInv(type=1, hash=squeak_hash)
|
||||
for squeak_hash in squeak_hashes]
|
||||
inv_msg = msg_inv(inv=invs)
|
||||
self.peer.send_msg(inv_msg)
|
||||
if invs:
|
||||
inv_msg = msg_inv(inv=invs)
|
||||
self.peer.send_msg(inv_msg)
|
||||
|
||||
def handle_squeak(self, msg):
|
||||
squeak = msg.squeak
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue