Benchmark promote_fast
and others in pallet-core-fellowship
Generates Ranks Exceeding MaxRank
#7517
Open
2 tasks done
Labels
I2-bug
The node fails to follow expected behavior.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
When running the
promote_fast
benchmark inpallet_core_fellowship
, I encountered an issue where the generated rank (r
) exceeded the configuredMaxRank
. Specifically, even whenT::MaxRank::get() == 1
, the benchmark framework sometimes assignedr = 2
, causing the extrinsic call to fail with anInvalidRank
error.Steps to Reproduce
T::MaxRank::get() == 1
.promote_fast
.log::info!("Benchmark promote_fast: r={} MaxRank={}", r, T::MaxRank::get());
r
is sometimes set to2
, leading to anInvalidRank
error.Expected Behavior
The benchmark framework should respect the constraint that r must be in the range
[1, T::MaxRank::get()]
, ensuringr
never exceedsMaxRank
.Actual Behavior
The benchmark framework assigns
r = 2
even whenMaxRank == 1
.This causes the
promote_fast
extrinsic to fail validation.Are you willing to work on this?
yes
cc @ggwpez
The text was updated successfully, but these errors were encountered: