Closed NodeGuy closed 8 years ago
Why does the example increment this.txCount in checkTx? Isn't that mutating the state, which is contrary to the purpose of checkTx?
this.txCount
checkTx
https://github.com/tendermint/js-tmsp/blob/master/example/app.js#L59
I believe you're correct. Really, though, it should maintain an intermediate state for tracking validity of chains of transactions before they end up in a block.
Why does the example increment
this.txCount
incheckTx
? Isn't that mutating the state, which is contrary to the purpose ofcheckTx
?https://github.com/tendermint/js-tmsp/blob/master/example/app.js#L59