-
Notifications
You must be signed in to change notification settings - Fork 100
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
panic: runtime error: index out of range [0] with length 0 #234
Comments
Thanks for the report. Looks like |
Is each tarod connected to a separate lnd here? |
Yeah that was my understanding as well. Looking at the logs, it looks like we did get the error ( |
The section in question: https://github.com/lightninglabs/taro/blob/main/tarodb/assets_store.go#L1571-L1579 First step would be a simple test to see what it returns if there's no output at all. There's an assumption here that for a given conf event, we already have an asset transfer entry on disk. Possible that's violated if something else fails upstream. |
Based on the sqlc and sql package docs, I think @guggero is right, that error will only be passed for queries tagged with |
@jharveyb good eye! |
It's an issue that needs to be fixed. Did you create your assets with the |
Hi @guggero I have used --enable_emission=false . I tried deleting the .taro directory but the error keeps reoccurring after a certain number of mintings / transactions . I will try again without selecting the flag Also thanks a lot for developing this. Sadly I am not a Go coder. I will try to be as helpful as I can. |
Yeah, the guide on that part was wrong, the |
hmm... I keep getting the issue even when sending taro to myself repeatedly. Removing the |
To confirm, is this one It looks like this is on testnet - are you waiting for a new block before trying the send, or doing it immediately after the minting? If you are not waiting for a new block, could you try that and see if the issue still appears? |
@jharveyb yes I confirm I am running only 1 tarod. I am testing one idea I have. Minting currencies, creating invoices and paying them myself. After I do this a few times this error occurs. I am not using |
Let me try waiting for a new block between minting and sending |
I was running tarod for a long time - about 1 day creating about 3 transactions and minting a currency.
I randomly got this error when trying to pay a taro invoice.
when I try to restart tarod I get the error:
I can se the following proofs:
The text was updated successfully, but these errors were encountered: