Return latest known relay chain block number in on_initialize etc (#2862)

This changes `RelaychainDataProvider` to return the latest known relay
chain block number in `on_initialize` et all, aka when the
`validation_data` wasn't yet set by the inherent.

---------

Co-authored-by: Dónal Murray <donal.murray@parity.io>
This commit is contained in:
Bastian Köcher
2024-01-08 12:45:17 +00:00
committed by GitHub
parent a97a6f2095
commit dbff87c268
2 changed files with 29 additions and 35 deletions
+11
View File
@@ -0,0 +1,11 @@
title: Return latest known relay chain block number in `on_initialize` etc.
doc:
- audience: Runtime Dev
description: |
`RelaychainDataProvider` and `RelaychainBlockNumberProvider` will now return the latest known
relay chain block number in `on_initialize`, aka when `validation_data` wasn't yet set by
the inherent.
crates:
- name: "cumulus-pallet-parachain-system"