electrum-personal-server icon indicating copy to clipboard operation
electrum-personal-server copied to clipboard

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

Open ghost opened this issue 3 years ago • 4 comments

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'}

ghost avatar May 07 '22 17:05 ghost

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.

chris-belcher avatar May 13 '22 11:05 chris-belcher

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.

la841 avatar May 19 '22 15:05 la841

@la841 see the solution here: https://github.com/chris-belcher/electrum-personal-server/issues/266#issuecomment-1109835511

chris-belcher avatar May 22 '22 09:05 chris-belcher

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 :)

paulscode avatar Dec 04 '22 23:12 paulscode