Skip to content

Commit 78f20d0

Browse files
m-Peterpeterargue
andcommitted
Update description for EOAActivityCacheTTL config flag
Co-authored-by: Peter Argue <89119817+peterargue@users.noreply.github.com>
1 parent d0251a4 commit 78f20d0

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

cmd/run/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,5 +294,5 @@ func init() {
294294
Cmd.Flags().DurationVar(&cfg.TxRequestLimitDuration, "tx-request-limit-duration", time.Second*3, "Time interval upon which to enforce transaction submission rate limiting.")
295295
Cmd.Flags().BoolVar(&cfg.TxBatchMode, "tx-batch-mode", false, "Enable batch transaction submission, to avoid nonce mismatch issues for high-volume EOAs.")
296296
Cmd.Flags().DurationVar(&cfg.TxBatchInterval, "tx-batch-interval", time.Millisecond*1200, "Time interval upon which to submit the transaction batches to the Flow network.")
297-
Cmd.Flags().DurationVar(&cfg.EOAActivityCacheTTL, "eoa-activity-cache-ttl", time.Second*10, "Time interval after which entries from the EOA activity cache will expire. Useful only when batch transaction submission is enabled.")
297+
Cmd.Flags().DurationVar(&cfg.EOAActivityCacheTTL, "eoa-activity-cache-ttl", time.Second*10, "Time interval used to track EOA activity. Tx send more frequently than this interval will be batched. Useful only when batch transaction submission is enabled.")
298298
}

config/config.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ type Config struct {
107107
// TxBatchInterval is the time interval upon which to submit the transaction batches to the
108108
// Flow network.
109109
TxBatchInterval time.Duration
110-
// EOAActivityCacheTTL is the time interval after which entries from the EOA activity cache
111-
// will expire. Useful only when batch transaction submission is enabled.
110+
// EOAActivityCacheTTL is the time interval used to track EOA activity. Tx send more
111+
// frequently than this interval will be batched.
112+
// Useful only when batch transaction submission is enabled.
112113
EOAActivityCacheTTL time.Duration
113114
}

0 commit comments

Comments
 (0)