Skip to content

Commit

Permalink
Merge pull request #61 from EspressoSystems/fix/polling-config
Browse files Browse the repository at this point in the history
Fix name of EthTxManager PollingInterval config parameter
  • Loading branch information
Ancient123 authored Aug 3, 2023
2 parents 9cbc0cf + 9506f59 commit 99aaf2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ethtxmanager/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ type Config struct {
PrivateKeys []types.KeystoreFileConfig `mapstructure:"PrivateKeys"`

// How often to poll for transaction receipts when monitoring.
PollInterval types.Duration `mapstructure:"PollingInterval"`
PollingInterval types.Duration `mapstructure:"PollingInterval"`
}
2 changes: 1 addition & 1 deletion ethtxmanager/ethtxmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ func (c *Client) ProcessPendingMonitoredTxs(ctx context.Context, owner string, r
// if the result is either not confirmed or failed, it means we need to wait until it gets confirmed of failed.
for {
// wait before refreshing the result info
time.Sleep(c.cfg.PollInterval.Duration)
time.Sleep(c.cfg.PollingInterval.Duration)

// refresh the result info
result, err := c.Result(ctx, owner, result.ID, dbTx)
Expand Down
2 changes: 1 addition & 1 deletion test/config/test.node.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ PrivateKeys = [
{Path = "/pk/sequencer.keystore", Password = "testonly"},
{Path = "/pk/aggregator.keystore", Password = "testonly"}
]
PollInterval = "1s"
PollingInterval = "1s"

[L2GasPriceSuggester]
Type = "follower"
Expand Down

0 comments on commit 99aaf2f

Please sign in to comment.