Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Startup error with bitcoin core 23.0

See original GitHub issue
INFO:2022-04-25 17:11:27,328: Synchronizing mempool . . .
Traceback (most recent call last):
  File "/home/norbert/.local/bin/electrum-personal-server", line 8, in <module>
  File "/home/norbert/.local/lib/python3.8/site-packages/electrumpersonalserver/server/", line 494, in main
    run_electrum_server(rpc, txmonitor, config)
  File "/home/norbert/.local/lib/python3.8/site-packages/electrumpersonalserver/server/", line 121, in run_electrum_server
  File "/home/norbert/.local/lib/python3.8/site-packages/electrumpersonalserver/server/", line 57, in initial_sync
  File "/home/norbert/.local/lib/python3.8/site-packages/electrumpersonalserver/server/", line 111, in poll_update
    fee_rate = 1e8*mempool_tx["fee"] // mempool_tx["vsize"]
KeyError: 'fee'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

chris-belchercommented, Apr 26, 2022

As well as what @hMsats wrote, you can also fix this by adding deprecatedrpc=fees to your bitcoin.conf file and then restarting Bitcoin Core.

The same kind of thing happened with this other issue:

hMsatscommented, Apr 25, 2022

I found a work around for now:

In /home/user/.local/lib/python3.8/site-packages/electrumpersonalserver/server/

I changed line 108:

mempool_tx ="getmempoolentry", [txid])


mempool_tx ="getmempoolentry -deprecatedrpc=fees", [txid])

and EPS was working again. This was changed in version 23 of Bitcoin Core

- - The top-level fee fields `fee`, `modifiedfee`, `ancestorfees` and `descendantfees`
  returned by RPCs `getmempoolentry`,`getrawmempool(verbose=true)`,
  `getmempoolancestors(verbose=true)` and `getmempooldescendants(verbose=true)`
  are deprecated and will be removed in the next major version (use
  `-deprecated=fees` if needed in this version).
Read more comments on GitHub >

github_iconTop Results From Across the Web

Bitcoin Core 0.23 installer incompatible with Windows ...
Try downloading the current version 0.23 of Bitcoin Core for Windows from the official site : the installer (EXE) is corrupted (won't run, ......
Read more >
bitcoind 23.0 crashed mysteriously after 2 hours, what do I do ...
This made me start to suspect disk hardware errors. So I ran this check: $ sudo apt-get install smartmontools $ sudo smartctl -H...
Read more >
Bitcoin Core 23.0
This release includes new features, various bug fixes and performance improvements, as well as updated translations. Please report bugs using the issue tracker ......
Read more >
[bitcoin-core-dev] Bitcoin Core 23.0 released
Please report bugs using the issue tracker at GitHub: ... Upgrading directly from a version of Bitcoin Core that has reached its EOL...
Read more >
Running A Full Node -
To start Bitcoin Core daemon, first open a command window: press the Windows key ( ⊞ Win ) and type “cmd”. Choose the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found