chris-belcher / electrum-personal-server

Maximally lightweight electrum server for a single user
MIT License
602 stars 110 forks source link

confused with different wallets in settings #245

Closed telejoshi closed 3 years ago

telejoshi commented 3 years ago

Hello there,

I'm running a Bitcoin Node on a raspberry pi (it's working). I can't wrap my head around configuring EPS though.

Setup:

What I've done so far:

config.ini:

[master-public-keys] mywallet = zpub(...) /public master key of my original (read-only) wallet I use on Windows [bitcoin-rpc] host = 127.0.0.1 port = 8332 datadir = /mnt/biti wallet_filename = electrum /wallet I've created on Bitcoin Core for EPS

I've added the public key of my Electrum wallet I run on Windows to config.ini. I think I just don't understand why there must be a wallet on my Bitcoin Node, too. There's a wallet called "electrum" on my node but also a different wallet on my Computer. Would it be better to open that same wallet (read only) on my Bitcoin Node?

chris-belcher commented 3 years ago

The way Electrum Personal Server works is that it generates the bitcoin addresses of your Electrum wallet and then imports them as watch-only into the Bitcoin node. EPS will then (possibly after a rescan) obtain transactions from the Bitcoin node and use that to notify the Electrum client of new and old transactions. For this to work the Bitcoin node must also have a wallet file specially for EPS. This Bitcoin node wallet file only contains watch-only addresses.

telejoshi commented 3 years ago

For this to work the Bitcoin node must also have a wallet file specially for EPS. This Bitcoin node wallet file only contains watch-only addresses.

So in other words that extra Wallet is needed for EPS to work? Thanks for the explanation. And thanks for all this work!