mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 00:13:06 +00:00
RPC version call through quicksim
This commit is contained in:
parent
d00c1acbdc
commit
2acacaa058
@ -14,8 +14,6 @@ template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
|||||||
const sigWakuPath = &"{sourceDir}{DirSep}rpc{DirSep}wakucallsigs.nim"
|
const sigWakuPath = &"{sourceDir}{DirSep}rpc{DirSep}wakucallsigs.nim"
|
||||||
createRpcSigs(RpcHttpClient, sigWakuPath)
|
createRpcSigs(RpcHttpClient, sigWakuPath)
|
||||||
|
|
||||||
# TODO: This should have start_network
|
|
||||||
|
|
||||||
# More minimal than v1 quicksim, just RPC client for now
|
# More minimal than v1 quicksim, just RPC client for now
|
||||||
|
|
||||||
let node1 = newRpcHttpClient()
|
let node1 = newRpcHttpClient()
|
||||||
@ -29,8 +27,9 @@ let node1 = newRpcHttpClient()
|
|||||||
# Unclear how to mount waku on top of gossipsub tho
|
# Unclear how to mount waku on top of gossipsub tho
|
||||||
|
|
||||||
info "Hello there"
|
info "Hello there"
|
||||||
# Hello world
|
|
||||||
waitFor node1.connect("localhost", Port(8545))
|
# portsShift=2
|
||||||
|
waitFor node1.connect("localhost", Port(8547))
|
||||||
|
|
||||||
let version = waitFor node1.wakuVersion()
|
let version = waitFor node1.wakuVersion()
|
||||||
|
|
||||||
|
|||||||
@ -171,7 +171,7 @@ proc run(config: WakuNodeConf) =
|
|||||||
|
|
||||||
# TODO: Use it to get waku version
|
# TODO: Use it to get waku version
|
||||||
# Huh not printed
|
# Huh not printed
|
||||||
info "rpcServer started"
|
info "rpcServer started", ta=ta
|
||||||
|
|
||||||
# TODO: Here setup a libp2p node
|
# TODO: Here setup a libp2p node
|
||||||
# Essentially something like this in nbc/eth2_network:
|
# Essentially something like this in nbc/eth2_network:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user