Skip to content

Commit eafe301

Browse files
committed
Add chaintracks URL to viper
1 parent 92eed08 commit eafe301

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

config/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,9 @@ func setDefaults() {
743743
// to the upstream SetDefaults so any new fields are picked up automatically.
744744
var ct chaintracksconfig.Config
745745
ct.SetDefaults(viper.GetViper(), "chaintracks")
746+
// go-chaintracks SetDefaults omits chaintracks.url, so viper.AutomaticEnv()
747+
// can't see ARCADE_CHAINTRACKS_URL — register the key explicitly here.
748+
viper.SetDefault("chaintracks.url", "")
746749
viper.SetDefault("bump_builder.grace_window_ms", 30000)
747750
// 1 GiB — DataHub /block/<hash> responses contain block metadata
748751
// (header + subtree hashes + coinbase tx + coinbase BUMP). 1 GiB is

0 commit comments

Comments
 (0)