-
Notifications
You must be signed in to change notification settings - Fork 121
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]: Troubleshoot discrepancy between command results: asset balance
and assets list
#665
Comments
asset balance
and assets list
asset balance
and assets list
Thank you Hannah for the logs. Unfortunately they aren't very useful for this issue. The syncer log messages are so numerous I think they've squeezed out any potentially interesting messages. |
plan
|
Those can be turned to info with |
Okay I set debuglevel=off in my config file, let it run for a min, then restarted via systemd and let it run a bit more, and here the logs. Github thinks the the db file is too big to post here. Can send separately if that's helpful. |
Yup, 0.3.1-alpha. |
New log file after setting debuglevel=info |
The last bit of the latest log is interesting. The custodian spins up and immediately thinks it's receiving and asset.
|
I think this bug is possible in part because of a defective
However, I think we should change this
For a |
In addition to the above proposed change. We should also make the |
And the last improvement I think we should make in fixing this bug is to ensure that the
|
This looks equivalent to the path for that proof in a universe tree, which seems like the right direction. Wondering if it's correct for grouped assets though (I think so?) |
@jharveyb Well the |
Before we get to this phase, why is it being inserted twice in the first place? Shouldn't it detect that the recv is already complete? Or is the design that we assume the operation is idempotent so this behavior is fine? |
I think we did this the first time to enable script key re-use? Otherwise, we can also add a chain level identifier here. So if we add a |
Script key re-use for addr re-use would still be different anchor outpoints, so that should be fine? IIUC adding the anchor outpoint makes this key globally unique (a specific transfer of this specific leaf) vs. just unique in the tree. |
|
Part of this should also be enforcing address uniqueness within a transfer request, to prevent collisions. |
@Roasbeef Yes. My idea with proposing |
@HannahMR reported the following:
Just to summaries the issue I think you've encountered: the reported balance for an asset is different between these two commands:
tapcli asset balance
andtapcli assets list
. And also the result returned bytapcli asset balance
changes over time after receiving an asset.I've got a copy of Bob's
tapd.db
. I will inspect.The text was updated successfully, but these errors were encountered: