[pallet_contracts] Increase the weight of the deposit_event host function to...
[pallet_contracts] Increase the weight of the deposit_event host function to limit the memory used by events. (#4973)
This PR updates the weight of the `deposit_event` host function by
adding
a fixed ref_time of 60,000 picoseconds per byte. Given a block time of 2
seconds
and this specified ref_time, the total allocation size is 32MB.
---------
Co-authored-by:
Alexander Theißen <alex.theissen@me.com>
parent
2b5ccbae
Showing
- prdoc/pr_4973.prdoc 15 additions, 0 deletionsprdoc/pr_4973.prdoc
- substrate/frame/contracts/src/lib.rs 61 additions, 2 deletionssubstrate/frame/contracts/src/lib.rs
- substrate/frame/contracts/src/schedule.rs 10 additions, 0 deletionssubstrate/frame/contracts/src/schedule.rs
- substrate/frame/contracts/src/wasm/runtime.rs 7 additions, 1 deletionsubstrate/frame/contracts/src/wasm/runtime.rs
Please register or sign in to comment