Skip to content

Commit ee4bbd0

Browse files
committed
feat: update ethstore and add flag to set beaconchain-domain
1 parent 5ab18ba commit ee4bbd0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

backend/cmd/ethstore_exporter/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func Run() {
3535
concurrency := fs.Int("concurrency", 1, "concurrency level to use (1 for no concurrency)")
3636
debugLevel := fs.Uint64("debug-level", 0, "debug level to use for eth.store calculation output")
3737
beaconchainApiKey := fs.String("beaconchain-apikey", "", "beaconchain apikey to use")
38+
beaconchainDomain := fs.String("beaconchain-domain", "beaconcha.in", "beaconchain domain to use")
3839

3940
_ = fs.Parse(os.Args[2:])
4041

@@ -93,6 +94,7 @@ func Run() {
9394
receiptsMode = ethstore.RECEIPTS_MODE_BATCH
9495
}
9596

97+
ethstore.SetDomain(*beaconchainDomain)
9698
ethstore.SetBeaconchainApiKey(utils.MustAccessSecretVersion(*beaconchainApiKey))
9799
ethstore.SetDebugLevel(*debugLevel)
98100
log.Infof("using receipts mode %s (%d)", *receiptsModeStr, receiptsMode)

backend/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ require (
3030
github.com/go-openapi/spec v0.20.14
3131
github.com/go-redis/redis/v8 v8.11.5
3232
github.com/gobitfly/eth-rewards v0.1.2-0.20230403064929-411ddc40a5f7
33-
github.com/gobitfly/eth.store v0.0.0-20250513132239-9d10813d286e
33+
github.com/gobitfly/eth.store v0.0.0-20250916122333-f43deb31afcb
3434
github.com/golang-jwt/jwt v3.2.2+incompatible
3535
github.com/golang-jwt/jwt/v4 v4.5.2
3636
github.com/gomodule/redigo v1.9.2

backend/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZ
350350
github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0=
351351
github.com/gobitfly/eth-rewards v0.1.2-0.20230403064929-411ddc40a5f7 h1:qAEBlj4j25sJjsj5CQraL94rY9jyPIjCZ+hlu84n5l0=
352352
github.com/gobitfly/eth-rewards v0.1.2-0.20230403064929-411ddc40a5f7/go.mod h1:JrFv2uq5i+p6yEoRSHralEV139HkPV0wBjZZHWb4he8=
353-
github.com/gobitfly/eth.store v0.0.0-20250513132239-9d10813d286e h1:Au1oPIJZK9bYSaLII+QJ5qlk26RDzI5Wf26P4Z7aYWw=
354-
github.com/gobitfly/eth.store v0.0.0-20250513132239-9d10813d286e/go.mod h1:hqm5YJbQtjuqK9VjaVrLFqTdzY37L7SUdk3EEaEgxB4=
353+
github.com/gobitfly/eth.store v0.0.0-20250916122333-f43deb31afcb h1:RSZiTwUZXI4duokWys0NU6mvtDC5EgjZ8o1HIGj0vno=
354+
github.com/gobitfly/eth.store v0.0.0-20250916122333-f43deb31afcb/go.mod h1:hqm5YJbQtjuqK9VjaVrLFqTdzY37L7SUdk3EEaEgxB4=
355355
github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=
356356
github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
357357
github.com/goccy/go-json v0.10.4 h1:JSwxQzIqKfmFX1swYPpUThQZp/Ka4wzJdK0LWVytLPM=

0 commit comments

Comments
 (0)