Bitcoin Forum
May 08, 2024, 02:45:52 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: ElectrumX: running Bitcoin Core and BitcoinABC simultaneously  (Read 138 times)
hashslinger (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 7


View Profile
September 02, 2019, 10:49:04 PM
Last edit: September 02, 2019, 11:00:06 PM by hashslinger
Merited by hugeblack (1)
 #1

My goal is to run both the bitcoin and bitcoin cash ElectrumX servers. I have assumed that this would be easiest with the Bitcoin Core and BitcoinABC implementations. I do not know of a daemon which will run both networks simultaneously.

My attempted configuration follows. I configured BitcoinCash.conf with bind=192.168.1.2 and BitcoinCore.conf with bind=192.168.1.3.  Similarly, electrumcash.conf has SERVICES = ssl://192.168.1.2:50002 and electrumcore.conf SERVICES = ssl://192.168.1.3:50002.  With this config, I can connect to both ElectrumX servers with the Electrum and Electron Cash client but only for several minutes. Then the Bitcoin Core daemon gives the error, "socket recv error connect reset by peer (104) bitcoind", and crashes.

This may or may not be relevant. Before that Core's bitcoind gives the warning, "46 of  the last 100 blocks have unexpected version". When I configure BitcoinCore.conf without bind and electrumcore.conf with ssl://:50002,i.e. with both daemons binding to all available IP's, I still get this warning, but the Bitcoin Core daemon continues to run for hours.

For my router's firewall, I have configured two rules for each port. Port 8333, has a rule forwarding that port to 192.168.1.2 and 192.168.1.3, and the same applies to port 50002. I added the second IP address to my network interface with 'sudo ip address add 192.168.1.3/24 dev enp1s0'. I am running  Ubuntu 18 LTS.  I built Bitcoin Core v0.18.0 from source. Thanks for reading, and for your help.
1715179552
Hero Member
*
Offline Offline

Posts: 1715179552

View Profile Personal Message (Offline)

Ignore
1715179552
Reply with quote  #2

1715179552
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715179552
Hero Member
*
Offline Offline

Posts: 1715179552

View Profile Personal Message (Offline)

Ignore
1715179552
Reply with quote  #2

1715179552
Report to moderator
hashslinger (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 7


View Profile
September 03, 2019, 04:13:03 AM
Merited by hugeblack (1), HCP (1)
 #2

Solved! On my last attempt, bitcoin cash was disconnecting instead of bitcoin. Also, the bitcoind daemon was stable, but the Electrum client connection kept dropping I reconsidered whether or not I could run both networks on port 50002. I created a rule to forward port 50002 to 50001 for bitcoin cash (I wasn't using 50001). I will try to document this. I've seen good docs for running an Electrum server, but not for running both networks simultaneously.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!