deploy: c37874c31772e1afc0e5a58e0586f7415457caf7

This commit is contained in:
jm-clius 2021-03-17 09:20:33 +00:00
parent ab353b8986
commit 2039705901
9 changed files with 11 additions and 8 deletions

2
.gitignore vendored
View File

@ -31,3 +31,5 @@
rln
*.log
package-lock.json
node_modules/

2
.gitmodules vendored
View File

@ -12,7 +12,7 @@
path = vendor/nim-libp2p
url = https://github.com/status-im/nim-libp2p.git
ignore = dirty
branch = unstable
branch = master
[submodule "vendor/nim-stew"]
path = vendor/nim-stew
url = https://github.com/status-im/nim-stew.git

View File

@ -1 +1 @@
1615918720
1615971147

View File

@ -33,7 +33,7 @@ let
# Create Ethereum Node
var node = newEthereumNode(config.nodekey, # Node identifier
address, # Address reachable for incoming requests
1, # Network Id, only applicable for ETH protocol
NetworkId(1), # Network Id, only applicable for ETH protocol
nil, # Database, not required for Waku
clientId, # Client id string
addAllCapabilities = false, # Disable default all RLPx capabilities

View File

@ -15,7 +15,7 @@ proc setupTestNode*(
rng: ref BrHmacDrbgContext,
capabilities: varargs[ProtocolInfo, `protocolInfo`]): EthereumNode =
let keys1 = keys.KeyPair.random(rng[])
result = newEthereumNode(keys1, localAddress(nextPort), 1, nil,
result = newEthereumNode(keys1, localAddress(nextPort), NetworkId(1), nil,
addAllCapabilities = false, rng = rng)
nextPort.inc
for capability in capabilities:

View File

@ -20,7 +20,7 @@ proc setupNode(capabilities: varargs[ProtocolInfo, `protocolInfo`],
srvAddress = Address(ip: parseIpAddress("0.0.0.0"), tcpPort: Port(30303),
udpPort: Port(30303))
result = newEthereumNode(keypair, srvAddress, 1, nil, "waku test rpc",
result = newEthereumNode(keypair, srvAddress, NetworkId(1), nil, "waku test rpc",
addAllCapabilities = false, rng = rng)
for capability in capabilities:
result.addCapability capability

View File

@ -206,7 +206,7 @@ procSuite "Waku v2 JSON-RPC API":
asyncTest "Store API: retrieve historical messages":
waitFor node.start()
node.mountRelay(@[defaultTopic])
node.mountRelay()
# RPC server setup
let
@ -231,6 +231,7 @@ procSuite "Waku v2 JSON-RPC API":
node.wakuStore.setPeer(listenSwitch.peerInfo)
listenSwitch.mount(node.wakuRelay)
listenSwitch.mount(node.wakuStore)
var subscriptions = newTable[string, MessageNotificationSubscription]()

View File

@ -42,7 +42,7 @@ proc startWakuV1(config: WakuNodeConf, rng: ref BrHmacDrbgContext):
udpPort: Port(config.udpPort + config.portsShift))
# Set-up node
var node = newEthereumNode(config.nodekeyv1, address, 1, nil, clientIdV1,
var node = newEthereumNode(config.nodekeyv1, address, NetworkId(1), nil, clientIdV1,
addAllCapabilities = false, rng = rng)
node.addCapability Waku # Always enable Waku protocol
# Set up the Waku configuration.

View File

@ -27,7 +27,7 @@ proc run(config: WakuNodeConf, rng: ref BrHmacDrbgContext) =
udpPort: Port(config.udpPort + config.portsShift))
# Set-up node
var node = newEthereumNode(config.nodekey, address, 1, nil, clientId,
var node = newEthereumNode(config.nodekey, address, NetworkId(1), nil, clientId,
addAllCapabilities = false, rng = rng)
if not config.bootnodeOnly:
node.addCapability Waku # Always enable Waku protocol