This commit is contained in:
Ho
2025-11-30 16:51:24 +09:00
parent 4ed1f6c531
commit fa3d0df881
4 changed files with 6 additions and 5 deletions

View File

@@ -20,6 +20,7 @@ func fetchAndStoreBlocks(ctx context.Context, from, to uint64) ([]*encoding.Bloc
if err != nil {
return nil, fmt.Errorf("failed to connect l2 geth, endpoint %s, err %v", cfg.Endpoint, err)
}
defer client.Close()
ethCli := ethclient.NewClient(client)
var blocks []*encoding.Block

View File

@@ -126,13 +126,13 @@ func newConfig(file string) (*config, error) {
return nil, err
}
cfg := &config{}
err = json.Unmarshal(buf, cfg)
loadCfg := &config{}
err = json.Unmarshal(buf, loadCfg)
if err != nil {
return nil, err
}
return cfg, nil
return loadCfg, nil
}
func action(ctx *cli.Context) error {

View File

@@ -1,3 +1,3 @@
BEGIN_BLOCK?=20239245
END_BLOCK?=20239250
SCROLL_FORK_NAME=galileo
SCROLL_FORK_NAME=galileoV2

View File

@@ -26,7 +26,7 @@
"validium_mode": false,
"chain_id": 534351,
"l2geth": {
"endpoint": "<serach a public rpc endpoint like alchemy>"
"endpoint": "<serach for a public rpc endpoint like alchemy>"
}
},
"auth": {