-
Notifications
You must be signed in to change notification settings - Fork 586
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
BIP 49/84 segwit receive addresses cannot be used when btcwallet
is ran as a daemon
#762
Comments
Oh, ok. Why only legacy addresses are being generated then? |
You probably need to specify the key scope to use: https://github.com/btcsuite/btcwallet/blob/master/waddrmgr/scoped_manager.go#L154 |
How to do that? (I'm running the daemon via CLI, not calling it from the code FYI) |
I'm not very familiar with the CLI. What command are you using exactly? |
|
{
"jsonrpc": "1.0",
"result": "n12UeNcL4ruCiHbmgEgieAwXVbFNZrobQh",
"error": null,
"id": 1
}
|
Yes, you're right. It looks like the functionality to generate SegWit addresses was only added to the internal DB but never exposed to the RPC interface. |
Oh, okay. Thank you. Also I had no idea that I can use |
btcwallet
is ran as a daemon
No description provided.
The text was updated successfully, but these errors were encountered: