Skip to content

Commit

Permalink
more work (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
keefertaylor authored Jan 23, 2024
1 parent 4414227 commit cd4410d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/rs/zerolog v1.30.0
github.com/spf13/cobra v1.7.0
github.com/tessellated-io/healthchecks v0.0.2
github.com/tessellated-io/pickaxe v1.1.5
github.com/tessellated-io/pickaxe v1.1.6
github.com/tessellated-io/router v0.0.5
gopkg.in/yaml.v2 v2.4.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,8 @@ github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2l
github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME=
github.com/tessellated-io/healthchecks v0.0.2 h1:u/eGeg0rlb3tGOz0GXhHHPE5fgoETWnbR9NG5KdMHJI=
github.com/tessellated-io/healthchecks v0.0.2/go.mod h1:SNLJVFCD2Z9IFRYNiF7f4hoJ4+RsjHgrK7YvKCixfdI=
github.com/tessellated-io/pickaxe v1.1.5 h1:TjLx58NFCROyCUQq/jNosvhQaUmpBmtwhkYGirSCPLU=
github.com/tessellated-io/pickaxe v1.1.5/go.mod h1:G6FMTiWB8rLG4YH0THu2t2tZIMUC2Rykl22JotEIgLM=
github.com/tessellated-io/pickaxe v1.1.6 h1:L/9GhwnIdjLekOldkA8mzy9ak8TC27fohxsZZBY4BTY=
github.com/tessellated-io/pickaxe v1.1.6/go.mod h1:G6FMTiWB8rLG4YH0THu2t2tZIMUC2Rykl22JotEIgLM=
github.com/tessellated-io/router v0.0.5 h1:t6XXH4neABYljW4Nrf1u+orYXf1VUg249BwWMdbD3Bc=
github.com/tessellated-io/router v0.0.5/go.mod h1:Oj5Zw+/B5IwoL1ocuTsySz/1ZWEIxln50oHt0YbSjlQ=
github.com/tidwall/btree v1.6.0 h1:LDZfKfQIBHGHWSwckhXI0RPSXzlo+KYdjK7FWSqOzzg=
Expand Down
1 change: 1 addition & 0 deletions restake/configuration_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type Configuration struct {
RunIntervalSeconds uint `yaml:"run_interval_seconds" comment:"How many seconds to wait in between restake runs"`
BatchSize uint `yaml:"batch_size" comment:"What size batches of transactions should be sent in"`
ChainRegistryBaseUrl string `yaml:"chain_registry_base_url" comment:"The base url for the chain registry"`
ValidatorRegistryBaseUrl string `yaml:"validator_registry_base_url" comment:"The base url for the validator registry"`
}

func (c *Configuration) VersionedMemo(version string) string {
Expand Down
2 changes: 1 addition & 1 deletion restake/restake_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (rm *RestakeManager) runOnce(ctx context.Context, localConfiguration *Confi
rm.logger.Debug().Msg("starting core restake loop")

// Retryable chain registry client
rawChainClient := chainregistry.NewChainRegistryClient(rm.logger, localConfiguration.ChainRegistryBaseUrl)
rawChainClient := chainregistry.NewChainRegistryClient(rm.logger, localConfiguration.ChainRegistryBaseUrl, localConfiguration.ValidatorRegistryBaseUrl)
chainRegistryClient, err := chainregistry.NewRetryableChainRegistryClient(
localConfiguration.NetworkRetryAttempts,
localConfiguration.NetworkRetryDelay(),
Expand Down

0 comments on commit cd4410d

Please sign in to comment.