z_getbalances 0 #135

Open
opened 2 years ago by duke · 2 comments
duke commented 2 years ago
Owner

There is a small bug in z_getbalances where we want it to return addresses that have zero balance. It does not return values for addresses that have never had a transaction or those which currently have no unspent notes.

# this node has 9 zaddrs with no tx history
$ ./src/hush-cli z_getbalances 0
[
]

We should see all 9 zaddrs in the above output, with 0 balance.

There is a small bug in z_getbalances where we want it to return addresses that have zero balance. It does not return values for addresses that have never had a transaction or those which currently have no unspent notes. ``` # this node has 9 zaddrs with no tx history $ ./src/hush-cli z_getbalances 0 [ ] ``` We should see all 9 zaddrs in the above output, with 0 balance.
Poster
Owner

This RPC works correctly if an address receives an amount=0 ztx, it then shows up in the list of balances.

This RPC works correctly if an address receives an amount=0 ztx, it then shows up in the list of balances.
Poster
Owner

To fix this bug, if we get "0" as a first argument to this RPC, we should add all known zaddrs to the list of outputs.

To fix this bug, if we get "0" as a first argument to this RPC, we should add all known zaddrs to the list of outputs.
duke added the
bug
label 1 year ago
duke added the
beginners
label 11 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.