You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Duplicated transactions in Tenderdash chain (MAINNET / TESTNET) #2867
Platform Explorer uses unique index on transactions SQL table and removing that index will require significant code refactor and will make all the queries way slower
Well, that's all, This ISSUE finally came to the MAINNET network.
6 months has passed without any response from the dev team since I raised that issue. The issue is clear, neither Drive or Tenderdash chains does even have any checks on duplicated transactions, and Tenderdash may accept invalid transactions, however it will come with failed status. Although it seems logically correct it is extremely high indicator that this is a problem in the code, every state transition should be unique, it looks like there is a bug in nonce system, that allows Tenderdash to accept duplicated transactions in the chain, it should have been dropped at the broadcastStateTransition DAPI query!!!
There was plenty of time to investigate and fix this issue, and prevent it from entering the mainnet, however this issue didn't even get any reply (UPD, there is actually was a reply, thanks @lklimek) , now this has to go into documentation, and the possibility of duplicated transactions in the Tenderdash network must be mentioned.
This issue has been PREMATURELY found by Platform Explorer backend but instead of working on the fix I WAS TOLD TO SIMPLY SKIP SUCH TRANSACTIONS, and therefore it made impossible to quickly identify the problem and sugges a fix!!!
I was super frustrated with this and has been resisting skipping them for several weeks in Nov 25 until it became clear that nobody going to work on that. NOW MAINNET CHAIN is spoiled with non-unique transactions.
It should have been investigated and fixed already, but now its over.
FALSE! The last issue that happened today on mainnet IS THE SAME with what I have already reported on the Feb 5, which involves a bug with Document Replaces. That two TXs are the document replace transitions.
On that day, v3.0 wasn't even officially released yet, the release date for v3.0 is Feb 6, and it needs about two weeks until all masternodes update the software. You can check it yourself. I personally messaged you and Lukasz in Slack on that day.
Cross-block tx-hash uniqueness is not a Tendermint/Tenderdash invariant. Tendermint's mempool has a short-lived tx-cache that dedupes recent submissions, but nothing in consensus enforces "tx hash X can only appear in one block ever." Hash uniqueness was always an emergent property: when nonces and signatures are functioning correctly, no two valid txs hash the same, and the same exact bytes can't pass CheckTx twice (because the second attempt's nonce would be stale).
The platform-explorer schema (UNIQUE(hash) on state_transitions) baked in an assumption that's stronger than what the chain actually guarantees.
Yes, and why Tenderdash consensus does not have that check in the first place? "Tenderdash does not provide tx hash uniqueness across chain". I'm translating. A blockchain system that doesn't have a reliable reference to your transaction. OMG can you just hear it yourself?
If there are no guarantees on TXID uniqueness of your transaction, how can you even EXPLAIN THAT TO USER? If you do a transaction, you must have a verifiable PROOF that you made a transaction and it must be publically available.
I'm not even taking into account that evolution now have addresses support where having multiple results for the same txid is just looking ridiculous.
Also, the provided fix is created towards v3.1, and the URGENCY of situation UNDERESTIMATED. Nobody knows when 3.1 will be finally released, and likely not even next month, and I can't keep skipping transaction on unfixed network, that means if someone finds a way to reproduce it, EACH TIME A SOMEONE CRAFT THAT TRANSACTION INDEXER WILL GET STALLED AGAIN.
I can't skip ALL duplicated failed transactions by default as well - this is a HUGE risk, as it will become impossible to detect ANY OF SUCH such problems in a future.
Activity
pshenmic commentedon Nov 26, 2025
There is another conflicting duplicated tx in the same 216245 block
9BE24F6636E70D288C82A37C6B6FF9622E8F3F7C2B6DCCB44D005305FEBEADADtx is also duplicated in the same blockpshenmic commentedon Feb 5, 2026
New duplicated transaction appeared on chain testnet
TxHash:
90ACB14D5E1D8807C96979E2F331F9EFBFCEF33133FD71C0841211D65BAFDB6Ehttps://testnet.platform-explorer.com/transaction/90ACB14D5E1D8807C96979E2F331F9EFBFCEF33133FD71C0841211D65BAFDB6E
Reappeared under the same TX at block
261921lklimek commentedon Feb 10, 2026
Problematic tx 90acb14d5e1d8807c96979e2f331f9efbfcef33133fd71c0841211d65bafdb6e passes check_tx, drive log:
pshenmic commentedon May 4, 2026
Well, that's all, This ISSUE finally came to the MAINNET network.
6 months has passed without any response from the dev team since I raised that issue. The issue is clear, neither Drive or Tenderdash chains does even have any checks on duplicated transactions, and Tenderdash may accept invalid transactions, however it will come with failed status. Although it seems logically correct it is extremely high indicator that this is a problem in the code, every state transition should be unique, it looks like there is a bug in nonce system, that allows Tenderdash to accept duplicated transactions in the chain, it should have been dropped at the broadcastStateTransition DAPI query!!!
There was plenty of time to investigate and fix this issue, and prevent it from entering the mainnet, however this issue didn't even get any reply (UPD, there is actually was a reply, thanks @lklimek) , now this has to go into documentation, and the possibility of duplicated transactions in the Tenderdash network must be mentioned.
35C08D574302D32D7160E603D8159042C8606BE12FD97D952CF5FD40DB57313C
https://platform-explorer.com/transaction/35C08D574302D32D7160E603D8159042C8606BE12FD97D952CF5FD40DB57313C


[-]Duplicated txid in the testnet chain[/-][+]Duplicated transactions in Tenderdash chain (MAINNET / TESTNET)[/+]pshenmic commentedon May 4, 2026
This issue has been PREMATURELY found by Platform Explorer backend but instead of working on the fix I WAS TOLD TO SIMPLY SKIP SUCH TRANSACTIONS, and therefore it made impossible to quickly identify the problem and sugges a fix!!!
I was super frustrated with this and has been resisting skipping them for several weeks in Nov 25 until it became clear that nobody going to work on that. NOW MAINNET CHAIN is spoiled with non-unique transactions.
It should have been investigated and fixed already, but now its over.
QuantumExplorer commentedon May 4, 2026
I'm pretty sure the issue was fixed in 3.0, which means this is a new issue @pshenmic.
pshenmic commentedon May 4, 2026
FALSE! The last issue that happened today on mainnet IS THE SAME with what I have already reported on the Feb 5, which involves a bug with Document Replaces. That two TXs are the document replace transitions.
On that day, v3.0 wasn't even officially released yet, the release date for v3.0 is Feb 6, and it needs about two weeks until all masternodes update the software. You can check it yourself. I personally messaged you and Lukasz in Slack on that day.
There was enough time to investigate and fix it!!
shumkov commentedon May 7, 2026
@pshenmic here is two problems:
The platform-explorer schema (UNIQUE(hash) on state_transitions) baked in an assumption that's stronger than what the chain actually guarantees.
chore: deprecate _or_empty_vec aggregators, simplify None construction
fix(drive-abci): bump nonce of failed transitions in best-effort batches
refactor(dpp,drive-abci): version flatten/merge_many instead of the b…
pshenmic commentedon May 7, 2026
Yes, and why Tenderdash consensus does not have that check in the first place? "Tenderdash does not provide tx hash uniqueness across chain". I'm translating. A blockchain system that doesn't have a reliable reference to your transaction. OMG can you just hear it yourself?
If there are no guarantees on TXID uniqueness of your transaction, how can you even EXPLAIN THAT TO USER? If you do a transaction, you must have a verifiable PROOF that you made a transaction and it must be publically available.
I'm not even taking into account that evolution now have addresses support where having multiple results for the same txid is just looking ridiculous.
Also, the provided fix is created towards v3.1, and the URGENCY of situation UNDERESTIMATED. Nobody knows when 3.1 will be finally released, and likely not even next month, and I can't keep skipping transaction on unfixed network, that means if someone finds a way to reproduce it, EACH TIME A SOMEONE CRAFT THAT TRANSACTION INDEXER WILL GET STALLED AGAIN.
I can't skip ALL duplicated failed transactions by default as well - this is a HUGE risk, as it will become impossible to detect ANY OF SUCH such problems in a future.
This fix should go to v3.0!!!
refactor(drive-abci): tighten bump-emission framing in batch transfor…
style(drive-abci): cargo fmt for #2867 bump-emission cleanup
test(drive-abci): expect UnpaidConsensusError for single-tx purchase …
docs(platform-version): drop stale PR #3608 reference from max_transi…
test(drive-abci): pin tokens-always-pay invariant for batch transform…
pshenmic commentedon Jun 2, 2026
Transaction 6963A9535DBD3D47229BBE419DFC2E3011DC786D958F72A4B7BEEE3F24FBE097 has been duplicated on the mainnet network (in block 373638)