Compare commits

...

2 Commits

Author SHA1 Message Date
georgehao
84b353509d chore: auto version bump [bot] 2023-08-18 10:46:21 +00:00
georgehao
33fb8f89e6 feat: replace the panic failure message 2023-08-18 18:45:35 +08:00
2 changed files with 4 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ import (
"strings"
)
var tag = "v4.1.73"
var tag = "v4.1.74"
var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {

View File

@@ -5,6 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"strings"
"time"
"github.com/gin-gonic/gin"
@@ -232,12 +233,13 @@ func (m *ProofReceiverLogic) validator(ctx context.Context, proverTask *orm.Prov
proofTimeSec := uint64(proofTime.Seconds())
if proofMsg.Status != message.StatusOk {
failureMsg := strings.Replace(proofParameter.FailureMsg, "panic", "pa-nic", -1)
m.proofRecover(ctx, proofMsg.ID, pk, proofMsg)
m.validateFailureProverTaskStatusNotOk.Inc()
log.Info("proof generated by prover failed",
"taskType", proofMsg.Type, "hash", proofMsg.ID,
"proverName", proverTask.ProverName, "proverVersion", proverTask.ProverVersion,
"proverPublicKey", pk, "failureType", proofParameter.FailureType, "failureMessage", proofParameter.FailureMsg)
"proverPublicKey", pk, "failureType", proofParameter.FailureType, "failureMessage", failureMsg)
return ErrValidatorFailureProofMsgStatusNotOk
}