new oclib

This commit is contained in:
mr
2026-01-23 09:40:38 +01:00
parent 932e40190d
commit 9d0b720231
5 changed files with 14 additions and 9 deletions

View File

@@ -139,12 +139,14 @@ func generateSelfPeer() error {
// create a new peer
o := oclib.GetConfLoader()
peer := &peer.Peer{
Url: o.GetStringDefault("HOSTNAME", "http://localhost"),
Url: o.GetStringDefault("HOSTNAME", "http://localhost"),
NATSUrl: oclib.GetConfig().NATSUrl,
AbstractObject: utils.AbstractObject{
Name: o.GetStringDefault("NAME", "local"),
},
PublicKey: file,
State: peer.SELF,
Relation: peer.SELF,
State: peer.ONLINE,
WalletAddress: "my-wallet",
}
data := oclib.NewRequest(oclib.LibDataEnum(oclib.PEER), "", "", []string{}, nil).StoreOne(peer.Serialize(peer))