mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-26 03:01:07 +00:00
Fixes PoV over-estimation (#13766)
* Align log Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use max instead of sum Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make comment ordering deterministic Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Dont add Pov overhead when all is ignored Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update test pallet weights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Re-run weights on bm2 Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Actually use new weights Fucked up the merge for this file... Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update contract weights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
46e2d3e5f8
commit
ebfe00d590
@@ -144,9 +144,9 @@ fn unbounded_read_best_effort() {
|
||||
fn partial_unbounded_read_best_effort() {
|
||||
let w_unbounded = W::storage_value_unbounded_read().proof_size();
|
||||
let w_bounded = W::storage_value_bounded_read().proof_size();
|
||||
let w_partial = W::storage_value_bounded_and_unbounded_read().proof_size();
|
||||
let w_both = W::storage_value_bounded_and_unbounded_read().proof_size();
|
||||
|
||||
assert_eq!(w_bounded + w_unbounded, w_partial, "The bounded part increases the PoV");
|
||||
assert!(w_both > w_bounded && w_both > w_unbounded, "The bounded part increases the PoV");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user