mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
feat(coordinator): add prover rest api (#716)
Co-authored-by: colinlyguo <colinlyguo@scroll.io>
This commit is contained in:
@@ -27,7 +27,7 @@ func GetLatestConfirmedBlockNumber(ctx context.Context, client ethClient, confir
|
||||
|
||||
header, err := client.HeaderByNumber(ctx, tag)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
return 0, fmt.Errorf("client.HeaderByNumber failed: tag %v, err %v", tag, err)
|
||||
}
|
||||
if !header.Number.IsInt64() {
|
||||
return 0, fmt.Errorf("received invalid block confirm: %v", header.Number)
|
||||
|
||||
Reference in New Issue
Block a user