cosmos-sdk icon indicating copy to clipboard operation
cosmos-sdk copied to clipboard

Audit baseapp v0.47...v0.50

Open alexanderbez opened this issue 2 years ago • 1 comments

alexanderbez avatar Jun 08 '23 22:06 alexanderbez

Changes:

Important:

  • Return error during ExtendVote and VerifyVoteExtension if the request height is earlier than VoteExtensionsEnableHeight (see comments in this pr).
  • Added hash to context header info in ExtendVote
  • VoteExtensions are disabled by default unless consensusParams.Abci != nil AND if cp.Abci.VoteExtensionsEnableHeight > 0 AND req.Height >= cp.Abci.VoteExtensionsEnableHeight.

Other:

  • Added instructions on how to enable vote extensions in Upgrading.md
  • Increase test coverage
  • Fix some tests to conform to the expected behavior (txs not changing between ProcessProposal and FinalizeBlock)
  • Also missing docs on CometBFT: https://github.com/cometbft/cometbft/issues/1036

Notes/Qs:

  • SetStreamingService was removed at https://github.com/cosmos/cosmos-sdk/pull/14207 should it get added to changelog?
  • TestABCI_MultiListener_StateChanges has some commented lines, not sure if solvable right now tho

facundomedica avatar Jun 29 '23 10:06 facundomedica

Closing this soon as we've addressed all major concerns. Would appreciate perhaps a third look (@julienrbrt?) since this is such a high impact area of the code.

alexanderbez avatar Jul 18 '23 15:07 alexanderbez

Sure, I can give it a look later this week!

julienrbrt avatar Jul 18 '23 18:07 julienrbrt

I have not found anything problematic. Just some nits here and there. Once there is a testnet up we should verify state sync works as I have not tried it.

julienrbrt avatar Aug 08 '23 21:08 julienrbrt