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

Commit

Permalink
feat: update proof checks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jan 17, 2024
1 parent 63e6464 commit 1c9c63b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/rpc/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,18 @@ func GetBlockProofStatus(
log.Info(
"📬 Block's proof has already been submitted by current prover",
"blockID", id,
<<<<<<< Updated upstream
"parent", parent.Hash().Hex(),
"hash", common.Bytes2Hex(transition.BlockHash[:]),
"signalRoot", common.Bytes2Hex(transition.SignalRoot[:]),
=======
"timestamp", transition.Timestamp,
"contester", transition.Contester,
>>>>>>> Stashed changes
)
return &BlockProofStatus{
IsSubmitted: true,
Invalid: false,
Invalid: transition.Contester != ZeroAddress,
ParentHeader: parent,
CurrentTransitionState: &transition,
}, nil
Expand All @@ -246,11 +251,12 @@ func GetBlockProofStatus(
"hash", common.Bytes2Hex(transition.BlockHash[:]),
"signalRoot", common.Bytes2Hex(transition.SignalRoot[:]),
"timestamp", transition.Timestamp,
"contester", transition.Contester,
)

return &BlockProofStatus{
IsSubmitted: true,
Invalid: false,
Invalid: transition.Contester != ZeroAddress,
ParentHeader: parent,
CurrentTransitionState: &transition,
}, nil
Expand Down

0 comments on commit 1c9c63b

Please sign in to comment.