Can faucet() accidentally create more than one utxo?
landabaso opened this issue · 0 comments
One every 20 times I get random errors in my integration tests using regtest-client.
I create some utxos and then I retrieve them from the blockchain and verify they were created before proceeding with more complex tests.
In fact, I do something like what you do here (except I sum all the funds that can be spent by that address and compare to the funds theoretically sent there):
Line 41 in d4cd262
But from time to time I end up having 2 utxos that can be spent with the same address. It's kind of random.
Coincidentally, I have also randomly seen this warning/error on my logs:
Line 124 in d4cd262
I cannot conclude these are related because these random errors are very rare.
Also, I'm not 100% sure about what these "retrials" mean.
Can it be the case that faucet()
may produce a new utxo because it did not detect the previous one as done?