mirror of https://github.com/status-im/nim-eth.git
wkk -> waku rlpx based on discussion
This commit is contained in:
parent
4be5382a15
commit
b4638a5867
|
@ -522,7 +522,7 @@ proc initMessage*(env: Envelope, powCalc = true): Message =
|
||||||
proc hash*(msg: Message): hashes.Hash = hash(msg.hash.data)
|
proc hash*(msg: Message): hashes.Hash = hash(msg.hash.data)
|
||||||
|
|
||||||
proc allowed*(msg: Message, config: WakuConfig): bool =
|
proc allowed*(msg: Message, config: WakuConfig): bool =
|
||||||
# Check max msg size, already happens in RLPx but there is a specific wkk
|
# Check max msg size, already happens in RLPx but there is a specific waku
|
||||||
# max msg size which should always be < RLPx max msg size
|
# max msg size which should always be < RLPx max msg size
|
||||||
if msg.size > config.maxMsgSize:
|
if msg.size > config.maxMsgSize:
|
||||||
warn "Message size too large", size = msg.size
|
warn "Message size too large", size = msg.size
|
||||||
|
@ -748,7 +748,7 @@ proc initProtocolState*(network: WakuNetwork, node: EthereumNode) {.gcsafe.} =
|
||||||
asyncCheck node.run(network)
|
asyncCheck node.run(network)
|
||||||
|
|
||||||
p2pProtocol Waku(version = wakuVersion,
|
p2pProtocol Waku(version = wakuVersion,
|
||||||
rlpxName = "wkk",
|
rlpxName = "waku",
|
||||||
peerState = WakuPeer,
|
peerState = WakuPeer,
|
||||||
networkState = WakuNetwork):
|
networkState = WakuNetwork):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue