Skip to content

Proto: Allow to attach balance updates receipt from migration

Context

This MR is re-opened from metastatedev/tezos!335 (closed).

It allows to attach balance update receipts from a migration. Because the migration runs before the first block of the new protocol, we cannot return balance updates directly from migration's prepare_first_block. Instead, we add the balance updates receipts when we're finalizing the first block.

This adds a new storage (Storage.Pending_migration_balance_updates) that can be set during migration and checked when we try to finalize a block to apply balance updates receipts.

A new type of receipt for migration is added to allow indexers to disambiguate migration balance updates from regular balance updates. This feature has been requested in a feedback from Delphi testnet (see https://blockwatch.cc/blog/tezos-delphi-v007-rc1-review/).

Manually testing the MR

Describe how reviewers and approvers can test this MR.

Checklist

- [ ] Document the interface of any function added or modified (see the coding guidelines)

- [ ] Add item in the Development Version section of CHANGES.md (only for new features and bug fixes).

Reviewers

@mbouaziz @klakplok @paracetamolo @rafoo_

Edited by Tomáš Zemanovič

Merge request reports