From a2f166a9a62130666905f492174335c786bc6154 Mon Sep 17 00:00:00 2001 From: Felipe Andrade Date: Wed, 6 Sep 2023 15:08:09 -0700 Subject: [PATCH] config update --- op-ufm/op-ufm/pkg/config/config.go | 1 + op-ufm/op-ufm/pkg/provider/tx_pool.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/op-ufm/op-ufm/pkg/config/config.go b/op-ufm/op-ufm/pkg/config/config.go index 39c96ce..3f0abda 100644 --- a/op-ufm/op-ufm/pkg/config/config.go +++ b/op-ufm/op-ufm/pkg/config/config.go @@ -64,6 +64,7 @@ type ProviderConfig struct { SendInterval TOMLDuration `toml:"send_interval"` SendTransactionRetryInterval TOMLDuration `toml:"send_transaction_retry_interval"` SendTransactionRetryTimeout TOMLDuration `toml:"send_transaction_retry_timeout"` + SendTransactionCoolDown TOMLDuration `toml:"send_transaction_cool_down"` ReceiptRetrievalInterval TOMLDuration `toml:"receipt_retrieval_interval"` ReceiptRetrievalTimeout TOMLDuration `toml:"receipt_retrieval_timeout"` diff --git a/op-ufm/op-ufm/pkg/provider/tx_pool.go b/op-ufm/op-ufm/pkg/provider/tx_pool.go index af0c9b1..f6de257 100644 --- a/op-ufm/op-ufm/pkg/provider/tx_pool.go +++ b/op-ufm/op-ufm/pkg/provider/tx_pool.go @@ -16,6 +16,9 @@ type NetworkTransactionPool struct { Transactions map[string]*TransactionState Expected int Nonce uint64 + + // Last time a transaction was sent + LastSend time.Time } type TransactionState struct {