tendermint / spn

A blockchain to launch blockchains.
Other
112 stars 41 forks source link

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

Open lumtis opened 2 years ago

lumtis commented 2 years ago

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:

Potential solution on our chain:

Don't hesitate to put more information @giunatale

giunatale commented 2 years ago

For context, see also #369

lumtis commented 2 years ago

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