|
|
@ -332,22 +332,23 @@ func NewNode(mode Mode, cfg *config.Node) (*Node, error) { |
|
|
|
|
|
|
|
coord, err = coordinator.NewCoordinator( |
|
|
|
coordinator.Config{ |
|
|
|
ForgerAddress: cfg.Coordinator.ForgerAddress, |
|
|
|
ConfirmBlocks: cfg.Coordinator.ConfirmBlocks, |
|
|
|
L1BatchTimeoutPerc: cfg.Coordinator.L1BatchTimeoutPerc, |
|
|
|
ForgeRetryInterval: cfg.Coordinator.ForgeRetryInterval.Duration, |
|
|
|
ForgeDelay: cfg.Coordinator.ForgeDelay.Duration, |
|
|
|
ForgeNoTxsDelay: cfg.Coordinator.ForgeNoTxsDelay.Duration, |
|
|
|
SyncRetryInterval: cfg.Coordinator.SyncRetryInterval.Duration, |
|
|
|
PurgeByExtDelInterval: cfg.Coordinator.PurgeByExtDelInterval.Duration, |
|
|
|
EthClientAttempts: cfg.Coordinator.EthClient.Attempts, |
|
|
|
EthClientAttemptsDelay: cfg.Coordinator.EthClient.AttemptsDelay.Duration, |
|
|
|
EthNoReuseNonce: cfg.Coordinator.EthClient.NoReuseNonce, |
|
|
|
EthTxResendTimeout: cfg.Coordinator.EthClient.TxResendTimeout.Duration, |
|
|
|
MaxGasPrice: cfg.Coordinator.EthClient.MaxGasPrice, |
|
|
|
GasPriceIncPerc: cfg.Coordinator.EthClient.GasPriceIncPerc, |
|
|
|
TxManagerCheckInterval: cfg.Coordinator.EthClient.CheckLoopInterval.Duration, |
|
|
|
DebugBatchPath: cfg.Coordinator.Debug.BatchPath, |
|
|
|
ForgerAddress: cfg.Coordinator.ForgerAddress, |
|
|
|
ConfirmBlocks: cfg.Coordinator.ConfirmBlocks, |
|
|
|
L1BatchTimeoutPerc: cfg.Coordinator.L1BatchTimeoutPerc, |
|
|
|
ForgeRetryInterval: cfg.Coordinator.ForgeRetryInterval.Duration, |
|
|
|
ForgeDelay: cfg.Coordinator.ForgeDelay.Duration, |
|
|
|
MustForgeAtSlotDeadline: cfg.Coordinator.MustForgeAtSlotDeadline, |
|
|
|
ForgeNoTxsDelay: cfg.Coordinator.ForgeNoTxsDelay.Duration, |
|
|
|
SyncRetryInterval: cfg.Coordinator.SyncRetryInterval.Duration, |
|
|
|
PurgeByExtDelInterval: cfg.Coordinator.PurgeByExtDelInterval.Duration, |
|
|
|
EthClientAttempts: cfg.Coordinator.EthClient.Attempts, |
|
|
|
EthClientAttemptsDelay: cfg.Coordinator.EthClient.AttemptsDelay.Duration, |
|
|
|
EthNoReuseNonce: cfg.Coordinator.EthClient.NoReuseNonce, |
|
|
|
EthTxResendTimeout: cfg.Coordinator.EthClient.TxResendTimeout.Duration, |
|
|
|
MaxGasPrice: cfg.Coordinator.EthClient.MaxGasPrice, |
|
|
|
GasPriceIncPerc: cfg.Coordinator.EthClient.GasPriceIncPerc, |
|
|
|
TxManagerCheckInterval: cfg.Coordinator.EthClient.CheckLoopInterval.Duration, |
|
|
|
DebugBatchPath: cfg.Coordinator.Debug.BatchPath, |
|
|
|
Purger: coordinator.PurgerCfg{ |
|
|
|
PurgeBatchDelay: cfg.Coordinator.L2DB.PurgeBatchDelay, |
|
|
|
InvalidateBatchDelay: cfg.Coordinator.L2DB.InvalidateBatchDelay, |
|
|
|