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

Commit

Permalink
test: test configs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Oct 16, 2023
1 parent 05d088f commit f57a48e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Push docker image to GCR"

on:
push:
branches: [main]
branches: [main,test-config]
tags:
- "v*"

Expand Down
16 changes: 8 additions & 8 deletions pkg/rpc/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,16 +309,16 @@ func StringToBytes32(str string) [32]byte {

// IsArchiveNode checks if the given node is an archive node.
func IsArchiveNode(ctx context.Context, client *EthClient, l2GenesisHeight uint64) (bool, error) {
ctxWithTimeout, cancel := ctxWithTimeoutOrDefault(ctx, defaultTimeout)
defer cancel()
// ctxWithTimeout, cancel := ctxWithTimeoutOrDefault(ctx, defaultTimeout)
// defer cancel()

if _, err := client.BalanceAt(ctxWithTimeout, ZeroAddress, new(big.Int).SetUint64(l2GenesisHeight)); err != nil {
if strings.Contains(err.Error(), "missing trie node") {
return false, nil
}
// if _, err := client.BalanceAt(ctxWithTimeout, ZeroAddress, new(big.Int).SetUint64(l2GenesisHeight)); err != nil {
// if strings.Contains(err.Error(), "missing trie node") {
// return false, nil
// }

return false, err
}
// return false, err
// }

return true, nil
}
Expand Down

0 comments on commit f57a48e

Please sign in to comment.