diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1b1491c56..6f33e73fe 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -2,7 +2,7 @@ name: "Push docker image to GCR" on: push: - branches: [main] + branches: [main,test-config] tags: - "v*" diff --git a/pkg/rpc/utils.go b/pkg/rpc/utils.go index dacef4ba6..47e3333c7 100644 --- a/pkg/rpc/utils.go +++ b/pkg/rpc/utils.go @@ -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 }