parent
142a3e91e5
commit
98ab0afcc3
|
@ -24,7 +24,7 @@
|
||||||
path = vendor/nim-libp2p
|
path = vendor/nim-libp2p
|
||||||
url = https://github.com/status-im/nim-libp2p.git
|
url = https://github.com/status-im/nim-libp2p.git
|
||||||
ignore = untracked
|
ignore = untracked
|
||||||
branch = master
|
branch = unstable
|
||||||
[submodule "vendor/nimbus-build-system"]
|
[submodule "vendor/nimbus-build-system"]
|
||||||
path = vendor/nimbus-build-system
|
path = vendor/nimbus-build-system
|
||||||
url = https://github.com/status-im/nimbus-build-system.git
|
url = https://github.com/status-im/nimbus-build-system.git
|
||||||
|
|
|
@ -2394,7 +2394,7 @@ proc createEth2Node*(rng: ref HmacDrbgContext,
|
||||||
discovery = config.discv5Enabled, rng = rng)
|
discovery = config.discv5Enabled, rng = rng)
|
||||||
|
|
||||||
node.pubsub.subscriptionValidator =
|
node.pubsub.subscriptionValidator =
|
||||||
proc(topic: string): bool {.gcsafe, raises: [Defect].} =
|
proc(topic: string): bool {.gcsafe, raises: [].} =
|
||||||
topic in node.validTopics
|
topic in node.validTopics
|
||||||
|
|
||||||
node
|
node
|
||||||
|
@ -2431,7 +2431,7 @@ proc addValidator*[MsgType](node: Eth2Node,
|
||||||
# or not - validation is `async` but implemented without the macro because
|
# or not - validation is `async` but implemented without the macro because
|
||||||
# this is a performance hotspot.
|
# this is a performance hotspot.
|
||||||
proc execValidator(topic: string, message: GossipMsg):
|
proc execValidator(topic: string, message: GossipMsg):
|
||||||
Future[ValidationResult] {.raises: [Defect].} =
|
Future[ValidationResult] {.raises: [].} =
|
||||||
inc nbc_gossip_messages_received
|
inc nbc_gossip_messages_received
|
||||||
trace "Validating incoming gossip message", len = message.data.len, topic
|
trace "Validating incoming gossip message", len = message.data.len, topic
|
||||||
|
|
||||||
|
@ -2462,7 +2462,7 @@ proc addAsyncValidator*[MsgType](node: Eth2Node,
|
||||||
msgValidator: proc(msg: MsgType):
|
msgValidator: proc(msg: MsgType):
|
||||||
Future[ValidationResult] {.gcsafe, raises: [Defect].} ) =
|
Future[ValidationResult] {.gcsafe, raises: [Defect].} ) =
|
||||||
proc execValidator(topic: string, message: GossipMsg):
|
proc execValidator(topic: string, message: GossipMsg):
|
||||||
Future[ValidationResult] {.raises: [Defect].} =
|
Future[ValidationResult] {.raises: [].} =
|
||||||
inc nbc_gossip_messages_received
|
inc nbc_gossip_messages_received
|
||||||
trace "Validating incoming gossip message", len = message.data.len, topic
|
trace "Validating incoming gossip message", len = message.data.len, topic
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 95e98e8c51d57d041a9094b300cd884b35e87b95
|
Subproject commit 49dfa84c6ffc8932aae03b64953ef1721d51a812
|
Loading…
Reference in New Issue