-
Notifications
You must be signed in to change notification settings - Fork 123
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]: Proof file not transmitted upon confirmation for asset transfer #597
Comments
Took a quick look at this. The proof was uploaded to the universe by the sender node. Is it possible the address was not created on the receiver node but the sender node by accident? Or another node? Because in the receiver log, I don't see the following log lines (example from when I tried the same locally):
So the receiver node doesn't know it has to watch the chain for a transfer and therefore also didn't detect it and query for the proof. |
May have been fixed between rc2 and rc3? |
Unlikely, commit b489d04 was more or less rc3. |
I mean as part of #594 |
Allow me to attach the full receiver logs, which include the log line that the address was created:
|
Unable to reproduce, here's my node on testnet receiving a newly created asset:
|
@snow884 IIUC, this can happen due to a timing issue between the sender and receiver. By next week we should have a fix up, if not by the end of this week. IIUC, restarting the receiver should be a short term fix. We're looking into other temporary mitigation solutions. |
@snow884 you can run your recipient daemon with |
@guggero thank you very much. Your fix worked. That mean though that all invoices submitted to the done have to be generated with proofcourieraddr=hashmail://mailbox.terminal.lightning.today:443 correct ? |
Yes, that's correct. If you're using gRPC or REST to generate the address, you can also use the |
I have an asset stuck in "transmitted" list (tapcli assets t). Restarting sender or receiver node does not help. Any way to nudge it? |
First step I'd try is pulling from the latest master, as there are some important bug fixes in there that seemed to have worked for me |
I built yesterday from source, nothing was changed |
@Impa10r have you been able to try v0.3.1 rc1 yet? |
Just tried. Nothing changed. The asset is still in 'transfers' list on node 1, not moving to node 2. I synced both nodes to the same universe testnet.universe.lightning.finance. Not sure how we are supposed to nudge it in such a situation. This is the tx on blockchain. |
@Impa10r have you updated to the final 0.3.1 release, are things unstuck after that? |
Hi, thanks, no, the same (((
|
@Impa10r what version of |
v0.3.0-alpha
|
Hmm, okay, that looks good so far. |
Thanks for the logs. Are you sure that's the complete log for
|
Can you try with |
I ran with debug before, now with trace. What is the deepest level? The asset still does not move ) |
Okay, can you try with |
No change. Asset is still stuck in transfer. |
Hmm, okay. Thanks for trying. I'll dig deeper into the log file then. |
Finally got to taking a closer look. So the proof was successfully uploaded to the universe by the sender. And I figured out why the receiver isn't trying to pull it anymore. I'll create a fix momentarily. |
We didn't re-try using a proof courier to receive an asset after a restart of the daemon. This commit fixes #597.
We didn't re-try using a proof courier to receive an asset after a restart of the daemon. This commit fixes #597.
We didn't re-try using a proof courier to receive an asset after a restart of the daemon. This commit fixes #597.
We didn't re-try using a proof courier to receive an asset after a restart of the daemon. This commit fixes #597.
We didn't re-try using a proof courier to receive an asset after a restart of the daemon. This commit fixes #597.
We didn't re-try using a proof courier to receive an asset after a restart of the daemon. This commit fixes #597.
We didn't re-try using a proof courier to receive an asset after a restart of the daemon. This commit fixes #597.
We didn't re-try using a proof courier to receive an asset after a restart of the daemon. This commit fixes #597.
We didn't re-try using a proof courier to receive an asset after a restart of the daemon. This commit fixes lightninglabs#597.
Sorry I lost interest in TA testing and the issue was closed unresolved for me. Out of curiosity, I just upgraded lnd to 0.17.99-beta and tapd to 0.3.2-alpha. Nothing changed, the assets are still stuck in I also have several 1000 sats utxos in lnd wallet that cannot be spent: input 0 not found in list of non-locked UTXO Rescanning the wallet did not help. I don't see these utxos among the anchors of the stuck assets, but they were created around the time I was testing the TA, so I think these are related. I further discovered that lnrpc/walletrpc/PublishTransaction endpoint locks uxos in such a way, that they don't show up in lncli wallet listleases and cannot be unlocked with lncli wallet releaseoutput. I think this is what happened to my unspendable utxos. |
The issue was closed because we merged a PR that should prevent this situation in the future. Can you please update
Yes, those are UTXOs that carry assets. They can't be spent by |
Ok, understood. These are 4 UTXOs on testnet, so no problem if it will not repeat in the future. |
tapcli version 0.3.2-alpha commit=v0.3.2-464-gc8978aaa did nothing. both sender and receiver logs are like attached above, no new insights... |
Did you try v0.3.3? That's the latest release and also includes some of the fixes mentioned. |
|
Tried v0.3.3:
Cannot find instructions how to migrate database? |
I was replying to @jharveyb, sorry for the confusion. You're already running the latest |
Background
I minted a normal (
--emission_enabled
) asset on the SENDER node. I synced RECEIVER node to the universe, created an address and sent funds from the SENDER node. Upon confirmation, both nodes sync to the universe, but proof files do not seem to get transmitted, and the RECEIVER does not show the assets intapcli assets list
ortapcli assets balance
Your environment
Steps to reproduce
tapcli assets mint --type normal --name leocoin --supply 21000 --enable_emission
)tapcli2 addrs new --asset_id f2bdc9a75c4269eefc06bfb3762bb47964614aa612800cabe16eee4ca63a3c13 --amt 21
)tapcli assets send --addr taptb1qqqsqqspqqzzpu4aexn4csnfam7qd0anwc4mg7tyv992vy5qpj47zmhwfjnr50qnq5ssx424cy357lfll77gdmx3r2um33phj7d6yx76rv5w5admfknujvenqcssy5czsf4akh3y6yhsn6mp3t5rpt7tfrat9znegl9q52z52ldfnv28pqss9qaejy86wuuaf203n0c6nnvnhxeqmh0uxa6qanmnfr2twjsaeel4pgq32rpkw4hxjan9wfek2unsvvaz7tm5v4ehgmn9wsh82mnfwejhyum99ekxjemgw3hxjmn89enxjmnpde3k2w33xqcrywgedu59a
Expected behavior
Once the transaction is confirmed I expect the sender to transmit their proofs to the recipient, who then knows about the assets.
Actual behavior
No sync of proofs appear to happen.
Logs of both sender and receiver:
sender_logs.txt
receiver_logs.txt
The text was updated successfully, but these errors were encountered: