Evermint is a fork of open source Evmos, maintains bug fixes, customization and enable developers to fork and transform to their chain, fully customized naming, in just 2 steps. For research and development purpose.
GNU Lesser General Public License v3.0
3
stars
3
forks
source link
fix(evm): adjustment logic of how sender nonce increased #153
KEEP: Nonce still increased by AnteHandle, so if tx fails, the sender nonce still be increased anyway.
ADDED: After nonce increased by AnteHandle, a transient flag will bet set to indicate the sender nonce was increased by AnteHandle
ADDED: When msg_server handles the message execution, it will check the flag, if the flag indicate the sender nonce was increased by AnteHandle, it subtract the nonce by 1 and reset the flag
CHANGED: nonce increment now follow geth
The flag is needed because the msg_server.EthereumTx method will be used for testing purpose and if sender nonce was not increased but it decreased, it no longer correct.
Closes: #152
Adjustment:
msg_server
handles the message execution, it will check the flag, if the flag indicate the sender nonce was increased by AnteHandle, it subtract the nonce by 1 and reset the flagThe flag is needed because the
msg_server.EthereumTx
method will be used for testing purpose and if sender nonce was not increased but it decreased, it no longer correct.