Allow node to restart after halt config trigger (#5352)
* Allow node to restart after halt config trigger * Update godoc * Update documentation on halt config
This commit is contained in:
committed by
Federico Kunze
parent
7953b525d8
commit
b862e271a1
@@ -22,16 +22,14 @@ type BaseConfig struct {
|
||||
// HaltHeight contains a non-zero block height at which a node will gracefully
|
||||
// halt and shutdown that can be used to assist upgrades and testing.
|
||||
//
|
||||
// Note: State will not be committed on the corresponding height and any logs
|
||||
// indicating such can be safely ignored.
|
||||
// Note: Commitment of state will be attempted on the corresponding block.
|
||||
HaltHeight uint64 `mapstructure:"halt-height"`
|
||||
|
||||
// HaltTime contains a non-zero minimum block time (in Unix seconds) at which
|
||||
// a node will gracefully halt and shutdown that can be used to assist
|
||||
// upgrades and testing.
|
||||
//
|
||||
// Note: State will not be committed on the corresponding height and any logs
|
||||
// indicating such can be safely ignored.
|
||||
// Note: Commitment of state will be attempted on the corresponding block.
|
||||
HaltTime uint64 `mapstructure:"halt-time"`
|
||||
|
||||
// InterBlockCache enables inter-block caching.
|
||||
|
||||
@@ -21,16 +21,14 @@ minimum-gas-prices = "{{ .BaseConfig.MinGasPrices }}"
|
||||
# HaltHeight contains a non-zero block height at which a node will gracefully
|
||||
# halt and shutdown that can be used to assist upgrades and testing.
|
||||
#
|
||||
# Note: State will not be committed on the corresponding height and any logs
|
||||
# indicating such can be safely ignored.
|
||||
# Note: Commitment of state will be attempted on the corresponding block.
|
||||
halt-height = {{ .BaseConfig.HaltHeight }}
|
||||
|
||||
# HaltTime contains a non-zero minimum block time (in Unix seconds) at which
|
||||
# a node will gracefully halt and shutdown that can be used to assist upgrades
|
||||
# and testing.
|
||||
#
|
||||
# Note: State will not be committed on the corresponding height and any logs
|
||||
# indicating such can be safely ignored.
|
||||
# Note: Commitment of state will be attempted on the corresponding block.
|
||||
halt-time = {{ .BaseConfig.HaltTime }}
|
||||
|
||||
# InterBlockCache enables inter-block caching.
|
||||
|
||||
Reference in New Issue
Block a user