Skip to content

Commit

Permalink
changed max_weight in opf
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkazu committed Sep 20, 2024
1 parent fa30adb commit 2cf44db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/frame/opf/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl<T: Config> Pallet<T> {
// To be executed in a hook, on_initialize
pub fn on_idle_function(now: BlockNumberFor<T>, limit: Weight) -> Weight {
let mut meter = WeightMeter::with_limit(limit);
let max_block_weight = Weight::from_parts(1000_u64, 0);
let max_block_weight = T::BlockWeights::get().max_block;

if meter.try_consume(max_block_weight).is_err() {
return meter.consumed();
Expand Down

0 comments on commit 2cf44db

Please sign in to comment.