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

'This type of wallet does not support this command' error on startup #269

Open
ghost opened this issue May 7, 2022 · 4 comments
Open

'This type of wallet does not support this command' error on startup #269

ghost opened this issue May 7, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented May 7, 2022

BitcoinCore 23.0 (added deprecatedrpc=fees)
EPS 0.2.3

After failure I tried to install everything from scratch, new certs, new wallet in core, etc. Same config file I've always used. Same result.
EPS shows the first 3 addresses of the xpub correctly, and then this happens. Any ideas? Thanks!

INFO:2022-05-07 19:41:26,850: Obtaining bitcoin addresses to monitor . . .
INFO:2022-05-07 19:41:26,850: Importing 1 wallets and 0 watch-only addresses into the Bitcoin node
Traceback (most recent call last):
File "/home/sat/.local/bin/electrum-personal-server", line 8, in
sys.exit(main())
File "/home/sat/.local/lib/python3.8/site-packages/electrumpersonalserver/server/common.py", line 481, in main
deterministicwallet.import_addresses(rpc, relevant_spks_addrs,
File "/home/sat/.local/lib/python3.8/site-packages/electrumpersonalserver/server/deterministicwallet.py", line 29, in import_addresses
rpc.call("importmulti", [watchonly_addr_param, {"rescan": False}])
File "/home/sat/.local/lib/python3.8/site-packages/electrumpersonalserver/server/jsonrpc.py", line 122, in call
raise JsonRpcError(response["error"])
electrumpersonalserver.server.jsonrpc.JsonRpcError: {'code': -4, 'message': 'This type of wallet does not support this command'}

@chris-belcher
Copy link
Owner

The latest Bitcoin Core creates descriptor wallets by default, but EPS requires legacy wallets.

So try recreating the Bitcoin Core wallet but with descriptor wallets disabled. You can do that with the GUI or with the createwallet RPC call.

@la841
Copy link

la841 commented May 19, 2022

The latest Bitcoin Core creates descriptor wallets by default, but EPS requires legacy wallets.

So try recreating the Bitcoin Core wallet but with descriptor wallets disabled. You can do that with the GUI or with the createwallet RPC call.

I had the same error, after creating Bitcoin Core wallet with descriptor wallet disabled I get this:

INFO:2022-05-19 17:33:00,950: Starting Electrum Personal Server 0.2.3
INFO:2022-05-19 17:33:00,951: Logging to /tmp/electrumpersonalserver.log
INFO:2022-05-19 17:33:01,542: Displaying first 3 addresses of each master public key:
INFO:2022-05-19 17:33:01,549:
wallet =>
...
...
...
INFO:2022-05-19 17:33:01,567: Obtaining bitcoin addresses to monitor . . .
INFO:2022-05-19 17:33:05,202: Obtained list of addresses to monitor in 3.6660356521606445sec
INFO:2022-05-19 17:33:05,202: Building history with 2000 addresses . . .
INFO:2022-05-19 17:33:05,251: Found 0 txes. History built in 0.04862236976623535sec
INFO:2022-05-19 17:33:05,588: Synchronizing mempool . . .
Traceback (most recent call last):
File "/home/ketan/.local/bin/electrum-personal-server", line 8, in
sys.exit(main())
File "/home/ketan/.local/lib/python3.10/site-packages/electrumpersonalserver/server/common.py", line 494, in main
run_electrum_server(rpc, txmonitor, config)
File "/home/ketan/.local/lib/python3.10/site-packages/electrumpersonalserver/server/common.py", line 121, in run_electrum_server
mempool_sync.initial_sync(logger)
File "/home/ketan/.local/lib/python3.10/site-packages/electrumpersonalserver/server/mempoolhistogram.py", line 57, in initial_sync
self.poll_update(-1)
File "/home/ketan/.local/lib/python3.10/site-packages/electrumpersonalserver/server/mempoolhistogram.py", line 111, in poll_update
fee_rate = 1e8*mempool_tx["fee"] // mempool_tx["vsize"]
KeyError: 'fee'

EPS service is not working either.

@chris-belcher
Copy link
Owner

@la841 see the solution here: #266 (comment)

@paulscode
Copy link

paulscode commented Dec 4, 2022

Hello, I am seeing the error message in the OP. In my case I am using a public key from my Trezor T rather than from BitcoinCore, and EPS 0.2.4. I've tried with 3 different account types in the Trezor suite. First was a default SegWit (BIP84, P2WPKH, Bech32). After reading this issue, I tried with a Legacy SegWit (BIP49, P2SH-P2WPKH, Base58) and then with a Legacy (BIP44, P2PKH, Base58), but both of those also gave the same message.

--EDIT--
Sorry, after re-reading the README.md again, I realized that even though I am adding my Trezor master public key under [master public keys], I still have to do the step to create a BitcoinCore wallet, and specify the parameter "wallet_filename = electrumpersonalserver" in the [bitcoin-rpc] section of EPS config. In my case I am using the GUI, so the equivalent to the bitcoin-cli command in the documentation is:
File > Create Wallet
Set Wallet name to "electrumpersonalserver"
Check "Disable Private Keys" and "Make Blank Wallet"
Uncheck "Descriptor Wallet"
done

So, nothing new to see here :)

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

3 participants