Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat: more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jan 16, 2024
1 parent 56cee3f commit 63e6464
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkg/rpc/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,13 @@ func GetBlockProofStatus(
}

if proverAddress == transition.Prover {
log.Info("📬 Block's proof has already been submitted by current prover", "blockID", id)
log.Info(
"📬 Block's proof has already been submitted by current prover",
"blockID", id,
"parent", parent.Hash().Hex(),
"hash", common.Bytes2Hex(transition.BlockHash[:]),
"signalRoot", common.Bytes2Hex(transition.SignalRoot[:]),
)
return &BlockProofStatus{
IsSubmitted: true,
Invalid: false,
Expand All @@ -236,6 +242,9 @@ func GetBlockProofStatus(
"📬 Block's proof has already been submitted by another prover",
"blockID", id,
"prover", transition.Prover,
"parent", parent.Hash().Hex(),
"hash", common.Bytes2Hex(transition.BlockHash[:]),
"signalRoot", common.Bytes2Hex(transition.SignalRoot[:]),
"timestamp", transition.Timestamp,
)

Expand Down

0 comments on commit 63e6464

Please sign in to comment.