RPC version call through quicksim

This commit is contained in:
Oskar Thoren 2020-05-22 12:23:41 +08:00
parent 8ac686ea9e
commit e0a7de170a
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
2 changed files with 4 additions and 5 deletions

View File

@ -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()

View File

@ -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: