From cd8e747656be9a242163ccc6f25e8c8db52e20ef Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 9 Jan 2024 12:51:54 -0500 Subject: [PATCH] refactor: we have changed to use our own manual Init for the protocol registration for safety --- node/node.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/node.go b/node/node.go index 08856a2..b451548 100644 --- a/node/node.go +++ b/node/node.go @@ -6,6 +6,8 @@ import ( "git.lumeweb.com/LumeWeb/libs5-go/encoding" "git.lumeweb.com/LumeWeb/libs5-go/interfaces" "git.lumeweb.com/LumeWeb/libs5-go/metadata" + "git.lumeweb.com/LumeWeb/libs5-go/protocol" + "git.lumeweb.com/LumeWeb/libs5-go/protocol/signed" "git.lumeweb.com/LumeWeb/libs5-go/service" "git.lumeweb.com/LumeWeb/libs5-go/storage" "git.lumeweb.com/LumeWeb/libs5-go/structs" @@ -81,6 +83,8 @@ func (n *NodeImpl) Db() *bolt.DB { } func (n *NodeImpl) Start() error { + protocol.Init() + signed.Init() err := utils.CreateBucket(cacheBucketName, n.Db(), func(bucket *bolt.Bucket) { n.cacheBucket = bucket