8000 Fix `SaveBlockStoreState` signature on `v0.38.x` by sergio-mena · Pull Request #2086 · cometbft/cometbft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix SaveBlockStoreState signature on v0.38.x #2086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

sergio-mena
Copy link
Contributor

Closes #2085

Added SaveBlockStoreStateBatch with the new functionality, while leaving SaveBlockStoreState with the same signature as in v0.38.2


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

@sergio-mena sergio-mena self-assigned this Jan 22, 2024
@sergio-mena sergio-mena requested a review from a team as a code owner January 22, 2024 10:08
Copy link
Contributor
@jmalicevic jmalicevic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sergio-mena sergio-mena merged commit 25422ef into v0.38.x Jan 22, 2024
@sergio-mena sergio-mena deleted the sergio/2085-fix-saveblockstorestate-signature branch January 22, 2024 10:19
8000
@@ -611,12 +611,31 @@ func calcBlockHashKey(hash []byte) []byte {
var blockStoreKey = []byte("blockStore")

// SaveBlockStoreState persists the blockStore state to the database.
func SaveBlockStoreState(bsj *cmtstore.BlockStoreState, batch dbm.Batch) {
// depretaced: still present in this version for API compatibility
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • deprecated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0