@@ -98,28 +98,30 @@ func (c *Config) GetAddress() common.Address {
98
98
}
99
99
100
100
type GnosisConfig struct {
101
- Node * configuration.EthnodeConfig `shconfig:",required"`
102
- Contracts * GnosisContractsConfig `shconfig:",required"`
103
- EncryptedGasLimit uint64 `shconfig:",required"`
104
- MinGasPerTransaction uint64 `shconfig:",required"`
105
- MaxTxPointerAge uint64 `shconfig:",required"`
106
- SecondsPerSlot uint64 `shconfig:",required"`
107
- SlotsPerEpoch uint64 `shconfig:",required"`
108
- GenesisSlotTimestamp uint64 `shconfig:",required"`
109
- SyncStartBlockNumber uint64 `shconfig:",required"`
101
+ Node * configuration.EthnodeConfig `shconfig:",required"`
102
+ Contracts * GnosisContractsConfig `shconfig:",required"`
103
+ EncryptedGasLimit uint64 `shconfig:",required"`
104
+ MinGasPerTransaction uint64 `shconfig:",required"`
105
+ MaxTxPointerAge uint64 `shconfig:",required"`
106
+ SecondsPerSlot uint64 `shconfig:",required"`
107
+ SlotsPerEpoch uint64 `shconfig:",required"`
108
+ GenesisSlotTimestamp uint64 `shconfig:",required"`
109
+ SyncStartBlockNumber uint64 `shconfig:",required"`
110
+ SyncMonitorCheckInterval uint64 `shconfig:",required"`
110
111
}
111
112
112
113
func NewGnosisConfig () * GnosisConfig {
113
114
c := & GnosisConfig {
114
- Node : configuration .NewEthnodeConfig (),
115
- Contracts : NewGnosisContractsConfig (),
116
- EncryptedGasLimit : 0 ,
117
- MinGasPerTransaction : 0 ,
118
- MaxTxPointerAge : 0 ,
119
- SecondsPerSlot : 0 ,
120
- SlotsPerEpoch : 0 ,
121
- GenesisSlotTimestamp : 0 ,
122
- SyncStartBlockNumber : 0 ,
115
+ Node : configuration .NewEthnodeConfig (),
116
+ Contracts : NewGnosisContractsConfig (),
117
+ EncryptedGasLimit : 0 ,
118
+ MinGasPerTransaction : 0 ,
119
+ MaxTxPointerAge : 0 ,
120
+ SecondsPerSlot : 0 ,
121
+ SlotsPerEpoch : 0 ,
122
+ GenesisSlotTimestamp : 0 ,
123
+ SyncStartBlockNumber : 0 ,
124
+ SyncMonitorCheckInterval : 0 ,
123
125
}
124
126
c .Init ()
125
127
return c
@@ -156,6 +158,7 @@ func (c *GnosisConfig) SetExampleValues() error {
156
158
c .SlotsPerEpoch = 16
157
159
c .GenesisSlotTimestamp = 1665410700
158
160
c .SyncStartBlockNumber = 0
161
+ c .SyncMonitorCheckInterval = 30
159
162
return nil
160
163
}
161
164
0 commit comments