mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 02:51:01 +00:00
fail with InsufficientDispatchWeight if dispatch_weight doesn't cover weight of all bundled messages (#2018)
This commit is contained in:
committed by
Bastian Köcher
parent
98542685b1
commit
f659ebed7a
@@ -160,6 +160,16 @@ pub mod pallet {
|
||||
///
|
||||
/// If successful in verification, it will write the target header to the underlying storage
|
||||
/// pallet.
|
||||
///
|
||||
/// The call fails if:
|
||||
///
|
||||
/// - the pallet is halted;
|
||||
///
|
||||
/// - the pallet knows better header than the `finality_target`;
|
||||
///
|
||||
/// - verification is not optimized or invalid;
|
||||
///
|
||||
/// - header contains forced authorities set change or change with non-zero delay.
|
||||
#[pallet::call_index(0)]
|
||||
#[pallet::weight(<T::WeightInfo as WeightInfo>::submit_finality_proof(
|
||||
justification.commit.precommits.len().saturated_into(),
|
||||
|
||||
Reference in New Issue
Block a user