Not too long ago I had an error, which I might by no means reproduce once more. I do not need this error to happen in manufacturing, however I do not know how you can repair this both or what might even be the rationale for it.
First, here’s what I did, in brief:
- My backend generated a brand new tackle.
- I despatched some funds to the tackle.
- Backend waited, till the funds seem within the tackle (by polling mempool.area API).
- Backend took the array of UTXOs of this tackle, iterated by means of this array solely as soon as, including UTXOs to transaction inputs, till the mandatory sending quantity is roofed.
- Backend submitted TX Hex of this transaction to mempool.area.
This resulted within the “code”: -26, “bad-txns-inputs-duplicate” error.
Google says it happens, when a UTXO is spent a number of instances in a single transaction. I reviewed the code totally, it’s inconceivable {that a} UTXO was added into tx inputs a number of instances.
Additionally, it was the primary transaction of the pockets, so there was no earlier transaction, that might spend a UTXO.
Any concepts relating to what might occur there?
Not too long ago I had an error, which I might by no means reproduce once more. I do not need this error to happen in manufacturing, however I do not know how you can repair this both or what might even be the rationale for it.
First, here’s what I did, in brief:
- My backend generated a brand new tackle.
- I despatched some funds to the tackle.
- Backend waited, till the funds seem within the tackle (by polling mempool.area API).
- Backend took the array of UTXOs of this tackle, iterated by means of this array solely as soon as, including UTXOs to transaction inputs, till the mandatory sending quantity is roofed.
- Backend submitted TX Hex of this transaction to mempool.area.
This resulted within the “code”: -26, “bad-txns-inputs-duplicate” error.
Google says it happens, when a UTXO is spent a number of instances in a single transaction. I reviewed the code totally, it’s inconceivable {that a} UTXO was added into tx inputs a number of instances.
Additionally, it was the primary transaction of the pockets, so there was no earlier transaction, that might spend a UTXO.
Any concepts relating to what might occur there?