Skip to content

Commit

Permalink
Add time taken log to submit challenge to BC
Browse files Browse the repository at this point in the history
  • Loading branch information
lpoli committed Aug 5, 2022
1 parent 26a4a6c commit 907f825
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/go/0chain.net/blobbercore/challenge/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,11 @@ func (cr *ChallengeEntity) CommitChallenge(ctx context.Context, verifyOnly bool)
return nil
}

now := time.Now()
t, err := cr.SubmitChallengeToBC(ctx)
logging.Logger.Debug("[challenge]submit: Time taken to submit challenge: ",
zap.Any("time_taken", time.Since(now)))

if err != nil {
if t != nil {
cr.CommitTxnID = t.Hash
Expand Down

0 comments on commit 907f825

Please sign in to comment.