artela-network / artela

Powerful blockchain node with Aspect programming enabled.
https://www.artela.network/
Apache License 2.0
99 stars 81 forks source link

fix: fix gas estimation inaccuracy #140

Closed dumbeng closed 2 months ago

dumbeng commented 2 months ago

Currently, the gas consumption of our tx verifier cannot be included in the execution costs because it involves the transfer of data inside and outside the consensus state, which is very complicated.

Therefore, we have set a rule: the maximum gas consumption for tx verification is 150,000, with the session key used as a reference value, approximately consuming around 77,000.

If it is a custom-verified transaction, this 150,000 gas will be counted as the intrinsic gas of the transaction.