From 2acacaa05809279aa7efd323e34787293e598d9b Mon Sep 17 00:00:00 2001 From: Oskar Thoren Date: Fri, 22 May 2020 12:23:41 +0800 Subject: [PATCH] RPC version call through quicksim --- waku/node/v2/quicksim.nim | 7 +++---- waku/node/v2/wakunode.nim | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/waku/node/v2/quicksim.nim b/waku/node/v2/quicksim.nim index 67dccce01..fe8f7bb38 100644 --- a/waku/node/v2/quicksim.nim +++ b/waku/node/v2/quicksim.nim @@ -14,8 +14,6 @@ template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0] const sigWakuPath = &"{sourceDir}{DirSep}rpc{DirSep}wakucallsigs.nim" createRpcSigs(RpcHttpClient, sigWakuPath) -# TODO: This should have start_network - # More minimal than v1 quicksim, just RPC client for now let node1 = newRpcHttpClient() @@ -29,8 +27,9 @@ let node1 = newRpcHttpClient() # Unclear how to mount waku on top of gossipsub tho info "Hello there" -# Hello world -waitFor node1.connect("localhost", Port(8545)) + +# portsShift=2 +waitFor node1.connect("localhost", Port(8547)) let version = waitFor node1.wakuVersion() diff --git a/waku/node/v2/wakunode.nim b/waku/node/v2/wakunode.nim index 080e10831..d6cfc0e17 100644 --- a/waku/node/v2/wakunode.nim +++ b/waku/node/v2/wakunode.nim @@ -171,7 +171,7 @@ proc run(config: WakuNodeConf) = # TODO: Use it to get waku version # Huh not printed - info "rpcServer started" + info "rpcServer started", ta=ta # TODO: Here setup a libp2p node # Essentially something like this in nbc/eth2_network: