fix(cosmovisor): Fix consensus failure lottery (#24262)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
Co-authored-by: Zygimantas <zygis@skip.build>
This commit is contained in:
Alexander Peters 2025-04-03 16:45:06 +02:00 committed by GitHub
parent 3c6deab626
commit 877b4fb2dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View File

@ -40,6 +40,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
* [#23720](https://github.com/cosmos/cosmos-sdk/pull/23720) Get block height from db after node execution fails
### Bug Fixes
* [#23683](https://github.com/cosmos/cosmos-sdk/pull/23683) Replace `SigInt` with `SigTerm` to gracefully shutdown the process.
## v1.7.1 - 2025-01-12
### Bug Fixes

View File

@ -283,7 +283,7 @@ func (l Launcher) WaitForUpgradeOrExit(cmd *exec.Cmd) (bool, error) {
if l.cfg.ShutdownGrace > 0 {
// Interrupt signal
l.logger.Info("sent interrupt to app, waiting for exit")
_ = cmd.Process.Signal(os.Interrupt)
_ = cmd.Process.Signal(syscall.SIGTERM)
// Wait app exit
psChan := make(chan *os.ProcessState)

View File

@ -5,7 +5,7 @@ warn() {
echo "WARN Need Flush"
}
trap warn INT
trap warn TERM
echo Genesis $@
sleep 1
test -z $4 && exit 1001