Skip to content

RPC: Fix delegated contracts linking

fixes #67 (closed)

NOTE: This MR is to be used only on proposal that won't include baking-accounts.

This prevents self-delegated contracts (bakers) from getting linked to themselves in Storage.Contract.Delegated storage, to restore pre-Babylon behaviour. This storage is exposed to the RPC via ../<block_id>/context/delegates/<pkh>/delegated_contracts.

The migration cleans-up any existing self-delegated associations.

Edited by Tomáš Zemanovič

Merge request reports