mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-26 20:39:58 +00:00
[contracts] Add upfront weight of merkle trie proofs for storage reading functions (#13236)
* Add upfront weight of merkle trie proofs for storage reading functions * drive-by fixes
This commit is contained in:
1 parent
3b03862caf
commit
2a38f4122a
3 files changed
+16
-13
No files matched your search
@@ -644,23 +644,23 @@ impl<T: Config> Default for HostFnWeights<T> {
|
||||
1
|
||||
)),
|
||||
debug_message: to_weight!(cost_batched!(seal_debug_message)),
|
||||
set_storage: to_weight!(cost_batched!(seal_set_storage)),
|
||||
set_storage: to_weight!(cost_batched!(seal_set_storage), 1024u64),
|
||||
set_code_hash: to_weight!(cost_batched!(seal_set_code_hash)),
|
||||
set_storage_per_new_byte: to_weight!(cost_byte_batched!(seal_set_storage_per_new_kb)),
|
||||
set_storage_per_old_byte: to_weight!(
|
||||
cost_byte_batched!(seal_set_storage_per_old_kb),
|
||||
1u64
|
||||
),
|
||||
clear_storage: to_weight!(cost_batched!(seal_clear_storage)),
|
||||
clear_storage: to_weight!(cost_batched!(seal_clear_storage), 1024u64),
|
||||
clear_storage_per_byte: to_weight!(cost_byte_batched!(seal_clear_storage_per_kb), 1u64),
|
||||
contains_storage: to_weight!(cost_batched!(seal_contains_storage)),
|
||||
contains_storage: to_weight!(cost_batched!(seal_contains_storage), 1024u64),
|
||||
contains_storage_per_byte: to_weight!(
|
||||
cost_byte_batched!(seal_contains_storage_per_kb),
|
||||
1u64
|
||||
),
|
||||
get_storage: to_weight!(cost_batched!(seal_get_storage)),
|
||||
get_storage: to_weight!(cost_batched!(seal_get_storage), 1024u64),
|
||||
get_storage_per_byte: to_weight!(cost_byte_batched!(seal_get_storage_per_kb), 1u64),
|
||||
take_storage: to_weight!(cost_batched!(seal_take_storage)),
|
||||
take_storage: to_weight!(cost_batched!(seal_take_storage), 1024u64),
|
||||
take_storage_per_byte: to_weight!(cost_byte_batched!(seal_take_storage_per_kb), 1u64),
|
||||
transfer: to_weight!(cost_batched!(seal_transfer)),
|
||||
call: to_weight!(cost_batched!(seal_call)),
|
||||
|
||||
Reference in new issue
Block a user