Skip to content
Snippets Groups Projects
Unverified Commit 78d99abf authored by RUANO RINCON Santiago's avatar RUANO RINCON Santiago
Browse files

More cleaning

parent bbb41f4c
Branches test-masterpow-fixing
No related tags found
No related merge requests found
......@@ -3,31 +3,24 @@ package masterpow
//# TODO: should add an events.go? c.f. chat plugin
import (
// "net"
// "fmt"
// "strconv"
"sync"
"time"
"github.com/iotaledger/hive.go/autopeering/peer"
// "github.com/iotaledger/hive.go/autopeering/peer/service"
"github.com/iotaledger/hive.go/daemon"
"github.com/iotaledger/hive.go/events"
"github.com/iotaledger/hive.go/logger"
"github.com/iotaledger/hive.go/node"
//"github.com/iotaledger/goshimmer/packages/clock"
gossipPkg "github.com/iotaledger/goshimmer/packages/gossip"
"github.com/iotaledger/goshimmer/packages/shutdown"
"github.com/iotaledger/goshimmer/packages/tangle"
// "github.com/iotaledger/goshimmer/plugins/autopeering"
"github.com/iotaledger/goshimmer/plugins/autopeering/local"
"github.com/iotaledger/goshimmer/plugins/gossip"
"github.com/iotaledger/goshimmer/plugins/messagelayer"
"github.com/iotaledger/goshimmer/plugins/metrics"
"github.com/iotaledger/goshimmer/plugins/pow"
//"github.com/iotaledger/goshimmer/plugins/masterpow/payload"
)
const (
......@@ -85,10 +78,6 @@ func Plugin() *node.Plugin {
func configure(_ *node.Plugin) {
log = logger.NewLogger(PluginName)
//TODO: this is just for test. we need a real { pubkey : powd } map
//currentDifficulty["hola"] = 42
configureEvents()
log.Infof("starting the master PoW plugin")
......@@ -104,8 +93,6 @@ func configureEvents() {
return
}
//msgPayload, ok := messagePayload.(*payload.Payload)
msgPayload, _, err := FromBytes(msg.Payload().Bytes())
if err != nil {
log.Info("could not cast payload to masterpow object")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment