integritee-network / worker

Integritee off-chain worker and sidechain validateer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SBliFF legacy pass-through

brenzi opened this issue · comments

Before we can tackle fork-handling, we need to make block confirmation work with SBliFF L1 pallet as it was before. With SBliFF, we can only confirm imported sidechain blocks if we know what the latest finalized header is. This information must be fetched before importing blocks and must be passed on until confirm_imported_sidechain_block.

subtasks

  • refactor itp-enclave-bridge-storage and itp-teerex-storage crates into merged itp-pallet-storage and add sidechain::LatestSidechainBlockConfirmation (less redundant code)
  • fetch sidechain::LatestSidechainBlockConfirmation from Integritee Network. probably directly in top_pool_execution, and passing the header into BlockImportQueueWorker::process_queue`
  • use LatestSidechainBlockConfirmation when confirming block in PeerBlockSync::import_or_sync_blocks()

this does not include

  • detecting if we're on a fork
  • acting on it

it just enables confirming sidechain blocks with the new pallet (tx version 7)