-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
rpcclient: Add addressType to GenNewAddress #1567
base: master
Are you sure you want to change the base?
Conversation
marsu-dev
commented
Apr 24, 2020
- allow to create bech32 addresses
- allow to create bech32 addresses
42b1352
to
5dc523e
Compare
Looks like this needs a rebase. |
Sure, I have base my production code on tagged version of |
I think is a nice change (note that I don't have merge permissions). One suggestion: add a |
@michel-foucault For the |
@michel-foucault Any update on this? |
Hi, we used direct rpc call for our need. |
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.
It would be great to have your changes in since they're mostly ready.
Summary of things to do for your reference:
- Rebase and fix conflicts.
- Use a special type for
AddressType
field, as suggested in a previous review. - Add a test for the case when account is unspecified, but address type is provided.
return btcjson.NewCmd("getnewaddress", "acct", "bech32") | ||
}, | ||
staticCmd: func() interface{} { | ||
return btcjson.NewGetNewAddressCmd(btcjson.String("acct"), btcjson.String("bech32")) |
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.
Can you please add another test for the case when the label is nil
and the address type is specified?
btcjson.NewGetNewAddressCmd(nil, btcjson.String("bech32"))
I'd love to get this one in. Just needs those couple changes in the little checklist from @onyb |