-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add detailed balance info to WalletBalance RPC #421
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
Conversation
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.
I'm doing a first pass review of this to help out with the review backlog. This PR looks mostly good to me, with a few nits.
rpcserver.go
Outdated
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.
nit: make TotalBal
=> totalBal
because this is an intermediate variable.
rpcserver.go
Outdated
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.
nit: make ConfirmedBal
=> confirmedBal
because this is an intermediate variable.
rpcserver.go
Outdated
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.
I think this TODO needs to be added back - it is not implemented or in scope for this PR.
Two other things: you will need to rebase your branch with master to resolve, and also reformat commit messages, as mentioned in the style guide - All commits should begin with the subsystem or package primarily affected by the change - in this case you could split up your commits into |
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.
Thanks for the PR!
Tested locally and works as advertised. I just have some minor nits w.r.t to the coding style prescribed within the repo. Once those nits are addressed, I'll get this merged!
rpcserver.go
Outdated
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.
Nit: missing a period here, and the comments below.
All comments should be full sentences.
rpcserver.go
Outdated
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.
Initial line should be modified to read something like:
WalletBalance returns total unspent outputs (confirmed and unconfirmed), all
@Roasbeef : Addressed the nits, sorry about those. |
Hey @nalinbhardwaj, can you rebase this? A recent PR went in that also modified the protos. You'll just need to rebuild them. |
@Roasbeef done. Not sure why there’s a commit you made “with me” though? I don’t see a way to remove that offline, let me know if that’s a problem. |
@nalinbhardwaj you'll need to remove that last commit. When rebasing you should ensure that your master branch is up to date with the remote origin branch. |
Done now @Roasbeef sorry about the weird error, not sure why I got that into commit history in first attempt. It's clean now. |
Is your PGP key available on any public key server? |
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 🎉
Replaces current
balance
field by 3 fields,TotalBalance
,ConfirmedBalance
andUnconfirmedBalance
to store the respective balance information.Closes #415.