Broadcast current best block header over P2P network
[p2pool.git] / p2pool / p2p.py
index 15889e7..4170414 100644 (file)
@@ -239,6 +239,11 @@ class Protocol(p2protocol.Protocol):
     def handle_sharereply(self, id, result, shares):
         self.node.handle_share_reply(id, result, shares, self)
     
+    message_bestblock = pack.ComposedType([
+        ('header', bitcoin_data.block_header_type),
+    ])
+    def handle_bestblock(self, header):
+        pass
     
     def connectionLost(self, reason):
         if self.connected2: