nwaku/tests/node/utils.nim

8 lines
264 B
Nim
Raw Normal View History

import std/options, results
import
waku/[node/peer_manager, node/waku_node, waku_enr/sharding, common/enr/typed_record],
../testlib/[wakucore]
proc relayShards*(node: WakuNode): RelayShards =
return node.enr.toTyped().get().relayShardingIndicesList().get()