From 57ab0f36f9f0ce577cc15ac2f341694ca7300359 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 29 Jan 2024 14:26:10 -0500 Subject: [PATCH] feat: add NetworkId helper --- node/node.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/node.go b/node/node.go index 9c6dc59..c800f3d 100644 --- a/node/node.go +++ b/node/node.go @@ -62,6 +62,10 @@ func (n *Node) WaitOnConnectedPeers() { n.services.P2P().WaitOnConnectedPeers() } +func (n *Node) NetworkId() string { + return n.services.P2P().NetworkId() +} + func DefaultNode(config *config.NodeConfig) *Node { params := service.ServiceParams{ Logger: config.Logger,