-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add destination addresses to listchaintxns RPC #426
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
8a5873c
to
b3cbe2f
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.
Thanks for the PR!
The diffs look pretty good for the most part, I especially like the decomposition of the the commits themselves. None of my comments are particularly major, so it shouldn't take long for us to get this in.
lnrpc/rpc.proto
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.
Naming suggestion to keep things short: dest_addrs
.
lnwallet/btcwallet/btcwallet.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.
The version isn't necessarily 1 (new updates use version 2 to take advantage of CSV ,etc) . Instead, you can just initialize an empty transaction like so:
wireTx := &wire.MsgTx{}
lnwallet/btcwallet/btcwallet.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.
Similar comment here w.r.t to just creating an empty transaction (though I realize now that my original code made this mistake as well).
lnwallet/interface_test.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.
This could use a comment explaining that the mapping is from: blockHash -> transactionHash -> transactionOutputs.
lnwallet/interface_test.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.
We typically try on a best-effort basis to wrap to 80 characters. This diff has a few offenders.
lnwallet/interface_test.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.
Rather than manually comparing, you can just do reflect.DeepEqual
.
24730df
to
a2002da
Compare
@Roasbeef: updated with your feedback. |
Can you rebase this, and regenerate the proto files? Thanks, they're currently conflicting as a PR went in recently which also modified the proto files. |
@Roasbeef: updated. |
Rebased again. |
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 🐳
This fulfills: #416
I've broken this down into three commits:
rpcserver.go
was updated to include the destination addresses in theTransactionDetails
response.