You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tuxcanfly opened this issue
Jul 24, 2023
· 4 comments
Labels
choreoptional label for items that follow the `chore` conventional commitproposalitem is not yet actionable and is suggesting a change that must first be agreed upon
func SubtreeRootThreshold(version uint64) int {
switch version {
case v1.Version:
return v1.SubtreeRootThreshold
default:
panic('invalid version for SubtreeRootThreshold')
}
}
Note, there is an existing thread that discusses the pros and cons of a switch statement with a default panic.
rootulp
added
chore
optional label for items that follow the `chore` conventional commit
proposal
item is not yet actionable and is suggesting a change that must first be agreed upon
and removed
needs:triage
labels
Jul 25, 2023
per that thread, adding pacnics doesn't actually provide us with anything since comet is already checking during header verification. this means that in the application these can never get hit in the event that a chain updates and a consensus node is not aware of that upgrade.
there is almost all downside for core/app because if we forget to update a value, for example one that only gets hit once a year (like if we make a consensus breaking change to the mint module), then we will panic, halting the chain simply because we forgot to update or test a value.
similarly, other repos that import these values must do the same thing, where they check that the app version changed how they expected it to during header verification anyway. If they are doing that, then the same concept applies and they only open up a potential halt if there is a human error
choreoptional label for items that follow the `chore` conventional commitproposalitem is not yet actionable and is suggesting a change that must first be agreed upon
Originally posted by @MSevey in celestiaorg/celestia-openrpc#32 (comment)
The text was updated successfully, but these errors were encountered: