fix(coordinator): Do not update proof or proving status if a chunk or batch is verified (#828)

Co-authored-by: icemelon <icemelon@users.noreply.github.com>
This commit is contained in:
Haichen Shen
2023-08-18 04:53:31 -07:00
committed by GitHub
parent 74e5de156e
commit 767a2cbfdf
2 changed files with 3 additions and 3 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

@@ -310,8 +310,8 @@ func (m *ProofReceiverLogic) updateProofStatus(ctx context.Context, hash string,
}
// if the block batch has proof verified, so the failed status not update block batch proving status
if status == types.ProvingTaskFailed && m.checkIsTaskSuccess(ctx, hash, proofMsg.Type) {
log.Info("update proof status ProvingTaskFailed skip because other prover have prove success", "hash", hash, "public key", proverPublicKey)
if m.checkIsTaskSuccess(ctx, hash, proofMsg.Type) {
log.Info("update proof status skip because this chunk / batch has been verified", "hash", hash, "public key", proverPublicKey)
return nil
}