Commit c10dc2cd authored by vicotor's avatar vicotor

add log

parent 49caf688
package server
import (
"encoding/hex"
"errors"
"github.com/ethereum/go-ethereum/crypto"
"github.com/odysseus/nodemanager/utils"
......@@ -191,7 +192,9 @@ func (wm *WorkerManager) standardTaskResult(worker *Worker, task *odysseus.TaskC
log.WithFields(log.Fields{
"containerSignatureVerify": verified,
"taskkind": task.TaskKind,
"containerPubkey": string(task.ContainerPubkey),
"dataHash": hex.EncodeToString(dataHash[:]),
"containerPubkey": hex.EncodeToString(task.ContainerPubkey),
"signature": hex.EncodeToString(signature),
}).Debug("container signature verify")
if !verified {
// todo: handle signature verify failed
......
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