Skip to content
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

negative balance when syncing wallet #176

Closed
nicbus opened this issue Apr 22, 2024 · 5 comments
Closed

negative balance when syncing wallet #176

nicbus opened this issue Apr 22, 2024 · 5 comments
Assignees
Labels
bug Something isn't working question Further information is requested
Milestone

Comments

@nicbus
Copy link
Contributor

nicbus commented Apr 22, 2024

Using commit ac43eb2 plus a cargo update to include the latest fixes, I sometimes run into an issue.

This is what I'm doing:

  • issue a NIA asset on wallet 1
  • send some NIA assets from wallet 1 to wallet 2
  • send some more NIA assets from wallet 1 to wallet 2
  • send some NIA assets from wallet 2 to wallet 1

All operations are carried out using opret1st closing method, all invoices are blinded.

During the last transfer, wallet 2 fails to sync with:

Loading descriptor from wallet wallet_2 ... success
Syncing keychain 0 .......... keychain 1 .......... keychain 9 .............thread 'main' panicked at ~/.cargo/git/checkouts/bp-wallet-997f3c057e1b59f2/e05f6c7/src/data.rs:410:55:
negative balance: TryFromIntError(())

Here is the whole data dir for wallet 2, including consignments for previous transfers:
wallet2_data.tar.gz

@dr-orlovsky
Copy link
Member

This is entire mystery for me why this happens. I will wait on the confirmation that the issue is still in the released beta 6 and will pay more attention in fixing it. I believe it is a pure command-line tool issue unrelated to a more deep levels

@dr-orlovsky dr-orlovsky added bug Something isn't working question Further information is requested labels Jul 11, 2024
@dr-orlovsky
Copy link
Member

Can we verify that the issue is still there with the most recent master branches?

@dr-orlovsky dr-orlovsky moved this from Backlog to In progress in RGB release v0.11 Jul 11, 2024
@ghost
Copy link

ghost commented Jul 11, 2024

Can we verify that the issue is still there with the most recent master branches?

i have testet it, it fixed by BP-WG/bp-wallet#35

@dr-orlovsky
Copy link
Member

@nicbus can you pls confirm that the bug is fixed

@nicbus
Copy link
Contributor Author

nicbus commented Jul 17, 2024

I have tried to reproduce the issue with the latest code and I haven't been able to.

I am not 100% confident that this has been fixed, since the issue was not presenting itself every time even when I reported it, but I think we can close this. I'll open a new issue in case I stumble upon it again.

@nicbus nicbus closed this as completed Jul 17, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in RGB release v0.11 Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

2 participants