Fix error: Change params floodsub.publish back

This commit is contained in:
mhchia 2019-07-24 16:24:14 +08:00
parent 8da4032c3b
commit d3a948be47
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A

View File

@ -46,7 +46,7 @@ class FloodSub(IPubsubRouter):
:param rpc: rpc message :param rpc: rpc message
""" """
async def publish(self, from_peer: ID, pubsub_message: rpc_pb2.Message) -> None: async def publish(self, sender_peer_id: ID, rpc_message: rpc_pb2.Message) -> None:
""" """
Invoked to forward a new message that has been validated. Invoked to forward a new message that has been validated.
This is where the "flooding" part of floodsub happens This is where the "flooding" part of floodsub happens