Skip to content
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

Field keypoololdest returned from getwalletinfo should not be required #108

Open
craigraw opened this issue Dec 12, 2022 · 0 comments
Open

Comments

@craigraw
Copy link

As per https://github.com/bitcoin/bitcoin/blob/e334f7a54592ba9f05e4a5578dd933a7a31c3444/src/wallet/rpc/wallet.cpp#L91 the field keypoololdest is optional and not returned if no keys have been imported into the wallet yet. However, BWT (via rust-bitcoincore-rpc) requires it, causing BWT to fail to start up in this situation.

Note that currently Bitcoin Core does actually return keypoololdest when the wallet is first created, even if no keys are added. However, if the wallet is unloaded and then reloaded, the field is missing. The only remedy at this point is to shut down Bitcoin Core, delete the wallet entirely and start again, making sure to add keys before unloading the wallet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant