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

fix(prover): wait fix for guardian prover #462

Merged
merged 1 commit into from
Dec 3, 2023
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
5 changes: 5 additions & 0 deletions prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,11 @@ func (p *Prover) signBlock(ctx context.Context, blockID *big.Int) error {
"eventBlockID", blockID.Uint64(),
)
time.Sleep(6 * time.Second)

latest, err = p.rpc.L2.BlockByNumber(ctx, nil)
if err != nil {
return err
}
}

log.Info("guardian prover block signing caught up",
Expand Down