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

KeyError: 'fee' when starting EPS #279

Open
Arns opened this issue Jul 19, 2022 · 2 comments
Open

KeyError: 'fee' when starting EPS #279

Arns opened this issue Jul 19, 2022 · 2 comments

Comments

@Arns
Copy link

Arns commented Jul 19, 2022

My setup used to work just fine a few months back around April. I just tried to boot EPS up (with Bitcoin Core, Electrum Wallet) and I get the following error:

INFO:2022-07-18 20:03:25,779: Obtaining bitcoin addresses to monitor . . .
INFO:2022-07-18 20:03:27,273: Obtained list of addresses to monitor in 1.5081593990325928sec
INFO:2022-07-18 20:03:27,273: Building history with 2001 addresses . . .
INFO:2022-07-18 20:03:27,441: Found 17 txes. History built in 0.1614077091217041sec
INFO:2022-07-18 20:03:27,545: Synchronizing mempool . . .
Traceback (most recent call last):
  File "/home/keith/.local/bin/electrum-personal-server", line 8, in <module>
    sys.exit(main())
  File "/home/keith/.local/lib/python3.8/site-packages/electrumpersonalserver/server/common.py", line 494, in main
    run_electrum_server(rpc, txmonitor, config)
  File "/home/keith/.local/lib/python3.8/site-packages/electrumpersonalserver/server/common.py", line 121, in run_electrum_server
    mempool_sync.initial_sync(logger)
  File "/home/keith/.local/lib/python3.8/site-packages/electrumpersonalserver/server/mempoolhistogram.py", line 57, in initial_sync
    self.poll_update(-1)
  File "/home/keith/.local/lib/python3.8/site-packages/electrumpersonalserver/server/mempoolhistogram.py", line 111, in poll_update
    fee_rate = 1e8*mempool_tx["fee"] // mempool_tx["vsize"]
KeyError: 'fee'
@Arns Arns changed the title KeyError: fee when starting EPS KeyError: 'fee' when starting EPS Jul 19, 2022
@mikeyb233
Copy link

The element "fee" has been deprecated from the json object returned by getmempoolentry. See https://developer.bitcoin.org/reference/rpc/getmempoolentry.html

A new object "fees" contains the element "base" which should replace the previous "fee"

fees = mempool_tx["fees"]
fee_rate = 1e8*fees["base"] // mempool_tx["vsize"]

@jdpy19
Copy link

jdpy19 commented Dec 26, 2022

Running into this error as well. Has this been changed in a new version?

Currently running
electrum-personal-server 0.2.1.1
Bitcoin-Core 24.1

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