Bitcoin Forum
December 08, 2016, 08:18:40 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 »  All
  Print  
Author Topic: [ANN] Eloipool - FAST Python3 pool server software - GBT/stratum/dyntarget/proxy  (Read 96755 times)
bitzcointalk
Member
**
Offline Offline

Activity: 114

My avatar is in the shop


View Profile
September 21, 2014, 07:32:39 PM
 #301

I changed everything in networkserver.py from AF_INET6 to AF_INET.
That error seems to be gone, but my miners cannot connect?!
(yes I also changed the config file removing the ::ffff:)

If there another log I should look at?
The process is indeed running, the miners are saying connection refused.


Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
bitzcointalk
Member
**
Offline Offline

Activity: 114

My avatar is in the shop


View Profile
September 21, 2014, 08:28:22 PM
 #302

Owh, I also had to fix /home/pi/eloipool/bitcoin/node.py for the NET6 issue.

Okay, almost there. I have another error, I think it has to do with configuration (trying to get this to work for LiteCoin).

2014-09-21 20:23:58,032 merkleMaker     CRITICAL        Traceback (most recent call last):
  File "/home/pi/eloipool/merklemaker.py", line 694, in run
    self.merkleMaker_I()
  File "/home/pi/eloipool/merklemaker.py", line 684, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/pi/eloipool/merklemaker.py", line 650, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/pi/eloipool/merklemaker.py", line 550, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/pi/eloipool/merklemaker.py", line 513, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/home/pi/eloipool/merklemaker.py", line 479, in _updateMerkleTree_fromTS
    newMerkleTree = self._ProcessGBT(MP, TS)
  File "/home/pi/eloipool/merklemaker.py", line 379, in _ProcessGBT
    cbtxn = self.makeCoinbaseTxn(MP['coinbasevalue'], prevBlockHex = MP['previousblockhash'])
  File "eloipool.py", line 131, in makeCoinbaseTxn
    pkScript = BitcoinScript.toAddress(config.TrackerAddr)
  File "/home/pi/eloipool/bitcoin/script.py", line 45, in toAddress
    raise ValueError('invalid address version')
ValueError: invalid address version

bitzcointalk
Member
**
Offline Offline

Activity: 114

My avatar is in the shop


View Profile
September 21, 2014, 10:54:37 PM
 #303

Owh, okay I found another version of the pool with slight modifications containing the scripts I need for scrypt.
(pun intended)  Grin
Luke-Jr
Legendary
*
Offline Offline

Activity: 2086



View Profile
September 22, 2014, 05:17:56 AM
 #304

Shocked  Shocked  Shocked

I am hopefully on my last error but, since I have not seen any of the errors above this line, I am skeptical this will be the end-all.

Hello, I am seeing a bug, tried changing my hostname already, that was not the cause.

2014-09-21 19:13:26,818 SocketListener  ERROR   ('127.0.0.1', 8338)
Traceback (most recent call last):
  File "/home/pi/eloipool/util.py", line 144, in tryErr
    return func(*a, **kw)
  File "/home/pi/eloipool/networkserver.py", line 262, in setup_socket
    sock = self._makebind(server_address)
  File "/home/pi/eloipool/networkserver.py", line 253, in _makebind
    return self._makebind_py(*a, **ka)
  File "/home/pi/eloipool/networkserver.py", line 229, in _makebind_py
    sock = socket.socket(self.address_family, socket.SOCK_STREAM)
  File "/usr/lib/python3.2/socket.py", line 94, in __init__
    _socket.socket.__init__(self, family, type, proto, fileno)
socket.error: [Errno 97] Address family not supported by protocol

 Huh  Huh  Huh


Eloipool only supports IPv6.
If you want to use obsolete IPv4, you will need an OS that supports IPv4 connections on IPv6 sockets (like Linux) and configure it to bind on the appropriate iPv6 address (as in the example config).

bitzcointalk
Member
**
Offline Offline

Activity: 114

My avatar is in the shop


View Profile
September 22, 2014, 05:37:33 PM
 #305

I managed to get it to work by replacing all INET6 with INET.
I am good at this point.
I have a new error, not sure if it is component configuration related or not...

I found a scrypt version of eloipool and im trying to merge-mine litecoin and dogecoin.
I think the configuration is...


Miner -> Eloipool -> merged-mine-proxy -> litecoin wallet + dogecoin wallet.

Please confirm if I have this conceptually correct.
I think the setworkaux is missing in the wallet, so, I suspect I need to modify the wallet code?
I am confused because I saw setworkaux in some of the pool code to as though my componets above might not be correct.
Please confirm.

                Thank you in advance  Grin

 Shocked
bitzcointalk
Member
**
Offline Offline

Activity: 114

My avatar is in the shop


View Profile
September 22, 2014, 08:11:21 PM
 #306

I started at the beginning of the forum and found my answer he he he  Grin

I'll go ahead and re-post it here:

Thanks Luke!

client miner <--> eloipool <--> bitcoind
                     |-> merged mining proxy (MMP) <--> namecoind


merged-mining-proxy:
python merged-mining-proxy  -w 8330 -p http://ssecreteloipool:222@127.0.0.1:9947/ -x http://namecoinrpc:manecoinrpcpass@localhost:9377/

eloipool config.py:
# Secret username allowed to use setworkaux
SecretUser = "ssecreteloipool"

# Addresses to listen on for JSON-RPC GBT/getwork server
JSONRPCAddresses = (
        ('', 9947),
)

GotWorkURI = "http://mergedproxyuser:mergedproxypass@127.0.0.1:8330/"

namecoin config:
rpcuser=namecoinrpc
rpcpassword=manecoinrpcpass
rpcport=9377

and user miner program connect to 9947

Attempting the above, stand by......


bitzcointalk
Member
**
Offline Offline

Activity: 114

My avatar is in the shop


View Profile
September 23, 2014, 12:05:38 AM
 #307

Still working on it... (Looks now like the target was set so high I always find blocks =/ so, no worries)
More clues:

Posting "method": "gotwork" i get:

<html>
  <head><title>404 - No Such Resource</title></head>
  <body>
    <h1>No Such Resource</h1>
    <p>No such child resource.</p>
  </body>
</html>

trying to debug it.
I'm guessing it means I did something odd.
I'm using Python3.2 and a couple of these script seems to have needed a conversion from 2to3 via the 2to3 app.
Perhaps I should do that to all of them...

And on we trudge.
bitzcointalk
Member
**
Offline Offline

Activity: 114

My avatar is in the shop


View Profile
September 23, 2014, 02:37:10 AM
 #308

MMP uses Twisted library, which seems to be having an issue.
I still keep getting the following when eloipool sends gotwork to the MMP.

<html>
  <head><title>404 - No Such Resource</title></head>
  <body>
    <h1>No Such Resource</h1>
    <p>No such child resource.</p>
  </body>
</html>

Still debugging, any suggestions?
Using Python3.2
Twisted 14.0.2
NOOBS RPI
Not using twistd dont think I need it.

 Huh

And on we trudge.
bitzcointalk
Member
**
Offline Offline

Activity: 114

My avatar is in the shop


View Profile
September 23, 2014, 06:44:33 PM
 #309

Ah! I just had to restart after all the installations.
Owh, Wait, But what do we have here.... Another error  Roll Eyes
Communications between the MMP and Eloipool are broken, I think the script has serious issues in Python3.
Its going to take week to sort this out since in know precisely nothing about Python  Sad
Sure, just buy some hardware, plug it in, hash away, and bank some crytpo coins, humff.

I guess what I really need is a working tested Python 3.2 or 3.x version of MMP so I can merge in the changes.
bitzcointalk
Member
**
Offline Offline

Activity: 114

My avatar is in the shop


View Profile
September 24, 2014, 12:48:34 AM
 #310

Its the Unicode issue, Twisted library is a pain to use in 3.x since python changed default handling.
If I leave out the MerkleTree import, then I can use Python2.7.
Please advise if the MMP absolutely needs the MerkleTree import.  Huh  Huh  Huh

Wait, wait, looked at the code, it says only 1 subchain will work, interesting...
So, really do have a delema here... I have to make 1/2 work in v3 which I have already managed, and 1/2 work in v2 for MMP.

And on we trudge.
bitzcointalk
Member
**
Offline Offline

Activity: 114

My avatar is in the shop


View Profile
September 24, 2014, 07:50:10 PM
 #311

Ha! That worked... some massaging but, I got it  Grin
Now to test it  Wink

And on we trudge.
Sergio_Demian_Lerner
Hero Member
*****
Offline Offline

Activity: 534


View Profile WWW
September 30, 2014, 07:23:59 PM
 #312

I've setup a local stratum server using eloipool. I'm trying to test the stratum server manually using either telnet or curl as in:

curl --data-binary '{"id": 1, "method": "mining.subscribe", "params": []}'  -H 'content-type:text/plain;' http://myuser:mypassword@127.0.0.1:3334/

The connection is closed as soon as the first line of the http headers is sent (usually POST) (curl prints: curl: (52) Empty reply from server)

Any idea of what's happening?

Luke-Jr
Legendary
*
Offline Offline

Activity: 2086



View Profile
September 30, 2014, 07:36:17 PM
 #313

I've setup a local stratum server using eloipool. I'm trying to test the stratum server manually using either telnet or curl as in:

curl --data-binary '{"id": 1, "method": "mining.subscribe", "params": []}'  -H 'content-type:text/plain;' http://myuser:mypassword@127.0.0.1:3334/

The connection is closed as soon as the first line of the http headers is sent (usually POST) (curl prints: curl: (52) Empty reply from server)

Any idea of what's happening?
Eloipool does not support StratumMP over HTTP (nor does any other StratumMP server AFAIK), only GBT and getwork.
For StratumMP, you need to connect over a raw TCP stream.

Sergio_Demian_Lerner
Hero Member
*****
Offline Offline

Activity: 534


View Profile WWW
September 30, 2014, 08:07:54 PM
 #314

Thank you very much Luke.
knowndragon
Newbie
*
Offline Offline

Activity: 28


View Profile
January 16, 2015, 08:29:11 AM
 #315

Luke you probably don't remember me but you help teach me to overclock on a phenom II well push it further with memory timings. I am gonna try this out. Subbing gonna read all first but hopefully it sounds what I am looking for.
Agamenon
Newbie
*
Offline Offline

Activity: 29


View Profile
February 12, 2015, 08:57:06 PM
 #316

Luke, sorry, I got stuck here-->

Quote
jsonrpc_getwork WARNING Error importing 'midstate' module; work will not provide midstates
>>> Traceback (most recent call last):
  File "./eloipool.py", line 957, in <module>
    MM.start()
  File "/home/pool/eloipool/merklemaker.py", line 699, in start
    self._prepare()
  File "/home/pool/eloipool/merklemaker.py", line 121, in _prepare
    TS['access'] = URI2Access(TS['uri'])
  File "/home/pool/eloipool/merklemaker.py", line 111, in URI2Access
    access = jsonrpc.ServiceProxy(uri)
AttributeError: 'module' object has no attribute 'ServiceProxy'

Any help pls?  Huh
SargeR33
Member
**
Offline Offline

Activity: 112

★Bitin.io★ - Instant Exchange


View Profile
February 14, 2015, 04:56:05 AM
 #317

Although I have never done any of this before and have no idea what prerequisites are needed, I will attempt to give this a try on my linux system. I'm trying to setup a private pool for my machines to run off.

tuaris
Hero Member
*****
Offline Offline

Activity: 719



View Profile WWW
March 09, 2015, 04:12:32 PM
 #318

Is it possible to submit a block without using an JSON-RPC call to bitcoind?  Is that what bitcoin/node.py is for?
Reason I ask is because I constantly experience an issue that is similar to this: https://github.com/bitcoin/bitcoin/issues/2889

NginUS
Full Member
***
Offline Offline

Activity: 183


View Profile
September 27, 2015, 07:18:45 AM
 #319

0.045 BTC Bounty- Help me get my eloipool running right so people can connect & fees are deducted


Hi,

I got bitcoind & eloipool up & running on my VPS, but I have no mining gear with which to test it- bfgminer returns an error about 'no servers to connect to' when I run it from my desktop using the public IP address of the VPS.

Bounty will be paid to anyone who can sort out the configuration such that bitcoin miners can connect to the pool & pool fees are deducted properly.

It could be configured properly now, but I can't tell without connecting to it myself to see. Either way, I'd like you to record the screen or something to prove its working right, so I can pay you knowing I'm not getting scammed.

PM me if interested.

Thanks,

-N
hodedowe
Sr. Member
****
Offline Offline

Activity: 308


View Profile
October 19, 2015, 08:45:40 PM
 #320

I just got this running and mining is working (finally!) but I'm receiving an error in my log file, similar to another user. If a fix was posted I didn't see it.

Does anyone with more python experience have an idea of where to troubleshoot?

Code:
2015-10-19 15:05:54,195 BitcoinRPC DEBUG -45550-> getblocktemplate [{"capabilities": ["coinbasevalue", "coinbase/append", "coinbase", "generation", "time", "transactions/remove", "prevblock"]}]
2015-10-19 15:05:54,216 BitcoinRPC DEBUG -45551-> getmemorypool [{"tx": "obj", "capabilities": ["coinbasevalue", "coinbase/append", "coinbase", "generation", "time", "transactions/remove", "prevblock"]}]
2015-10-19 15:05:54,216 BitcoinRPC DEBUG -45552-> getmemorypool []
2015-10-19 15:05:54,218 merkleMaker CRITICAL Traceback (most recent call last):
  File "/eloipool/merklemaker.py", line 704, in run
    self.merkleMaker_I()
  File "/eloipool/merklemaker.py", line 694, in merkleMaker_I
    self.merkleMaker_II()
  File "/eloipool/merklemaker.py", line 660, in merkleMaker_II
    return self._updateMerkleTree()
  File "/eloipool/merklemaker.py", line 560, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/eloipool/merklemaker.py", line 523, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/eloipool/merklemaker.py", line 484, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/eloipool/merklemaker.py", line 332, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/eloipool/bitcoinrpc/authproxy.py", line 134, in __call__
    'Content-type': 'application/json'})
  File "/usr/lib/python3.2/http/client.py", line 971, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.2/http/client.py", line 999, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.2/http/client.py", line 854, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent

Solo mining is alive and profitable!
Helped? Thanks! 1CXRFh4bDVFBsUzoHMMDbTMPcBP14RUTus
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!