From 9506f59e94d5094d5e9467d7902cd85a83272a05 Mon Sep 17 00:00:00 2001 From: Jeb Bearer Date: Thu, 3 Aug 2023 10:45:20 -0700 Subject: [PATCH] Fix name of EthTxManager PollingInterval config parameter --- ethtxmanager/config.go | 2 +- ethtxmanager/ethtxmanager.go | 2 +- test/config/test.node.config.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ethtxmanager/config.go b/ethtxmanager/config.go index c25ba08..eaeefa5 100644 --- a/ethtxmanager/config.go +++ b/ethtxmanager/config.go @@ -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"` } diff --git a/ethtxmanager/ethtxmanager.go b/ethtxmanager/ethtxmanager.go index a97b0ff..e68a29b 100644 --- a/ethtxmanager/ethtxmanager.go +++ b/ethtxmanager/ethtxmanager.go @@ -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) diff --git a/test/config/test.node.config.toml b/test/config/test.node.config.toml index 09ccd62..4692b28 100644 --- a/test/config/test.node.config.toml +++ b/test/config/test.node.config.toml @@ -112,7 +112,7 @@ PrivateKeys = [ {Path = "/pk/sequencer.keystore", Password = "testonly"}, {Path = "/pk/aggregator.keystore", Password = "testonly"} ] -PollInterval = "1s" +PollingInterval = "1s" [L2GasPriceSuggester] Type = "follower"