feat: add NetworkId helper
This commit is contained in:
parent
722f130072
commit
57ab0f36f9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue