err="Trying to commit a discarded txn" #2125
Replies: 2 comments
-
Hi @arivarasanka Is this still an issue? This error is happening because the call to Commit, on the application, is returning an error. |
Beta Was this translation helpful? Give feedback.
-
Hi @lasarojc , Thank you for the reply. It was a silly mistake from my side. In my earlier implementation, I committed the block elsewhere in the code and in cometBFT, there is a default commit option in the return statement of Commit function. And instead of nil, I had it as "app.onGoingBlock.Commit()" which means there are two commits for the same block which caused the error. I was busy with work, so I forgot to close the this thread. Thank you again for your reply. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I had a blockchain Application implemented in Tendermint. For official reasons, I had to change it to cometBFT. But when I try to implement the cometBFT version, I am getting the following error.
One of my observations is that, after this error, the CheckTx function is called, but not the FinalizeBlock function. So, no blocks are formed after this error but transactions are received and checked. I can not understand what is happening here. Let me know for more details.
Beta Was this translation helpful? Give feedback.
All reactions