Skip to content

Commit

Permalink
Merge pull request #273 from andrewtoth/v23-updates
Browse files Browse the repository at this point in the history
Bitcoin Core v23.0 compatibilty updates
  • Loading branch information
chris-belcher authored Jun 10, 2022
2 parents cc3085c + 9874f58 commit 359dbec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ which bitcoin addresses they are interested in.
[verify the digital signatures](https://bitcoin.stackexchange.com/questions/50185/how-to-verify-bitcoin-core-release-signing-keys)
of any binaries before running them, or compile from source. The Bitcoin node
must have wallet functionality enabled, and must have the RPC server switched on (`server=1`
in bitcoin.conf). Create a wallet dedicated to Electrum Personal Server by adding
`wallet=electrumpersonalserver` to the bitcoin.conf file.
in bitcoin.conf). Create a wallet dedicated to Electrum Personal Server by running
`bitcoin-cli createwallet electrumpersonalserver true true "" false false true`
for Bitcoin Core v23.0 and up, or
`wallet=electrumpersonalserver` to the bitcoin.conf file for previous versions.

- If you dont already have it, download and install
[Electrum bitcoin wallet](https://electrum.org/), and set up your Electrum
Expand Down
2 changes: 1 addition & 1 deletion electrumpersonalserver/server/mempoolhistogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def poll_update(self, timeout):
mempool_tx = self.rpc.call("getmempoolentry", [txid])
except JsonRpcError:
continue
fee_rate = 1e8*mempool_tx["fee"] // mempool_tx["vsize"]
fee_rate = 1e8*mempool_tx["fees"]["base"] // mempool_tx["vsize"]
self.mempool[txid] = (fee_rate, mempool_tx["vsize"])

return poll_interval_change

0 comments on commit 359dbec

Please sign in to comment.