fix one compile error

This commit is contained in:
Dustin Brody 2018-12-12 13:44:18 -08:00
parent d48f056be9
commit 4b1197bc17
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ proc subscribeImpl(node: EthereumNode,
subscriber: TopicMsgHandler) = subscriber: TopicMsgHandler) =
var gossipNet = node.protocolState(GossipSub) var gossipNet = node.protocolState(GossipSub)
gossipNet.topicSubscribers[topic] = subscriber gossipNet.topicSubscribers[topic] = subscriber
for peer in node.peers(GossipSub): peer.subscribeFor(topic) for peer in node.peers(GossipSub): discard peer.subscribeFor(topic)
proc broadcastImpl(node: EthereumNode, topic: string, msgBytes: seq[byte]): seq[Future[void]] {.gcsafe.} = proc broadcastImpl(node: EthereumNode, topic: string, msgBytes: seq[byte]): seq[Future[void]] {.gcsafe.} =
var randBytes: array[10, byte]; var randBytes: array[10, byte];