Author

Topic: Fun & learning with Electrum EPS, Electrum wallet & Bitcoin Core QT in Win 11 (Read 451 times)

legendary
Activity: 2268
Merit: 18509
I wouldn't expect the log file to show anything until it actually encounters the error, and given the log file is overwritten each time you start EPS, then if there were any logs in there from before they won't be there anymore.

You'll need to start EPS with the config.ini file set up for broadcast_method = tor and actually try to broadcast a transaction and have it fail, then examine the .log file to see why.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
Thanks o_e_l_e_o I was looking in the wrong folder in AppData\Roaming. I should've checked their GitHub before posting but it's there in AppData\Local\Temp/ like you say.

I've searched for tor in the electrumpersonalserver.log file. I'm hitting history and monitor but there isn't an output for tor errors. It's logged connection errors like Error with bitcoin json-rpc: JsonRpcError({'code': -28, 'message': 'Loading wallet '}) while Bitcoin Core's loading but nothing specifically about tor.

I've said before the broadcast_method = tor-or-own-node or broadcast_method = tor issue isn't critical to running EPS on Win 11 over tor but I'd like to know why it doesn't work the way it's supposed to. I'll take a detailed look at the electrumpersonalserver.log when I'm ready to test EPS over tor again. I'll set configs to tor_port=9050 & 9150 with tor browser open-closed. Thanks for helping try to pinpoint what's going on.

There definitely will be a log file. I don't run Windows so I can't say for sure, but at the top of the EPS window when you launch it it should tell you where it is logging to.

Edit: Here's an issue from their GitHub from someone running Windows 10, which says it is logging to "C:\Users\[user]\AppData\Local\Temp/electrumpersonalserver.log". Check there.
legendary
Activity: 2268
Merit: 18509
I've checked but it's like EPS on Windows doesn't have a log file. The bitcoin core log doesn't output EPS tor_port errors.
There definitely will be a log file. I don't run Windows so I can't say for sure, but at the top of the EPS window when you launch it it should tell you where it is logging to.

Edit: Here's an issue from their GitHub from someone running Windows 10, which says it is logging to "C:\Users\[user]\AppData\Local\Temp/electrumpersonalserver.log". Check there.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
Note that port 9050 is for the Tor daemon, and 9150 is for the Tor browser.
I assume when you try using tor you are commenting out tor-or-own-node and not leaving a conflict?
There shouldn't be a conflict because of the lines I've uncommented it looks like it should work. I've used tor browser for broadcast_method = tor-or-own-node which works on config tor_port 9150. It doesn't broadcast on broadcast_method = tor so I've implemented combos which didn't work. It's annoying but isn't critical.
Code:
# Parameter for broadcasting unconfirmed transactions
# Options are:
# * tor-or-own-node  (use tor if tor is running locally, otherwise own-node)
# * own-node         (broadcast using the connected full node)
# * tor              (broadcast to random nodes over tor)
# * system %s  (save transaction to file, and invoke system command
#                     with file path as parameter %s)
#broadcast_method = tor-or-own-node  
#broadcast_method = own-node
broadcast_method = tor  

# For tor broadcasting (broadcast_method = tor) configure
# the tor proxy host and port below
tor_host = localhost
# tor_host = 127.0.0.1
tor_port = 9150

Can you check the logs when you try to broadcast over tor only and see what they say?
I've checked but it's like EPS on Windows doesn't have a log file. The bitcoin core log doesn't output EPS tor_port errors.
legendary
Activity: 2268
Merit: 18509
Note that port 9050 is for the Tor daemon, and 9150 is for the Tor browser.
I assume when you try using tor you are commenting out tor-or-own-node and not leaving a conflict?

Can you check the logs when you try to broadcast over tor only and see what they say?
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
Thanks. I've tried making it work by uncommenting & modifying the tor lines but it doesn't solve it. I've got the EPS code working with configs on using tor-or-own-network. The internet's connected over tor so it's secure but it doesn't work in the way it's supposed to because tor only works on tor-or-own-network setting. If it's a Windows issue it doesn't matter I won't investigate it longer.

I was talking about: config.ini_sample which is copied to config.ini as per the instructions.
My reply is just based off the notes in the commented lines; if it doesn't work then you may have to stick with the working config.
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
The lines were commented out by default in the EPS I've downloaded. When I've used tor instead of tor-or-own-node for broadcast_method it doesn't broadcast or process transactions. I've altered settings for tor host & tor post with 9150, localhost & 127.0.0.1 but those settings don't work.
I was talking about: config.ini_sample which is copied to config.ini as per the instructions.
My reply is just based off the notes in the commented lines; if it doesn't work then you may have to stick with the working config.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
The EPS only works over tor when I'm using broadcast_method = tor-or-own-node that's when the output's
Code:
Tor detected at ('127.0.0.1', 9150). Broadcasting through tor.

The lines were commented out by default in the EPS I've downloaded. When I've used tor instead of tor-or-own-node for broadcast_method it doesn't broadcast or process transactions. I've altered settings for tor host & tor post with 9150, localhost & 127.0.0.1 but those settings don't work.

For recap it's working over tor only when broadcast_method = tor-or-own-node gets used. If you're using EPS on Win11 is that how you're using it?

Those "tor_host" and "tor_port" options aren't commented-out by default, is there a reason why you disabled them?
If so, it could be the reason since it explicitly noted that those are required for broadcast_method = tor.

Also, 127.0.0.1 IP already reserved for localhost, although putting duplicate wont cause harm, setting both at the same time is still unnecessary.
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
EPS config.ini
Code:
# For tor broadcasting (broadcast_method = tor) configure
# the tor proxy host and port below
# tor_host = localhost
# tor_host = 127.0.0.1
# tor_port = 9150

My settings aren't working for tor only in config.ini so it isn't broadcasting transactions.
Those "tor_host" and "tor_port" options aren't commented-out by default, is there a reason why you disabled them?
If so, it could be the reason since it explicitly noted that those are required for broadcast_method = tor.

Also, 127.0.0.1 IP already reserved for localhost, although putting duplicate wont cause harm, setting both at the same time is still unnecessary.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
EPS config.ini
Code:
# Parameter for broadcasting unconfirmed transactions
# Options are:
# * tor-or-own-node  (use tor if tor is running locally, otherwise own-node)
# * own-node         (broadcast using the connected full node)
# * tor              (broadcast to random nodes over tor)
# * system %s  (save transaction to file, and invoke system command
#                     with file path as parameter %s)
broadcast_method = tor-or-own-node  
#broadcast_method = own-node
#broadcast_method = tor  

# For tor broadcasting (broadcast_method = tor) configure
# the tor proxy host and port below
# tor_host = localhost
# tor_host = 127.0.0.1
# tor_port = 9150

My settings aren't working for tor only in config.ini so it isn't broadcasting transactions. It's working using tor-or-own-node here's a typical output
Code:
Broadcasting tx xx with broadcast method: tor-or-own-node. Tor detected at ('127.0.0.1', 9150). Broadcasting through tor.

If tor's detected it'll broadcast over tor or else own node ip. Are you using a better methodology?
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
It's a question that's been answered by another amazing helper so thanks for the info. I couldn't understand how Bitcoin Core showed watch-only addresses if EPS wasn't open. It's understood now.

It isn't easy running nodes because of SSD GB occupied by Bitcoin's blockchain. If you're using a node on Windows trying EPS & Electrum Wallet for a new experience's advisable.

It's imported to a "watching-only" wallet in Bitcoin Core.
Reference: github.com/chris-belcher/electrum-personal-server#how-to

It's a way for Electrum Personal Server to fetch your transactions from Bitcoin Core without requiring a full UTXO set index.
Since it's a wallet, it's saved in Bitcoin Core's data directory and will load whether EPS is running or not.
It works like a normal wallet but doesn't contain any private keys.
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
I've compiled MPK's in EPS config.ini but if my EPS isn't running where's Bitcoin Core's getting the addresses from. Bitcoin Core's listing watch-only addresses in real time. It's confusing.
It's imported to a "watching-only" wallet in Bitcoin Core.
Reference: github.com/chris-belcher/electrum-personal-server#how-to

It's a way for Electrum Personal Server to fetch your transactions from Bitcoin Core without requiring a full UTXO set index.
Since it's a wallet, it's saved in Bitcoin Core's data directory and will load whether EPS is running or not.
It works like a normal wallet but doesn't contain any private keys.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
Can you help? How's Bitcoin Core watch-only addresses functioning listing watch-only addresses in real time. I've compiled MPK's in EPS config.ini but if my EPS isn't running where's Bitcoin Core's getting the addresses from. Bitcoin Core's listing watch-only addresses in real time. It's confusing.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
I've unlocked to ask a question bugging me.

I haven't encountered problems I'm pleased it's working but I don't understand how Bitcoin Core displays watch-only address balances if EPS isn't running.

In my EPS config.ini I've added multiple MPK so how's Bitcoin Core showing accumulative balances if I didn't open EPS or Electrum wallet? Bitcoin Core alerted when a watch-only address received payment while EPS wasn't running. My RPC setting's active in Bitcoin Core so where's it receiving my MPK list from?
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
I've tried sending another transaction unsuccessfully. Examining files I noticed server=1 was missing in my bitcoin.conf file I don't know how it was removed. What confused me was EPS broadcasts it but Electrum Wallet doesn't send funds. It's working after server=1 was inserted.

I've locked the thread.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.


I'm glad I didn't lock up the thread. I've missed reporting a very important function if you've configured Electrum EPS, Electrum wallet & Bitcoin Core QT together. You'll enjoy a watch-only tool in Bitcoin Core wallet showing combined balances of MPKs you've inserted to config.ini in EPS. Don't forget to select settings>>options>>enable rpc server.

You've got your Bitcoin Core balance next to watch-only balances. Recent transactions list includes Electrum watch-only incoming transactions. You'll be able to manage finances with comfort. If you're running your own Bitcoin Core node you can't gain more for privacy if you use localhost, EPS, Electrum Wallet and Tor.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
Thanks o_e_l_e_o for amazing free advice. It's running now without complaints.

I don't have Tor connectivity problems. My Electrum wallet's loaded on Tor over Electrum Personal Server. My Bitcore Core's running on my localhost set. Bitcoin Core doesn't broadcast transactions with walletbroadcast=0 inserted so it's functioning as I wanted on my Windows without drawbacks.

It's another fun & learning completed. I'm keeping the thread open to answer questions but I'll lock soon.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
I've added walletbroadcast=0 to .conf but Bitcoin Core's generated a notification in the corner of my screen.
The usual notification about a transaction affecting one of your addresses? This shows up regardless of where the transaction came from.
Thanks. I wasn't expecting notifications in Bitcoin Core after putting walletbroadcast=0 so received a confusing surprise.

How can I check 100% it didn't broadcast to other btc nodes?
I suppose the easiest way to do this would be before you make your next transaction, click the network activity icon at the bottom right of the Bitcoin Core GUI and select "Disable network activity". Once Core has disconnected, broadcast your transaction via Electrum, EPS should broadcast it via Tor, and then check that it can be viewed on a block explorer.
I'll broadcast my next transaction the way you guided. It'll be my last test for checking Bitcoin Core doesn't leak my ip address. If it's a success I'll lock the thread because my Electrum wallet, EPS & Bitcoin Core run superb in localhost. Tor configs work. It's easy to use EPS on my own node.
legendary
Activity: 2268
Merit: 18509
I've added walletbroadcast=0 to .conf but Bitcoin Core's generated a notification in the corner of my screen.
The usual notification about a transaction affecting one of your addresses? This shows up regardless of where the transaction came from.

How can I check 100% it didn't broadcast to other btc nodes?
I suppose the easiest way to do this would be before you make your next transaction, click the network activity icon at the bottom right of the Bitcoin Core GUI and select "Disable network activity". Once Core has disconnected, broadcast your transaction via Electrum, EPS should broadcast it via Tor, and then check that it can be viewed on a block explorer.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
When EPS displays 127.0.0.1 it doesn't mean it's broadcasted localhost it's going to broadcast your ip address that's important for learning about broadcasts. Thanks I've changed tor-or-own-node to tor so EPS should've been configured in secure levels.

I've added walletbroadcast=0 to .conf but Bitcoin Core's generated a notification in the corner of my screen. How can I check 100% it didn't broadcast to other btc nodes?

That transaction broadcast through Tor as it says, so whichever nodes it connected to will have seen your Tor IP address.

However, it still says it is using tor-or-own-node, so if Tor fails it will fall back on broadcasting via your node. If you don't want this, you'll need to check the config.ini file again to see why it isn't using Tor only as described above.
legendary
Activity: 2268
Merit: 18509
That transaction broadcast through Tor as it says, so whichever nodes it connected to will have seen your Tor IP address.

However, it still says it is using tor-or-own-node, so if Tor fails it will fall back on broadcasting via your node. If you don't want this, you'll need to check the config.ini file again to see why it isn't using Tor only as described above.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.


When EPS connected over tor for broadcasting my own transaction what's the address they saw

127.0.0.1
my ip address
tor ip address from tor browser
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
When I'm using my Electrum Wallet, EPS & Bitcoin Core is my privacy less secure if I didn't use vpn or tor for broadcasts ?
Yes. An attacker could potentially link your transactions to your IP address. See here for more info: https://en.bitcoin.it/wiki/Privacy#Tor_and_tor_broadcasting

I've used these configs

Bitcoin Core .conf
Code:
rpcuser=username
rpcpassword=password
walletbroadcast=0

EPS config.ini
Code:
broadcast_method = tor

To avoid this, you can either run your node via Tor, or you can choose to run your node via clearnet but broadcast your transactions via Tor. For this second option, you need to do two things:

1 - Add walletbroadcast=0 to your bitcoin.conf file. This will stop your node from broadcasting your own transactions.
2 - In your EPS config.ini file, navigate to where it says broadcast_method = tor-or-own-node and change it to broadcast_method = tor.

Any transactions you make via Electrum via EPS will now be broadcast to random nodes over Tor only.
So Bitcoin Core broadcasts jointly with Electrum. I've understood walletbroadcast=0 stops my node from broadcasting my own transactions so Electrum's going to do it with 127.0.0.1, 50002 or 127.0.0.1, 9150 on tor. That's helpful advice.

I'm firm my IP address wasn't leaked in Electrum it's localhost so stopping Bitcore Core from broadcasting transactions stops leaks. I'll post after it's been tested.
legendary
Activity: 2268
Merit: 18509
When I'm using my Electrum Wallet, EPS & Bitcoin Core is my privacy less secure if I didn't use vpn or tor for broadcasts ?
Yes. An attacker could potentially link your transactions to your IP address. See here for more info: https://en.bitcoin.it/wiki/Privacy#Tor_and_tor_broadcasting

To avoid this, you can either run your node via Tor, or you can choose to run your node via clearnet but broadcast your transactions via Tor. For this second option, you need to do two things:

1 - Add walletbroadcast=0 to your bitcoin.conf file. This will stop your node from broadcasting your own transactions.
2 - In your EPS config.ini file, navigate to where it says broadcast_method = tor-or-own-node and change it to broadcast_method = tor.

Any transactions you make via Electrum via EPS will now be broadcast to random nodes over Tor only.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.


I've read you don't have to run Electrum over tor in localhost because it doesn't increase privacy. I've opened my tor browser before starting Electrum so the connection  indicator's turned blue.

When I'm using my Electrum Wallet, EPS & Bitcoin Core is my privacy less secure if I didn't use vpn or tor for broadcasts ?
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
Thanks that's explained why I couldn't locate the message. I didn't download python files I've used the windows release. I would've liked assurances my localhost EPS isn't connecting to outside servers for the donations message so it must've been coded in the .exe program.

I can't locate the words If this project is valuable to you please consider donating in the source code.
The message is hard-coded to the server.
Here's where the code is: github.com/chris-belcher/electrum-personal-server/blob/master/electrumpersonalserver/server/common.py#L84-L86
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
I can't locate the words If this project is valuable to you please consider donating in the source code.
The message is hard-coded to the server.
Here's where the code is: github.com/chris-belcher/electrum-personal-server/blob/master/electrumpersonalserver/server/common.py#L84-L86
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
I'm grateful Chris Belcher's released Electrum EPS. I can't locate where he's inserted a donations address in the source code. Where's it loading from? If this project is valuable to you please consider donating: bc1qe74qzd256kxevq2gn7gmscs564lfk5tqrxqsuy
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
It wasn't working before because they'd expired. I've downloaded OpenSSL binaries to generate new cert & key so it's running satisfactorily. I'm using Bitcoin Core, Electrum EPS & Electrum 4.4.4 on the same SSD. My Electrum wallet network connects singularly on 1 node to localhost so it doesn't connect with available electrum servers online.

Thanks for replies I've had fun learning new things so locking the thread keeping thread open to answer questions if you're trying the same.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
I didn't have time to try that solution because I don't use OpenSSL. It'll be fun solving it this weekend days. Official Electrum doc guides the client only connects to servers over SSL so to continue with EPS experiments on Win 11 I'll generate self-signed certs & keys. Thanks

Have you tried if this can solve it?
Link: https://github.com/chris-belcher/electrum-personal-server/issues/286#issuecomment-1465354568
It has the same title as BitMaxz' link but it's a different issue with different solution.

Also read the next replies for more information about the command.
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
Have you tried if this can solve it?
Link: https://github.com/chris-belcher/electrum-personal-server/issues/286#issuecomment-1465354568
It has the same title as BitMaxz' link but it's a different issue with different solution.

Also read the next replies for more information about the command.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
Are you running Electrum Personal Server inside the virtual machine? Or something else (or both)? If the answer to any of these questions is "yes", you ought to set up bridged networking and have the server listen on an interface like 192.168.*.* instead so you can connect through that.
I've uninstalled Virtualbox so running Electrum and Bitcoin on Windows 11.

I suggest enable the debug log in your Electrum wallet to troubleshoot the issue you can enable it under tools> preferences> Misc then click write logs to file. Restart Electrum and try to connect again on that IP:Port.

If the above suggestion does not work maybe you are using an old version of the EPS I heard someone fix their issue by upgrading it to the latest version according to this link below or switch to ElectrumX.

- https://github.com/chris-belcher/electrum-personal-server/issues/192#issuecomment-1009161716
I'm using their latest Release v0.2.4. Thanks I'll check the Electrum wallet log because there's a reason why it isn't connected.
legendary
Activity: 3234
Merit: 2943
Block halving is coming.
I suggest enable the debug log in your Electrum wallet to troubleshoot the issue you can enable it under tools> preferences> Misc then click write logs to file. Restart Electrum and try to connect again on that IP:Port.

If the above suggestion does not work maybe you are using an old version of the EPS I heard someone fix their issue by upgrading it to the latest version according to this link below or switch to ElectrumX.

- https://github.com/chris-belcher/electrum-personal-server/issues/192#issuecomment-1009161716
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
Are you running Electrum Personal Server inside the virtual machine? Or something else (or both)? If the answer to any of these questions is "yes", you ought to set up bridged networking and have the server listen on an interface like 192.168.*.* instead so you can connect through that.
full member
Activity: 714
Merit: 160
I'm a web developer. Hire me for your work.
I've tested Virtualbox with Linux Mint & Bitcoin on Windows 11 but didn't want to connect SSD in external USB so uninstalled it.

I love learning about bitcoin so in my next fun & learning I've ran Bitcoin Core 25.0 QT with Electrum Personal Server on Windows 11. I'm using full blockchain on Bitcoin QT wallet with Electrum Personal Server faultlessly. The command prompt shows it's connected it shows the first addresses from the MPK. I had to make changes so it's functioning now.

I've unchecked the Select server automatically box & added localhost in different configs. The network alert in Electrum desktop wallet isn't green it resides red meaning it isn't connected to Electrum Personal Server.

localhost:50002
localhost
127.0.0.1:50002
127.0.0.1

I'm stuck because I can't make Electrum desktop wallet work on localhost it doesn't connect. Bitcoin Core is working & Electrum Personal Server is connected to Bitcoin I don't know what I'm doing wrong. If you've worked Electrum EPS, Electrum wallet & Bitcoin Core QT on Windows flawlessly please tell me how your configurations are set.
Jump to: