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

wallet method is disabled because no wallet is loaded #20051

Closed
jsarenik opened this issue Oct 1, 2020 · 3 comments
Closed

wallet method is disabled because no wallet is loaded #20051

jsarenik opened this issue Oct 1, 2020 · 3 comments
Labels

Comments

@jsarenik
Copy link

jsarenik commented Oct 1, 2020

When I run a fresh regtest with an empty datadir and try to getnewaddress, bitcoin-cli fails with

error code: -32601
error message:
Method not found (wallet method is disabled because no wallet is loaded)

This happens with version 40aab35 (current master) of bitcoind.

Expected behavior

On bitcoin 0.20.1 it does not happen:

$ rm -rf ~/.bitcoin/regtest
$ bitcoind --version | head -1
Bitcoin Core version v0.20.1
$ bitcoind -regtest -daemon=1
Bitcoin Core starting
$ bitcoin-cli getnewaddress
bcrt1...
$ bitcoin-cli stop
Bitcoin Core stopping

Actual behavior

$ rm -rf ~/.bitcoin/regtest
$ bitcoind --version | head -1
Bitcoin Core version v0.20.99.0-40aab35e9
$ bitcoind -regtest -daemon=1
Bitcoin Core starting
$ bitcoin-cli getnewaddress
error code: -32601
error message:
Method not found (wallet method is disabled because no wallet is loaded)
$ bitcoin-cli stop
Bitcoin Core stopping

To reproduce

100%

System information

the master version is self-compiled, v0.20.1 is from bitcoincore.org Linux x86_64

Ubuntu 20.04 LTS

$ uname -mr
5.4.0-48-generic x86_64
@promag
Copy link
Member

promag commented Oct 1, 2020

See #15454.

@maflcko maflcko closed this as completed Oct 1, 2020
@gwillen
Copy link
Contributor

gwillen commented Oct 7, 2020

I think the error messages for this need to be fixed, or there is going to be a huge flood of people with this same issue once #15454 makes it into a release. (Is there already a separate issue or proposal for that?)

@gwillen
Copy link
Contributor

gwillen commented Oct 8, 2020

There was some discussion of this on IRC, and thus was born #20101 .

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants