mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
paras: fix upgrade restriction signal (#4603)
Closes #3971 Read the linked issue. Apart from that, this addresses the concern raised in this [comment] by just adding a test. I couldn't find a clean way to reconcile a block number delay with a PVF voting TTL, so I just resorted to rely on the test. Should be fine for now. [comment]: https://github.com/paritytech/polkadot/pull/4457#discussion_r770517562
This commit is contained in:
@@ -168,7 +168,7 @@ pub mod pallet {
|
||||
total_weight
|
||||
}
|
||||
|
||||
fn on_finalize(_: T::BlockNumber) {
|
||||
fn on_finalize(now: T::BlockNumber) {
|
||||
// reverse initialization order.
|
||||
hrmp::Pallet::<T>::initializer_finalize();
|
||||
ump::Pallet::<T>::initializer_finalize();
|
||||
@@ -177,7 +177,7 @@ pub mod pallet {
|
||||
session_info::Pallet::<T>::initializer_finalize();
|
||||
inclusion::Pallet::<T>::initializer_finalize();
|
||||
scheduler::Pallet::<T>::initializer_finalize();
|
||||
paras::Pallet::<T>::initializer_finalize();
|
||||
paras::Pallet::<T>::initializer_finalize(now);
|
||||
shared::Pallet::<T>::initializer_finalize();
|
||||
configuration::Pallet::<T>::initializer_finalize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user