fixseencommit

command
v35.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command fixseencommit repairs the seen commit that `strided in-place-testnet` would otherwise corrupt. It is a prerequisite of the localstride upgrade flow - see localstride/README.md.

The cosmos-sdk testnetify() routine rewrites the seen commit at the node's last block so that it appears signed by the local validator (server/start.go):

seenCommit.Signatures[0].Signature        = vote.Signature
seenCommit.Signatures[0].ValidatorAddress = validatorAddress
seenCommit.Signatures[0].Timestamp        = vote.Timestamp

It assigns the validator address but never touches BlockIDFlag, assuming slot 0 belongs to a validator that signed the block. When that validator was absent, the flag stays BlockIDFlagAbsent while the address becomes non-empty - precisely the combination CommitSig.ValidateBasic() rejects with "validator address is present". The node then panics on the next start, while reconstructing its last commit.

Promoting a validator that actually signed into slot 0 beforehand avoids this: testnetify overwrites every other field of that signature, so only the COMMIT flag needs to survive. Running this against an already-healthy seen commit is a no-op.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL