Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions tasks/pdp/task_prove.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,17 +291,26 @@ func (p *ProveTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done
}
}

log.Infow("PDP Prove Task",
log.Debugw("PDP Prove Task (verbose)",
"dataSetId", dataSetId,
"taskID", taskID,
"proofs", proofLogs,
"data", hex.EncodeToString(data),
"gasFeeEstimate", gasFee,
"proofFee initial", proofFee.Div(proofFee, big.NewInt(3)),
"proofFee initial", new(big.Int).Div(proofFee, big.NewInt(3)),
"proofFee 3x", proofFee,
"txEth", txEth,
)

log.Infow("PDP Prove Task",
"dataSetId", dataSetId,
"taskID", taskID,
"proofCount", len(proofs),
"dataLen", len(data),
"gasFeeEstimate", gasFee,
"proofFee", proofFee,
)

if !stillOwned() {
// Task was abandoned, don't send the proofs
return false, nil
Expand Down