nwaku/tests/node/utils.nim

9 lines
278 B
Nim

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