Commit 49caf688 authored by vicotor's avatar vicotor

update

parent 3e21ad49
......@@ -181,7 +181,8 @@ func (wm *WorkerManager) standardTaskResult(worker *Worker, task *odysseus.TaskC
if len(signature) == 65 {
signature = signature[:64]
}
pubkey := utils.FromHex(string(task.ContainerPubkey))
pubkey := task.ContainerPubkey
//pubkey := utils.FromHex(string(task.ContainerPubkey))
if len(pubkey) > 65 {
pubkey = pubkey[:65]
}
......
......@@ -2,6 +2,7 @@ package standardlib
import (
"encoding/json"
"github.com/ethereum/go-ethereum/common"
"github.com/odysseus/nodemanager/config"
odysseus "github.com/odysseus/odysseus-protocol/gen/proto/go/base/v1"
log "github.com/sirupsen/logrus"
......@@ -100,7 +101,7 @@ func loadStdTasks() []StdTask {
stdTasks[i].TaskParam = []byte(defStdTask.TaskParam)
stdTasks[i].TaskFee = defStdTask.TaskFee
stdTasks[i].TaskWorkload = defStdTask.TaskWorkload
stdTasks[i].ContainerPubkey = []byte(defStdTask.ContainerPubkey)
stdTasks[i].ContainerPubkey = common.Hex2Bytes(defStdTask.ContainerPubkey)
stdTasks[i].Standlib = defStdTask.Standlib
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment