feat: add NetworkId helper

This commit is contained in:
Derrick Hammer 2024-01-29 14:26:10 -05:00
parent 722f130072
commit 57ab0f36f9
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,10 @@ func (n *Node) WaitOnConnectedPeers() {
n.services.P2P().WaitOnConnectedPeers() n.services.P2P().WaitOnConnectedPeers()
} }
func (n *Node) NetworkId() string {
return n.services.P2P().NetworkId()
}
func DefaultNode(config *config.NodeConfig) *Node { func DefaultNode(config *config.NodeConfig) *Node {
params := service.ServiceParams{ params := service.ServiceParams{
Logger: config.Logger, Logger: config.Logger,