mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-05 23:43:07 +00:00
deploy: c37874c31772e1afc0e5a58e0586f7415457caf7
This commit is contained in:
parent
ab353b8986
commit
2039705901
2
.gitignore
vendored
2
.gitignore
vendored
@ -31,3 +31,5 @@
|
||||
|
||||
rln
|
||||
*.log
|
||||
package-lock.json
|
||||
node_modules/
|
||||
|
||||
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -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
|
||||
|
||||
@ -1 +1 @@
|
||||
1615918720
|
||||
1615971147
|
||||
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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]()
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user