Skip to content

Commit 826c3d9

Browse files
committed
fix omitempty
1 parent 0837abe commit 826c3d9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

params/config.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -810,11 +810,11 @@ func (c *EthashConfig) String() string {
810810

811811
// CliqueConfig is the consensus engine configs for proof-of-authority based sealing.
812812
type CliqueConfig struct {
813-
Period uint64 `json:"period"` // Number of seconds between blocks to enforce
814-
Epoch uint64 `json:"epoch"` // Epoch length to reset votes and checkpoint
815-
RelaxedPeriod bool `json:"relaxed_period,omitempty"` // Relaxes the period to be just an upper bound
816-
ShadowForkHeight uint64 `json:"shadow_fork_height"` // Allows shadow forking consensus layer at given height
817-
ShadowForkSigner common.Address `json:"shadow_fork_signer"` // Sets the address to be the authorized signer after the shadow fork
813+
Period uint64 `json:"period"` // Number of seconds between blocks to enforce
814+
Epoch uint64 `json:"epoch"` // Epoch length to reset votes and checkpoint
815+
RelaxedPeriod bool `json:"relaxed_period"` // Relaxes the period to be just an upper bound
816+
ShadowForkHeight uint64 `json:"shadow_fork_height"` // Allows shadow forking consensus layer at given height
817+
ShadowForkSigner common.Address `json:"shadow_fork_signer"` // Sets the address to be the authorized signer after the shadow fork
818818
}
819819

820820
// String implements the stringer interface, returning the consensus engine details.
@@ -824,10 +824,10 @@ func (c *CliqueConfig) String() string {
824824

825825
// SystemContractConfig is the consensus engine configs for rollup sequencer sealing.
826826
type SystemContractConfig struct {
827-
Period uint64 `json:"period"` // Number of seconds between blocks to enforce
828-
BlocksPerSecond uint64 `json:"blocks_per_second"` // Number of blocks per second within the period
829-
SystemContractAddress common.Address `json:"system_contract_address"` // address of system contract on L1
830-
SystemContractSlot common.Hash `json:"system_contract_slot"` // slot of signer address in system contract on L1
827+
Period uint64 `json:"period"` // Number of seconds between blocks to enforce
828+
BlocksPerSecond uint64 `json:"blocks_per_second,omitempty"` // Number of blocks per second within the period
829+
SystemContractAddress common.Address `json:"system_contract_address"` // address of system contract on L1
830+
SystemContractSlot common.Hash `json:"system_contract_slot"` // slot of signer address in system contract on L1
831831

832832
RelaxedPeriod bool `json:"relaxed_period"` // Relaxes the period to be just an upper bound
833833
}

0 commit comments

Comments
 (0)