takinbo
Newbie
Offline
Activity: 18
Merit: 0
|
|
August 03, 2017, 09:37:13 PM |
|
Instructions on setting the RPC port can be found here - http://docs.electrum.org/en/latest/merchant.htmlElectrum itself is a python application and the version you linked to is for Ubuntu (not Windows).
|
|
|
|
Lionel
|
|
August 03, 2017, 11:00:31 PM |
|
Thanks. Since it's python it should be portable like java, so i wonder why it's just for Linux. Anyway seems like bitcoind is much easier to get working on Windows at this point..
|
|
|
|
takinbo
Newbie
Offline
Activity: 18
Merit: 0
|
|
August 04, 2017, 11:28:22 AM |
|
Yes Python is generally portable but the packaging can vary; as in this case. You should be able to use the Windows executable that you can download from https://electrum.org/#download.
|
|
|
|
Lionel
|
|
August 04, 2017, 05:45:37 PM |
|
I have it for Windows but it doesn't have the daemon AFAIK, while Bitcoin Core has the daemon on Windows as well. I need to call the wallet via JSON-RPC from my scripts, so i need the daemon
|
|
|
|
takinbo
Newbie
Offline
Activity: 18
Merit: 0
|
|
August 04, 2017, 06:34:54 PM |
|
If you are able to locate the directory (from the command prompt) where Electrum is installed, you can run the commands to start it in daemon mode. Unfortunately, I'm unable to give you specific instructions on how to do that.
|
|
|
|
|
Green Lantern
Newbie
Offline
Activity: 322
Merit: 0
|
|
October 08, 2017, 05:29:34 PM |
|
I tried once to run 2 electrum servers (for different cryptocurrencies) on the same vps. But it didn't allow me to run second server. Is there a way to run two (and more) electrum servers on same machine?
|
|
|
|
flowjob
Member
Offline
Activity: 130
Merit: 11
|
|
October 09, 2017, 01:28:10 AM |
|
I tried once to run 2 electrum servers (for different cryptocurrencies) on the same vps. But it didn't allow me to run second server. Is there a way to run two (and more) electrum servers on same machine?
I run 20 electrum servers on one machine without problem. You have to make different configs for each coin and start one instance of electrumx per coin. Here is a sample script to set one up: https://github.com/SuperNETorg/electrumx/blob/master/docs/HOWTO_SuperNET.txt.
|
|
|
|
Green Lantern
Newbie
Offline
Activity: 322
Merit: 0
|
|
October 09, 2017, 10:13:15 AM |
|
I tried once to run 2 electrum servers (for different cryptocurrencies) on the same vps. But it didn't allow me to run second server. Is there a way to run two (and more) electrum servers on same machine?
I run 20 electrum servers on one machine without problem. You have to make different configs for each coin and start one instance of electrumx per coin. Here is a sample script to set one up: https://github.com/SuperNETorg/electrumx/blob/master/docs/HOWTO_SuperNET.txt. This is electrumx. I meant previous electrum server (github.com/spesmilo/electrum-server)
|
|
|
|
mmortal03
Legendary
Offline
Activity: 1762
Merit: 1011
|
|
October 09, 2017, 06:33:13 PM |
|
I tried once to run 2 electrum servers (for different cryptocurrencies) on the same vps. But it didn't allow me to run second server. Is there a way to run two (and more) electrum servers on same machine?
I run 20 electrum servers on one machine without problem. You have to make different configs for each coin and start one instance of electrumx per coin. Here is a sample script to set one up: https://github.com/SuperNETorg/electrumx/blob/master/docs/HOWTO_SuperNET.txt. This is electrumx. I meant previous electrum server (github.com/spesmilo/electrum-server) My understanding is that even the electrum server creator suggests that you use electrumx now.
|
|
|
|
Green Lantern
Newbie
Offline
Activity: 322
Merit: 0
|
|
October 09, 2017, 09:36:51 PM |
|
I tried once to run 2 electrum servers (for different cryptocurrencies) on the same vps. But it didn't allow me to run second server. Is there a way to run two (and more) electrum servers on same machine?
I run 20 electrum servers on one machine without problem. You have to make different configs for each coin and start one instance of electrumx per coin. Here is a sample script to set one up: https://github.com/SuperNETorg/electrumx/blob/master/docs/HOWTO_SuperNET.txt. This is electrumx. I meant previous electrum server (github.com/spesmilo/electrum-server) My understanding is that even the electrum server creator suggests that you use electrumx now. flowjob is the electrum server creator?
|
|
|
|
flowjob
Member
Offline
Activity: 130
Merit: 11
|
|
October 19, 2017, 10:42:01 PM |
|
I tried once to run 2 electrum servers (for different cryptocurrencies) on the same vps. But it didn't allow me to run second server. Is there a way to run two (and more) electrum servers on same machine?
I run 20 electrum servers on one machine without problem. You have to make different configs for each coin and start one instance of electrumx per coin. Here is a sample script to set one up: https://github.com/SuperNETorg/electrumx/blob/master/docs/HOWTO_SuperNET.txt. This is electrumx. I meant previous electrum server (github.com/spesmilo/electrum-server) My understanding is that even the electrum server creator suggests that you use electrumx now. flowjob is the electrum server creator? No, i am just running a lot of electrum-servers to use them in BarterDEX. The official repo is this one: https://github.com/kyuupichan/electrumx
|
|
|
|
aetherist
Newbie
Offline
Activity: 21
Merit: 0
|
|
December 15, 2017, 01:24:43 AM |
|
I have reinstalled Ubuntu 16 LTS. Previously I had ElectrumX working, but with unexplained downtime and unreliable fee estimates. Hence I reinstalled Ubuntu server. I have reinstalled Ubuntu a few times after failing. At one point, I symbolically linked /usr/bin/python3 to /usr/bin/python3.6 which broke the package management. Now I have /usr/local/bin/python3 -> /usr/bin/python3.6 which seems to work; although, I have an error which may or may not be related to package management/dependencies:
Dec 14 16:26:05 icarus electrumx_server.py[2534]: Traceback (most recent call last): ...
Dec 14 16:26:05 icarus electrumx_server.py[2534]: File "/usr/local/lib/python3.6/dist-packages/electrumx-1.2.1-py3.6.egg/server/block_processor.py", line 148, in __init__ Dec 14 16:26:05 icarus electrumx_server.py[2534]: self.cancel_history_compaction() Dec 14 16:26:05 icarus electrumx_server.py[2534]: AttributeError: 'BlockProcessor' object has no attribute 'cancel_history_compaction'
I have no clue whether the issue is with dependencies such as leveldb or something else entirely.
|
|
|
|
flowjob
Member
Offline
Activity: 130
Merit: 11
|
|
December 16, 2017, 04:33:42 PM |
|
I would not use ubuntu on servers, use debian instead, you will have much less trouble with it. python3.6 is available in debian https://packages.debian.org/buster/python3.6, so you can install electrumx directly with "sudo python3.6 setup.py install"
|
|
|
|
aetherist
Newbie
Offline
Activity: 21
Merit: 0
|
|
December 16, 2017, 09:46:32 PM |
|
In my last iteration of reinstalling, I had commented the following and and replaced it with the sudo installation. #ExecStart=/home/electrum/electrumx/electrumx_server.py ExecStart=/usr/local/bin/electrumx_server.py
As a rough postmortem, I got so used to appending the instructions with tweaks such as "pip3" instead of "pip" and "sudo apt-get install" instead of "apt-get install" I lost sight of the fact the in order to contain the privileges of user electrum you want to make sure electrum only starts files/processes which are not owned by root. I am actually still a little fuzzy how the user electrum could even access a file in /usr (?inherentence from systemctl?). Therefore, "python3.6 setup.py install" should work for anyone else attempting to install on Ubuntu, but you will probably need the symbolic link from my last post. I don't know what the error was that caused my to comment the line above was, but my guess is that I would not of seen it on debian (if python3.6 baked in).
|
|
|
|
wandyer
Newbie
Offline
Activity: 1
Merit: 0
|
|
January 02, 2018, 08:59:44 PM |
|
I need some help understanding the whole concept of Bitcoin Core + Electrumx.
I have a full node running and electrumx installed, but still don't quite get how I'm going to access it and what are the API calls available to me.
If someone could take their time and contact me privately so it doesn't fill up this thread.
Thanks in advance.
|
|
|
|
aetherist
Newbie
Offline
Activity: 21
Merit: 0
|
|
January 03, 2018, 05:11:45 PM |
|
I'm going to reply on the thread, so that the next person that sees your question knows that it has been answered. Also, someone else might have the same question. Firstly, I like to break up a large problem into smaller ones. So, in script kiddie fashion, I copy and paste one of these scripts https://en.bitcoin.it/wiki/API_reference_(JSON-RPC) in order to make sure that you can communicate between processes. A few things can go wrong here. I've seen a version update break the (inter-process communication) IPC in both Zcash and a Bitcoin Unlimited. It may have been from the same pull which was not properly vetted or separate pulls. Make sure your username and password match. If you use Perl, it may have issues parsing some characters in the password, so omit or replace any suspect characters. JM required walletnotify=curl -sI --connect-timeout 1 http://localhost:62602/walletnotify?%salertnotify=curl -sI --connect-timeout 1 http://localhost:62602/alertnotify?%sI'm not sure if JMCS does, but I use them. I think that should get you in the right direction.
|
|
|
|
GalaxyCash
|
|
March 28, 2018, 06:05:29 PM Last edit: March 29, 2018, 01:59:58 AM by GalaxyCash |
|
Hi, i setup electrum server for my coin on Ubuntu 16.04, uses latest electrum from repository, not electrumx
wallet client stuck on synchronization on server in log:
[29/03/2018-01:54:18] SSL *.*.*.*:60424 2 3.1.2 [29/03/2018-01:54:19] SSL *.*.*.*:60426 1 3.1.2 [29/03/2018-01:55:17] error: no processor for mempool [29/03/2018-01:56:17] error: no processor for mempool [29/03/2018-01:57:17] error: no processor for mempool
|
|
|
|
GalaxyCash
|
|
March 29, 2018, 08:39:06 PM |
|
5000 GCH bounty for build Electrum server and client(windows & linux) with sources for GalaxyCash. PM me in discord. https://discord.gg/qCJtFua
|
|
|
|
aetherist
Newbie
Offline
Activity: 21
Merit: 0
|
|
August 17, 2018, 10:18:52 PM |
|
Aug 17 13:51:37 icarus electrumx_server[1984]: INFO:ElectrumX:[1202] SSL 92.156.243.66:56970, 2 total Aug 17 13:52:28 icarus electrumx_server[1984]: INFO:ElectrumX:[1203] SSL 190.91.37.177:65412, 2 total Aug 17 13:53:18 icarus electrumx_server[1984]: INFO:ElectrumX:[1204] SSL 190.91.37.177:49218, 2 total Aug 17 13:54:14 icarus electrumx_server[1984]: INFO:ElectrumX:[1205] SSL 190.91.37.177:49350, 2 total Aug 17 13:55:24 icarus electrumx_server[1984]: INFO:ElectrumX:[1206] SSL 190.91.37.177:49538, 2 total Aug 17 13:56:28 icarus electrumx_server[1984]: INFO:ElectrumX:[1207] SSL 190.91.37.177:49654, 2 total Aug 17 13:57:30 icarus electrumx_server[1984]: INFO:ElectrumX:[1208] SSL 190.91.37.177:49846, 2 total Aug 17 13:58:15 icarus electrumx_server[1984]: INFO:ElectrumX:[1209] SSL 190.91.37.177:49966, 2 total Aug 17 13:59:33 icarus electrumx_server[1984]: INFO:ElectrumX:[1210] SSL 190.91.37.177:50190, 2 total Aug 17 14:00:08 icarus electrumx_server[1984]: INFO:ElectrumX:[1211] SSL 190.91.37.177:50260, 2 total Aug 17 14:01:04 icarus electrumx_server[1984]: INFO:ElectrumX:[1212] SSL 217.182.138.142:41128, 2 total Aug 17 14:01:51 icarus electrumx_server[1984]: INFO:ElectrumX:[1213] SSL 185.128.27.99:56548, 3 total Aug 17 14:31:03 icarus electrumx_server[1984]: INFO:ElectrumX:[1214] SSL 217.182.138.142:34996, 2 total Aug 17 14:36:58 icarus electrumx_server[1984]: INFO:ElectrumX:[1215] SSL 71.204.162.202:58830, 3 total Aug 17 14:39:28 icarus electrumx_server[1984]: INFO:ElectrumX:[1216] SSL 73.32.220.70:57214, 3 total
I try to connect to my server but cannot. From looking at the logs, it appeared as though my max connections somehow got lowered to 2 or 3, but then after looking at the logs more closely it looks like ElectrumX serves mostly 190.91.37.177 . I did upgrade to LEDE from a small business router recently. However, I would think if my IPtables config were the issue that I would have trouble SSHing into Icarus (my server). Initially, I had trouble SSHing into Icarus but after reconfiguring IPtables I could SSH into Icarus. About the same time that SSH started working, my AWS server notifications notified me that my server was up. So, apparently Icarus serves watching only wallets.
I have no clue why my SSL connections are not on 50002; I plan to tweak IPtables. If that does not work then I'll upgrade to Ubuntu 18, so that I will be working with a fresh install. If that doesn't fix it. I will reset my router config.
|
|
|
|
|