Skip to content
Snippets Groups Projects
Unverified Commit c0952c53 authored by capossele's avatar capossele
Browse files

:bug: Fix snapshot file print

parent 67d12a13
No related branches found
No related tags found
No related merge requests found
package valuetransfers package valuetransfers
import ( import (
"github.com/iotaledger/goshimmer/plugins/config"
flag "github.com/spf13/pflag"
"os" "os"
"sync" "sync"
"time" "time"
...@@ -16,12 +14,14 @@ import ( ...@@ -16,12 +14,14 @@ import (
messageTangle "github.com/iotaledger/goshimmer/packages/binary/messagelayer/tangle" messageTangle "github.com/iotaledger/goshimmer/packages/binary/messagelayer/tangle"
"github.com/iotaledger/goshimmer/packages/shutdown" "github.com/iotaledger/goshimmer/packages/shutdown"
"github.com/iotaledger/goshimmer/packages/vote" "github.com/iotaledger/goshimmer/packages/vote"
"github.com/iotaledger/goshimmer/plugins/config"
"github.com/iotaledger/goshimmer/plugins/database" "github.com/iotaledger/goshimmer/plugins/database"
"github.com/iotaledger/goshimmer/plugins/messagelayer" "github.com/iotaledger/goshimmer/plugins/messagelayer"
"github.com/iotaledger/hive.go/daemon" "github.com/iotaledger/hive.go/daemon"
"github.com/iotaledger/hive.go/events" "github.com/iotaledger/hive.go/events"
"github.com/iotaledger/hive.go/logger" "github.com/iotaledger/hive.go/logger"
"github.com/iotaledger/hive.go/node" "github.com/iotaledger/hive.go/node"
flag "github.com/spf13/pflag"
) )
const ( const (
...@@ -85,7 +85,7 @@ func configure(_ *node.Plugin) { ...@@ -85,7 +85,7 @@ func configure(_ *node.Plugin) {
log.Panic("could not read snapshot file:", err) log.Panic("could not read snapshot file:", err)
} }
Tangle.LoadSnapshot(snapshot) Tangle.LoadSnapshot(snapshot)
log.Info("read snapshot from %s", snapshotFilePath) log.Infof("read snapshot from %s", snapshotFilePath)
} }
Tangle.Events.Error.Attach(events.NewClosure(func(err error) { Tangle.Events.Error.Attach(events.NewClosure(func(err error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment