2020-05-01 14:43:25 +02:00
|
|
|
#
|
|
|
|
# Waku - Whisper Bridge
|
2021-07-16 23:13:04 +02:00
|
|
|
# (c) Copyright 2018-2021
|
2020-05-01 14:43:25 +02:00
|
|
|
# Status Research & Development GmbH
|
|
|
|
#
|
|
|
|
# Licensed under either of
|
|
|
|
# Apache License, version 2.0, (LICENSE-APACHEv2)
|
|
|
|
# MIT license (LICENSE-MIT)
|
|
|
|
#
|
|
|
|
|
2022-11-04 10:52:27 +01:00
|
|
|
when (NimMajor, NimMinor) < (1, 4):
|
|
|
|
{.push raises: [Defect].}
|
|
|
|
else:
|
|
|
|
{.push raises: [].}
|
2021-07-16 23:13:04 +02:00
|
|
|
|
2020-05-01 14:43:25 +02:00
|
|
|
import
|
|
|
|
eth/p2p,
|
2021-07-19 16:14:37 +08:00
|
|
|
../../whisper/whisper_protocol,
|
2020-05-01 14:43:25 +02:00
|
|
|
./waku_protocol
|
|
|
|
|
|
|
|
proc shareMessageQueue*(node: EthereumNode) =
|
|
|
|
node.protocolState(Waku).queue = node.protocolState(Whisper).queue
|