CheckTx in example mutates the state?
NodeGuy opened this issue · 1 comments
NodeGuy commented
Why does the example increment this.txCount
in checkTx
? Isn't that mutating the state, which is contrary to the purpose of checkTx
?
https://github.com/tendermint/js-tmsp/blob/master/example/app.js#L59
ebuchman commented
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.