spn icon indicating copy to clipboard operation
spn copied to clipboard

Simulation test: `out of gas` error when handling lot of denoms

Open lumtis opened this issue 3 years ago • 2 comments

out of gas error may occur during simulation tests when having a lot of denoms handled, vouchers in our case Fees in simulation tests in SDK are paid with all denoms. Then all the denom rewards are auto-claimed which triggers the out of gas.

Potential solution on SDK:

  • make auto-claim gasless
  • change RandomFees to use a single denom

Potential solution on our chain:

  • Limit number of created vouchers

Don't hesitate to put more information @giunatale

lumtis avatar Apr 25 '22 08:04 lumtis

For context, see also #369

giunatale avatar Apr 25 '22 09:04 giunatale

NOTE: when we want to perform big simulation, we can still decrease the weight for the operations minting vouchers and unredeeming

	defaultWeightMsgMintVouchers      = 1
	defaultWeightMsgUnredeemVouchers  = 1

lumtis avatar May 04 '22 12:05 lumtis