pendulum-chain / oracle-pallet

The Unlicense
0 stars 0 forks source link

update weight for set_updated_coin_infos #4

Closed RustNinja closed 1 year ago

RustNinja commented 1 year ago

Update weight for set price info extrinsic more about issue: image

image

Problem The weight defined for the dispatchable function set_updated_coin_infos represents a computation longer than one second (1^12 units of weight = 1 second of computation).

Solution: specify weight limit for extrinsic that related to 1 read and 1 write and less than one sec.