feat: add NodeId helper
This commit is contained in:
parent
57ab0f36f9
commit
ca41aee245
|
@ -2,6 +2,7 @@ package node
|
|||
|
||||
import (
|
||||
"git.lumeweb.com/LumeWeb/libs5-go/config"
|
||||
"git.lumeweb.com/LumeWeb/libs5-go/encoding"
|
||||
"git.lumeweb.com/LumeWeb/libs5-go/protocol"
|
||||
"git.lumeweb.com/LumeWeb/libs5-go/protocol/signed"
|
||||
"git.lumeweb.com/LumeWeb/libs5-go/service"
|
||||
|
@ -66,6 +67,10 @@ func (n *Node) NetworkId() string {
|
|||
return n.services.P2P().NetworkId()
|
||||
}
|
||||
|
||||
func (n *Node) NodeId() *encoding.NodeId {
|
||||
return n.services.P2P().NodeId()
|
||||
}
|
||||
|
||||
func DefaultNode(config *config.NodeConfig) *Node {
|
||||
params := service.ServiceParams{
|
||||
Logger: config.Logger,
|
||||
|
|
Loading…
Reference in New Issue