mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-13 12:33:25 +02:00
Don't do any action on receive addr msg (#1285)
This commit is contained in:
parent
17c83817bc
commit
b8eb5fbdd8
1 changed files with 2 additions and 7 deletions
|
|
@ -35,7 +35,6 @@ from squeak.net import CInterested
|
|||
from squeak.net import CInv
|
||||
|
||||
from squeaknode.core.offer import Offer
|
||||
from squeaknode.core.peer_address import PeerAddress
|
||||
from squeaknode.node.squeak_controller import SqueakController
|
||||
|
||||
|
||||
|
|
@ -109,13 +108,9 @@ class PeerMessageHandler:
|
|||
self.peer.set_pong_response(msg.nonce)
|
||||
|
||||
def handle_addr(self, msg):
|
||||
# TODO: Save new address in table rather than connecting.
|
||||
# TODO: Save new address in table.
|
||||
for addr in msg.addrs:
|
||||
peer_address = PeerAddress(
|
||||
host=addr.ip,
|
||||
port=addr.port,
|
||||
)
|
||||
self.squeak_controller.connect_peer(peer_address)
|
||||
pass
|
||||
|
||||
def handle_getaddr(self, msg):
|
||||
# TODO: Get known peers from table in database.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue