github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/sequencesender/config.go (about) 1 package sequencesender 2 3 import ( 4 "github.com/0xPolygon/supernets2-node/config/types" 5 ) 6 7 // Config represents the configuration of a sequence sender 8 type Config struct { 9 // WaitPeriodSendSequence is the time the sequencer waits until 10 // trying to send a sequence to L1 11 WaitPeriodSendSequence types.Duration `mapstructure:"WaitPeriodSendSequence"` 12 // LastBatchVirtualizationTimeMaxWaitPeriod is time since sequences should be sent 13 LastBatchVirtualizationTimeMaxWaitPeriod types.Duration `mapstructure:"LastBatchVirtualizationTimeMaxWaitPeriod"` 14 // MaxBatchesForL1 is the maximum amount of batches to be sequenced in a single L1 tx 15 MaxBatchesForL1 uint64 `mapstructure:"MaxBatchesForL1"` 16 // SenderAddress defines which private key the eth tx manager needs to use 17 // to sign the L1 txs 18 SenderAddress string `mapstructure:"SenderAddress"` 19 // TODO: rollback to array 20 PrivateKeys []types.KeystoreFileConfig `mapstructure:"PrivateKeys"` 21 }