-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add field UnconfirmedTransfers
to RPC endpoint ListAssets
#969
Conversation
UnconfirmedTransfersCount
to RPC endpoint ListAssets
UnconfirmedTransfers
to RPC endpoint ListAssets
5e9c769
to
dd99d6f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, should help a lot with the user experience.
Just need to make sure we only count actually unconfirmed transfers, not all of them.
Added a new field to the `ListAssets` RPC endpoint response. This field helps users interpret asset list responses, especially when asset coins are unconfirmed.
This commit updates an existing test to verify the new `UnconfirmedTransfers` field in the `ListAssets` RPC endpoint response.
Add clarification that this endpoint returns both confirmed and unconfirmed transfers.
dd99d6f
to
eeb8a5b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, LGTM 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to @guggero 's comment earlier (#969 (comment)) I think that the Go Doc comment of QueryParcels
is incorrect.
taproot-assets/tapdb/assets_store.go
Line 3020 in eeb8a5b
// QueryParcels returns the set of confirmed or unconfirmed parcels. |
It should probably read something like this:
// QueryParcels returns the set of confirmed and unconfirmed parcels or exclusively the unconfirmed parcels.
Yes. But I think I'm using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🎉
Added a new field
UnconfirmedTransfers
to theListAssets
RPC endpoint response. The field is a count of unconfirmed transfers. This field helps users interpret asset list responses, especially when asset coins are unconfirmed.This change will hopeful help users understand this sort of situation: #964