Skip to content

Allow to apply balance updates from migration

Tomáš Zemanovič requested to merge tomas/migration-receipts into proto-proposal

This 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.

implements #138 (closed)

re-opened from !46 (merged) and !280 (merged)

Edited by Tomáš Zemanovič

Merge request reports