zebra/zebra-state
Arya e14d1d8e40
change(state): Upgrade db format to support new fields in RPC outputs (#9539)
* updates book/../state-db-upgrades.md

* updates zebra-consensus with the changes from PR #9432 and minor test changes from #9295

* updates zebra-chain with the changes from PR #9432

* updates imports in zebra-rpc

* Merges and applies changes to zebra-state from PRs #9295 and #9432

* adds a TODO.

* minor update to zebra-rpc to use the new ReadResponse::AddressBalance type

* renames add_block_info db upgrade

* moves migration from `add_balance_received` to `block_info_and_address_received`

* replaces `write` with `write_batch`

* update disk format snapshots

* combines partial_transparent_balance_change() and partial_transparent_received_change()

* fixes typo

* Replaces redundant code with a call to `construct_column_families()`

* refactors `AddressBalanceLocation` and `AddressBalanceLocationChange` into a newtypes around a common inner type.

* fixes lints and doc compilation issue

* updates snapshots

* bumps the db format version to the next major version (27.0.0) instead of the next minor version (26.1.0)

* fixes clippy lint, minor cleanups

* fixes lint

* applies suggestions from code review

* fixes a mistake in `is_reusable_major_upgrade` where v26.0.0 is not a restorable db version

* Fixes an issue around marking an upgraded db format in the disk version file before completing migrations when reusing a previous major db format and restarting Zebrad before the migration is complete.

* Apply suggestions from code review

---------

Co-authored-by: Gustavo Valverde <gustavo@iterativo.do>
2025-06-03 20:49:53 +00:00
..
proptest-regressions/service
src change(state): Upgrade db format to support new fields in RPC outputs (#9539) 2025-06-03 20:49:53 +00:00
tests
Cargo.toml change(deps): Allow Zebra crates to be compiled with alternative versions of their dependencies (#9484) 2025-06-03 16:10:25 +00:00