-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Reusing TAP Address in Send Asset #775
Comments
I was able to reproduce this issue. This actually appears to be a bug in Here are the relevant logs when sending to the same address twice.
You'll see that there is a delay in delivering a proof. If I immediately try to resend to the same address, it returns the error and kills the node.
I'll reach out to the |
We encountered an issue on the main branch recently where the second send event was delayed because it was subject to the continuation of the first send event's backoff procedure. It should have been fixed in this commit (and PR): lightninglabs/taproot-assets@bbd15e6 |
Thanks for the update @ffranr. I have tested this with Now when I try to send to the same address back to back, I get this error message the second time.
Is this the intended behavior to wait the 10mins for confirmations even on regtest where blocks can be mined faster than that? |
Tapd locks coins for a certain duration (defaults to 10mins before broadcast). As far as I can tell, tapd does not currently vary the locking time based on the network. This behaviour was intended for mainnet, I'm not sure if we had regtest in mind. I don't see why we couldn't support configuring the default coin lock time. Is that a feature that would be helpful to you? |
+1 on supporting a user-specified coin lock-time, or coin lock time in blocks. Having a working regtest setup is a huge plus for local development and automated integration tests, and it's not reasonable to wait for 10 minutes. |
We're pretty sure that we've solved this bug. See here: lightninglabs/taproot-assets#508 (comment) And related PR: lightninglabs/taproot-assets#529 Please let me know if this solves the issue that you guys saw. |
Thanks @ffranr for the update. I have tested the latest I am going to close this issue now since no changes need to be made here. The bug will be fixed in Polar when the next |
Describe the bug
Reusing a TAP Address when trying to "Send Asset" between tapd nodes has several failures. The first time reusing it, a popup shows up that it succeeds. The balances on the tapd nodes does not reflect that it was actually send a second time. The second time reusing it the proper error message shows up. The third time reusing the address, the sending docker image disconnects and goes into a perpetual restart state.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
"2 UNKNOWN: transaction rejected: output already spent" pop up. This does not happen the first time a TAP Address is reused.
Desktop (please complete the following information):
Additional context
Was able to reproduce behavior multiple times.
The text was updated successfully, but these errors were encountered: