Just lately I had an error, which I may by no means reproduce once more. I do not need this error to happen in manufacturing, however I do not know methods to repair this both or what may even be the rationale for it.
First, here’s what I did, in brief:
- My backend generated a brand new handle.
- I despatched some funds to the handle.
- Backend waited, till the funds seem within the handle (by polling mempool.house API).
- Backend took the array of UTXOs of this handle, 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.house.
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 not possible {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 would spend a UTXO.
Any concepts concerning what may occur there?
Just lately I had an error, which I may by no means reproduce once more. I do not need this error to happen in manufacturing, however I do not know methods to repair this both or what may even be the rationale for it.
First, here’s what I did, in brief:
- My backend generated a brand new handle.
- I despatched some funds to the handle.
- Backend waited, till the funds seem within the handle (by polling mempool.house API).
- Backend took the array of UTXOs of this handle, 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.house.
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 not possible {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 would spend a UTXO.
Any concepts concerning what may occur there?