lightchain icon indicating copy to clipboard operation
lightchain copied to clipboard

Run CheckTX before tx is added into the txPool

Open ggarri opened this issue 6 years ago • 0 comments

Txs are sent via Ethereum API, if tx passes successfully the tx_pool.validateTx() it is added into the txPool and broadcasted to the local Tendermint node.

Once the local Tendermint node is notified about a new tx this runs abci.checkTx() over the same tx again, doing a double check before broadcasting the tx to other peers in the network. If the tx does not pass the abci.checkTx(), this tx will never be inserted into ethereum stateDB and it will cause an inconsistency in between stateDB and poolTx.

ggarri avatar Jul 01 '19 09:07 ggarri