How to specify limit weight for extrinsic?
-
1What is your extrinsic doing? Can you share the code?– Bruno ♦Feb 23 at 22:23
-
1Did you benchmark it appropriately?– Bruno ♦Feb 23 at 22:24
-
This one github.com/pendulum-chain/oracle-pallet/blob/master/pallets/… @Bruno– rust.devFeb 24 at 9:11
-
@Bruno what is the reason of 1010 error in my case?– rust.devFeb 24 at 9:12
1 Answer
I believe that the error reported by polkadot.js UI is informative enough of the issue. 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).