From 9af993eddda70150a141e58e6cf972aa7f927a23 Mon Sep 17 00:00:00 2001 From: Oskar Thoren Date: Tue, 19 May 2020 11:49:25 +0800 Subject: [PATCH] Return correct version string from RPC --- waku/node/v2/rpc/wakurpc.nim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/waku/node/v2/rpc/wakurpc.nim b/waku/node/v2/rpc/wakurpc.nim index c6f6ae33f..9caa538bf 100644 --- a/waku/node/v2/rpc/wakurpc.nim +++ b/waku/node/v2/rpc/wakurpc.nim @@ -21,10 +21,8 @@ proc setupWakuRPC*(rpcsrv: RpcServer) = # Seems easy enough, lets try to get this first rpcsrv.rpc("waku_version") do() -> string: - ## Returns string of the current whisper protocol version. - # TODO: Should read from waku2_protocol I think - #result = wakuVersionStr - result = "2.0.0-alpha0x" + ## Returns string of the current Waku protocol version. + result = WakuSubCodec # TODO: Dial/Connect # XXX: Though wrong layer for that - wait how does this work in devp2p sim?