Jahvinci / MotaCoin

The official source code for MotaCoin
https://MotaCoin.net
MIT License
10 stars 8 forks source link

mempool accepts doublespending txs #1

Closed tpfuemp closed 3 years ago

tpfuemp commented 3 years ago

tx checks in mempool accept are incomplete resulting in tx's trying to spend the same inputs twice.

these txs are included in blocktemplate leading to invalid blockdata mota-blocktemplate.txt

using such template for mining fails always with error like this:

ERROR: FetchInputs() : 7ec8dfd7c9 prev tx 5fb7442799 index entry not found
ERROR: AcceptBlock(): Block 704726 contains at least two transactions that uses
the same coin.
IamLupo commented 3 years ago

We discussed this case in a team meeting and I pushed a update to fix this case. Take some time before its will be tested and release.