airgap-it / tezos-rust-sdk

MIT License
20 stars 10 forks source link

Min_fee seems to get fee estimation wrong #24

Closed Wicpar closed 1 year ago

Wicpar commented 1 year ago

Hi,

I'm trying to batch operations, hewever it seems like it is unable to batch more than two contract calls into one Operation: proto.016-PtMumbai.gas_limit_too_high , temporary proto.016-PtMumbai.gas_exhausted.block The operations in question use about 500 mutez so it shouldn't hit that ceiling in a while. it accepts a maximum of two. https://ghost.tzstats.com/KT1CHcYabMgy7Jngg5HUYeugZkiy6vs3ikU9

any idea why ?

Wicpar commented 1 year ago

after some time i figured out the issue: the default per transaction max fees are too high which means at most two transactions can be estimated at once for some reason (maybe the per transaction max is summed for the operation's max). To put more through the max gas and fees need to be set lower per transaction.