Pages:
Author

Topic: Need help to get everything to work on Windows 10 machine - page 2. (Read 416 times)

legendary
Activity: 2268
Merit: 18771
Lastly for this post I found a config file for Electrum here C:\Users\xxx\AppData\Roaming\Electrum
Again, I wouldn't even be opening Electrum right now. It will never connect until your EPS is working properly, and by messing around with Electrum config files you are likely to just cause yourself more issues in the future when we get to that part.

Yes I found that part funny too.  the [electrum-watchonly-addresses] is wayyyyy down in the config but I have nothing listed there just the comments made from the default sample config.  Should I add the # to omit that header too?  The correct header [master-public-keys] has no # symbol in front of the test1 line.
The default config file doesn't have a header named [electrum-watchonly-addresses] - https://github.com/chris-belcher/electrum-personal-server/blob/master/config.ini_sample
It does have [watch-only-addresses], which I assume is what you mean. Whether or not the header is commented shouldn't make a difference.

I don't know how to check if Core has the correct wallet open.
If you are using the GUI, then there is a drop down menu at the top right of the main window.

After you press any key, does this window (https://i.imgur.com/Dr1w9aZ.jpg) close? What happens if you then start the server back up again?

It seems that EPS is indeed linking with Bitcoin Core, but for some reason isn't importing the addresses in to the Bitcoin Core wallet properly. I'd maybe redownload the config file from above to have a clean slate and start the whole process again with a newly named wallet.

Thinking about it, does it matter if the wallet is a watch only wallet or a regular standard wallet?  When I tried setting up the wallet in Electrum it was asking for the wallet seed or a master key.
Whatever you do in Electrum right now is irrelevant to getting EPS set up and running. You could be using a dummy xpub pulled from iancoleman.io to try to get the server running. But no, you should never type your hardware wallet seed phrase in to Electrum.
newbie
Activity: 14
Merit: 12
Might be a silly question, but did you uncomment both these lines (delete the # symbol at the start)? Your screenshot says that it is importing in to "electrum-watchonly-addresses", but you say you called your wallet "test1", which is why I'm asking if you have maybe forgotten to uncomment a line. And are you sure Core has the correct wallet open?

Thinking about it, does it matter if the wallet is a watch only wallet or a regular standard wallet?  When I tried setting up the wallet in Electrum it was asking for the wallet seed or a master key.  I thought the whole purpose of the hardware wallet is not to type out a seed ever on the desktop so I put the xpub in where it asks for the master key.  Am I supposed to have put the seeds in at this point?

https://i.imgur.com/sPkXM5t.png
newbie
Activity: 14
Merit: 12
Might be a silly question, but did you uncomment both these lines (delete the # symbol at the start)? Your screenshot says that it is importing in to "electrum-watchonly-addresses", but you say you called your wallet "test1", which is why I'm asking if you have maybe forgotten to uncomment a line. And are you sure Core has the correct wallet open?

Yes I found that part funny too.  the [electrum-watchonly-addresses] is wayyyyy down in the config but I have nothing listed there just the comments made from the default sample config.  Should I add the # to omit that header too?  The correct header [master-public-keys] has no # symbol in front of the test1 line.

I don't know how to check if Core has the correct wallet open.  Somewhere along the line one of the guides said to "Create a new wallet" manually IN bitcoin core.  I named it the same test1 as the same name label I gave to my xpub in Electrum.  Are they supposed to be different names?  I think I messed up there if they are.  And I don't know how to delete a wallet in Bitcoin Core, I only see the option to close wallet



Quote from: o_e_l_e_o
Really not sure why this isn't linking up, but as I say, I'm not very familiar with Windows. Are you using Tor maybe?

I am using Tor for Bitcoin Core and it seems to be running fine - I'm currently connected to 10 onion addresses.  Beyond that Not sure if there are settings I'm missing in the EPS/Electrum config files that I need
newbie
Activity: 14
Merit: 12
I've watched this
https://youtu.be/1JMP4NZCC5g
but the commands are so confusing for me being on a different OS I don't know how to translate 100%

https://youtu.be/4H8gCFrjTYs
At 8:17 he does something with Python that I didn't try until now but I don't think that did anything.  (Is this part outdated)  As the current release on github did not include the setup.py I downloaded that separately today to try and install it the way he did in the video. 
It got installed in C:\Users\xxx\AppData\Roaming\Python\Python310\Scripts  This .exe in there does not do ANYTHING, it just flashes the command line for a second and it disappears automatically.


The only thing I can think of is that I'm looking at too many different guides and I got my ports and IPs mixed up.  Is localhost and 127.0.0.1 interchangable?  I've been putting 127.0.0.1 anywhere it says to put localhost.

bitcoin.conf has
Code:
server=1
listen=1
txindex=1
dbcache=2048
prune=0
onion=127.0.0.1:9050
listenonion=0
onlynet=onion
proxy=127.0.0.1:9050
proxyrandomize=1
rpcport=8332
rpcallowip=127.0.0.1
rpcbind=127.0.0.1
rpcauth=xxx:xxx

EPS config has
Code:
test1 = xpubxxx
[bitcoin-rpc]
host = 127.0.0.1
port = 8332
datadir = C:\Users\xxx\AppData\Roaming\Bitcoin
rpcauth = xxx:xxx
wallet_filename = test1
poll_interval_listening = 30
poll_interval_connected = 1
initial_import_count = 1000
gap_limit = 25
[electrum-server]
host = 127.0.0.1
port = 50002
certfile = certs/cert.crt
keyfile = certs/cert.key
disable_mempool_fee_histogram = false
mempool_update_interval = 60
broadcast_method = tor-or-own-node
tor_host = localhost
tor_port = 9050

Some thoughts and questions I got just by typing that out.  Why so many different host and ports?  Is the config confusing itself?  There are headers I'm assuming the program can read [bitcoin-rpc] and [electrum-server] having different host and ports.  Even tor has it's own port number.  Is that all up to par?


Lastly for this post I found a config file for Electrum here C:\Users\xxx\AppData\Roaming\Electrum
Code:
{
    "auto_connect": false,
    "block_explorer": "mempool.space",
    "blockchain_preferred_block": {
        "hash": "000000000019d6689c085ae16afasdfafasdaffa2asdfaasdfadfa8ce26f",
        "height": 0
    },
    "check_updates": true,
    "config_version": 3,
    "confirmed_only": true,
    "gui_last_wallet": "c:\\users\\xxx\\appdata\\roaming\\electrum\\wallets\\test1",
    "io_dir": "D:/",
    "is_maximized": false,
    "oneserver": true,
    "receive_tabs_index": 0,
    "recently_open": [
        "c:\\users\\xxx\\appdata\\roaming\\electrum\\wallets\\test1"
    ],
    "rpcpassword": "6DS0xxxxxxxxxxxzA==",
    "rpcuser": "user",
    "server": "127.0.0.1:50002:s",
    "show_addresses_tab": false,
    "show_console_tab": true
}
Some thoughts and questions I've tried manually setting the rpcpassword and rpcuser to the same as the rpcauth information in the other two config file and it will just revert to this default upon reopening the config file.

What is the ":s" part in the "server": "127.0.0.1:50002:s".  Several different guides I have seen :s and also a :t, etc.  Currently in my network window of Electrum it shows "localhost:1"  Instead of any of the ports mentioned previously.  Is this just mean the same as localhost?
In the proxy tab of network settings both "Use Tor proxy at port 9050" and "Use proxy" is both unchecked.  They were previously checked but it does not seem to make any difference in getting everything running currently.
legendary
Activity: 2268
Merit: 18771
C:\Users\xxx\AppData\Roaming\Bitcoin
This is the correct path for Windows.

I also added the code "test1 = xpubxxx" and "wallet_filename = test1" in the EPS config but I'm not sure they are linking up
Might be a silly question, but did you uncomment both these lines (delete the # symbol at the start)? Your screenshot says that it is importing in to "electrum-watchonly-addresses", but you say you called your wallet "test1", which is why I'm asking if you have maybe forgotten to uncomment a line. And are you sure Core has the correct wallet open?

Are you saying I need to leave the command line window open for a day or more even though it says to Press any key to continue?  Is the program still initializing and I'm abrubtly quitting it every time I close it?
I don't think so. EPS only scans the addresses in your wallet, as opposed to ElectrumX which scans every address, so it should rescan in a matter of minutes. EPS (on Linux, at least) also tells you when it is rescanning and gives you a progress bar.

Really not sure why this isn't linking up, but as I say, I'm not very familiar with Windows. Are you using Tor maybe?
newbie
Activity: 14
Merit: 12
Actually, the Cold card is totally Airgapped you don't need to have a full node all transactions are airgapped but if this is for increasing privacy then you can set up a personal Electrum server.

There is a full guide here on how to set up a personal Electrum server with Windows read this "Bitcoin + Electrum server + Block explorer under Windows (with WSL and Debian)"

Sorry but I'm not sure this guide pertains to me as I'm trying to set up Electrum Personal Server and I think I understand they are two different things?

I would forget about the Coldcard for now and try to get your EPS up and running first. I'm not familiar with setting this up on Windows, but it sounds like your EPS isn't connecting to Bitcoin Core, so this is the first issue to solve as anything to do with Electrum or your Coldcard won't work without a working EPS first.

Have you worked through the config.ini file for the EPS and configured the bits that need configured? You need to import your master public key or individual addresses from your Electrum wallet in to the relevant sections, and you need to make sure the you enter the location of your Bitcoin Core datadir in the relevant field.
Has EPS successfully managed to import the master private key in to Bitcoin Core (if you open the necessary wallet in Bitcoin Core, can you see the addresses from your Electrum/Coldcard wallet?)

Yes I configured the config.ini according to several different guides.  Grabbed the Mater public key from Cold Card into Electrum.  My Bitcoin Core datadir I'm assuming is the one around 433GB
C:\Users\xxx\AppData\Roaming\Bitcoin or C:\Users\xxx\AppData\Roaming\Bitcoin\blocks I tried both and neither worked in getting EPS online.

As for your last question I'm not sure how to check for addresses but I do have a wallet that I created on Bitcoin Core as test1 open.  I also added the code "test1 = xpubxxx" and "wallet_filename = test1" in the EPS config but I'm not sure they are linking up.  The wallet is open but I don't see any of the receiving addresses mentioned in the command line here: https://i.imgur.com/Dr1w9aZ.jpg

Bitcoin Core configuration;
Your bitcoind.conf file can be found here: C:\Users\\AppData\Roaming\Bitcoin\.  Or, open Bitcoin Core QT (the gui,) click on Settings, then on "Main" tab, click on "Open Configuration File."

Make sure bitcoin core is listening for incoming connections, and configured for Electrum's requirements by adding these lines:
Code:
listen=1
txindex=1
dbcache=2048
prune=0

You may also need to enable RPC server, which by default will allow RPC commands from the localhost:
Code:
server=1
I had most of these settings except txindex,dbcache,prune.  One guide did say to have listen set to 0 so I just changed it to 1.  Nothing happened differently AFAIK.

Quote
Try those settings in your bitcoin.conf file and see if that helps.  Also keep in mind that it may take EPS some time to synchronize with bitcoin core.  The last time I installed ElectrumX without a backup it needed 36 hours to synch.
Are you saying I need to leave the command line window open for a day or more even though it says to Press any key to continue?  Is the program still initializing and I'm abrubtly quitting it every time I close it?
This is where I'm at right now.  According to the guides it should say "listening for Electrum Wallet" at this point https://i.imgur.com/Dr1w9aZ.jpg   


ETA:

I just found this on the EPS instructions page for Windows:
server = 1
rpcallowip=
rpcbind=
rpcauth = :some-hash-string
Code:
rpcport=8332
rpcallowip=127.0.0.1
rpcbind=127.0.0.1
And I have the rpcauth set up from way back when I set up bitcoin core on the first day - though I don't know how to test if it is working properly.  I also added the same rpcauth string to the EPS config.ini file.
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
Like o_e_l_e_o said, you're only complicating things for yourself trying to get so many things to work at the same time.  Lets take it one step at a time.

Please keep in mind, my only experience with an Electrum server is running ElectrumX on an ubuntu server.  My main computer is a Windows PC, but I find it easier to have bitcoin core and Electrumx running on a remote (in the closet under my stair well) machine.  EPS may be slightly different, but the basics should be the same.

Bitcoin Core configuration;
Your bitcoind.conf file can be found here: C:\Users\\AppData\Roaming\Bitcoin\.  Or, open Bitcoin Core QT (the gui,) click on Settings, then on "Main" tab, click on "Open Configuration File."

Make sure bitcoin core is listening for incoming connections, and configured for Electrum's requirements by adding these lines:
Code:
listen=1
txindex=1
dbcache=2048
prune=0

You may also need to enable RPC server, which by default will allow RPC commands from the localhost:
Code:
server=1

Try those settings in your bitcoin.conf file and see if that helps.  Also keep in mind that it may take EPS some time to synchronize with bitcoin core.  The last time I installed ElectrumX without a backup it needed 36 hours to synch.  


ETA:

I just found this on the EPS instructions page for Windows:
server = 1
rpcallowip=
rpcbind=
rpcauth = :some-hash-string

Set both rpcallowip and rpcbind to localhost or 127.0.0.1.

For the rpcauth hash you'll need to run the rpcauth.py with your preferred username.  You'll need Python3 installed on your windows machine, and you can run it from Powershell.  It can be found in the bitcoin master, here: https://github.com/bitcoin/bitcoin/tree/master/share/rpcauth

Quote
usage: rpcauth.py [-h] username [password]

Create login credentials for a JSON-RPC user

positional arguments:
  username    the username for authentication
  password    leave empty to generate a random password or specify "-" to
              prompt for password

optional arguments:
  -h, --help  show this help message and exit

legendary
Activity: 2268
Merit: 18771
I would forget about the Coldcard for now and try to get your EPS up and running first. I'm not familiar with setting this up on Windows, but it sounds like your EPS isn't connecting to Bitcoin Core, so this is the first issue to solve as anything to do with Electrum or your Coldcard won't work without a working EPS first.

Have you worked through the config.ini file for the EPS and configured the bits that need configured? You need to import your master public key or individual addresses from your Electrum wallet in to the relevant sections, and you need to make sure the you enter the location of your Bitcoin Core datadir in the relevant field.
Has EPS successfully managed to import the master private key in to Bitcoin Core (if you open the necessary wallet in Bitcoin Core, can you see the addresses from your Electrum/Coldcard wallet?)
newbie
Activity: 14
Merit: 12
PLEASE HELP! (I've seen the advice to get Umbrel, etc - I just want to get this running before I spend more money on tech I don't understand.)

First of all, what is your goal? Only using ColdCard through Electrum? Bitcoin Core, EPS, Tor usually used when you have privacy concern and have decent resource.

Yes my goal is to be as private as possible and not depend on public Electrum servers

Actually, the Cold card is totally Airgapped you don't need to have a full node all transactions are airgapped but if this is for increasing privacy then you can set up a personal Electrum server.

There is a full guide here on how to set up a personal Electrum server with Windows read this "Bitcoin + Electrum server + Block explorer under Windows (with WSL and Debian)"
I will check out this guide tomorrow, been at this for about 7 hours and need a refresher.  I got up to this point:
 https://imgur.com/a/iIyrIi4

The next point in the guide says it's supposed to say "Listening for Electrum Wallet ..." https://driftwoodpalace.github.io/Hodl-Guide/hodl-guide_63_eps-win.html

My command line doesn't do that it just says "Press any key to continue" and nothing happens
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
Actually, the Cold card is totally Airgapped you don't need to have a full node all transactions are airgapped but if this is for increasing privacy then you can set up a personal Electrum server.

There is a full guide here on how to set up a personal Electrum server with Windows read this "Bitcoin + Electrum server + Block explorer under Windows (with WSL and Debian)"
newbie
Activity: 14
Merit: 12
umbrel is free software.

Does it run on Windows?  Don't you have to buy extra hardware for that
legendary
Activity: 3710
Merit: 1586
umbrel is free software.
newbie
Activity: 14
Merit: 12
Hi all, go easy on me total newb when it comes to config files and command line options.  Just got my Cold Card in, generated a test wallet and have a .json file on a MicroSD and trying to use it air gapped.

I'm stuck on configuring all the software on my Windows 10 desktop and it's driving me nuts.
Trying to use Bitcoin Core as a full node, with Electrum and Electrum Personal Server so I don't need to connect to random servers.

I followed these guides
https://github.com/chris-belcher/electrum-personal-server
https://driftwoodpalace.github.io/Hodl-Guide/hodl-guide_63_eps-win.html

But some stuff is not exactly 1:1 and I had to improvise on things I did not understand and the result is that I can't get everything running.
I think I have Bitcoin Core running properly as it's connected through Tor and displaying peers as .onion addresses.

I break down when it comes to Electrum and Electrum Personal Server

I don't understand how to get EPS to look at Electrum for the .json wallet.  And I can't get Electrum to connect to the personal server.

I put xpub from the .json file into Electrum as a watch only wallet and also put it in the EPS config file.  I configured everything to localhost:50002 as per the guides

When I drag the config.ini to the .exe of EPS the command line window opens up but nothing happens.  Just says Press any key to continue.

PLEASE HELP! (I've seen the advice to get Umbrel, etc - I just want to get this running before I spend more money on tech I don't understand.)
Pages:
Jump to: