Bitcoin Forum
December 06, 2016, 08:26:21 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   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 96725 times)
jeppe
Sr. Member
****
Offline Offline

Activity: 336


View Profile
March 20, 2014, 08:41:42 PM
 #281

Is it possible to get this working for a ppc pool??
Thanks,
JT
1481012781
Hero Member
*
Offline Offline

Posts: 1481012781

View Profile Personal Message (Offline)

Ignore
1481012781
Reply with quote  #2

1481012781
Report to moderator
1481012781
Hero Member
*
Offline Offline

Posts: 1481012781

View Profile Personal Message (Offline)

Ignore
1481012781
Reply with quote  #2

1481012781
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
SolarWindMiningCompany
Hero Member
*****
Offline Offline

Activity: 590



View Profile WWW
March 21, 2014, 06:49:54 PM
 #282

Hi Luke, everyone,

With individual miners using their own miningware at home becoming less feasible with every rise in the difficulty level, more and more people are moving to cloudmining platforms. This has the effect of centralizing Bitcoins Network, something that those of us who care more about Bitcoins potential than we care about just making a profit, should have serious concerns about. This issue was one of the main reasons that I founded SWMC. I am always been concerned over threats to Bitcoins Decentralized Network. SWMC is in the process of creating a Hashing Exchange and to help solve the potential threat to Bitcoins Network, SWMC will be offering its users the choice of pointing their mining hashes anywhere they want, or even solo mine if they wish.

This is one of the solutions that I came up with was to address this potential threat using SWMC's Hashing Exchange:

Use a "Master Mining Pool Server" that acts not only as a mining pool, but as a router to other mining pools (including p2p mining pools.)  In order to allocate hashing power owned by a SWMC Hashing Exchange users to any mining pool that they request (an essential element to making this work), the "Master Mining Pool Server" would need to dynamically divide the total hashing power available to it, into as many little chunks as possible and also dynamically direct/redirect the hashing power to the requested pool. Solo mining could be achieved by creating a "Personal Mining Pool" for each user and then have the Master Mining Pool Server direct/redirect the hashing power to their Personal Mining Pool. The Personal Mining Pool owner could also share their personal mining pool with their friends or partners. Personal mining pools could easily be used and would be perfect for crowdfunding projects. It would be a nice way to create a "Kickstarter" like service using the hashing power to fund the projects! Executive Decision: SWMC will make it easy to create and donate to Crowdfunding Projects and this feature will be built into SWMC's Hashing Exchange platform.  (I am never happier than when I think of a great idea that will help people achieve their dreams. Smiley)

So here is the question, would it be feasible to modify Eloipool to serve as a "Master Mining Pool Server," or would it be better to create a modular system that used individual instances of "Direct/Redirect Hashing Moduals"  (or a mixture of both) to feed work to the individual Wasps? (I am a member of The Wasp Project Collective and SWMC will be using our design to populate SWMC's mining farm.)

I have offered 25% of all trading fees from SWMC's Hashing Exchange as payment to anyone who contributes to the development of SWMC's Hashing Exchange. Too date, as I have found someone to design the website and exchange, there is only 10% still available. Since having something like the "Master Mining Pool Server" that I have described is essential to the success of my vision for the Hashing Exchange, I am willing to allocate the rest of the 10% remaining to anyone willing to help SWMC build this system. I will also commit to making all the code for the Hashing Exchange and "Master Mining Pool Server" available with an open source license, once SWMC has been operating successfully for 6 months (just to give SWMC a chance to establish itself before going open source.)
Luke-Jr
Legendary
*
Offline Offline

Activity: 2086



View Profile
March 21, 2014, 07:09:29 PM
 #283

That sounds even more centralised than mining already is.

Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
March 22, 2014, 01:58:50 AM
 #284

What's this got to do with Eloipool?

Mining is already centralized, there's only about 12 miners on the network at the moment.  Cloud hashing farms will help to decentralize the currently ultra-centralized mining.  If you are mining into a pool, you aren't mining.  You are contributing work to the pool, who is mining; The pool is the only miner of the thousands of people using the pool.  If you aren't creating blocks, you aren't mining, either.  So "contributing" your CPU hashing power to "help support the network" isn't doing anything for the network, you're just consuming power. 

All of this should be split into a different thread, though.  Maybe a mod can split it off, I'll be happy to continue the discussion in a thread that's not the Eloipool thread.


If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
vmfx
Newbie
*
Offline Offline

Activity: 27

Set the world on fire


View Profile WWW
March 27, 2014, 02:31:22 PM
 #285

Got eloipool up and running perfectly, wicked cool. mad respect to Luke

just checking now to see if there are any web based front ends for it ? i can only find a old thread about wizstats...


Visit the VMFX Bitcoin Index http://www.vmfx.com
Polyatomic
Sr. Member
****
Offline Offline

Activity: 256


View Profile
April 27, 2014, 10:23:22 AM
 #286

Running on Ubuntu Saucy , cloned from gittorious.

Code:
2014-04-27 19:03:26,247 JSONRPCServer INFO Nobody to longpoll
2014-04-27 19:03:26,893 JSONRPCServer INFO Nobody to longpoll
2014-04-27 19:04:53,349 newBlockNotification INFO Received new block notification
2014-04-27 19:04:53,488 merkleMaker INFO New block: 000000000000000064a6ac54154247706dca44c4e697e164d87fdc47fe1bc570 (height: 297943; bits: 19009d8c)
2014-04-27 19:04:53,489 JSONRPCServer INFO Nobody to longpoll
2014-04-27 19:04:54,111 JSONRPCServer INFO Nobody to longpoll
2014-04-27 19:06:47,871 newBlockNotification INFO Received new block notification
2014-04-27 19:06:48,038 merkleMaker INFO New block: 00000000000000002bc6d22a6b1ab8a40f7067d3fe78f01c2741ec42ca6074c4 (height: 297944; bits: 19009d8c)
2014-04-27 19:06:48,039 JSONRPCServer INFO Nobody to longpoll
2014-04-27 19:06:48,611 JSONRPCServer INFO Nobody to longpoll

AsicA , same host as Eloipool, is getting alot of these.. #using bfgminer fixed this for now until I find out why this happens with cgminer.
Code:
Accepted untracked stratum share from pool 0
 [2014-04-27 19:23:30] Accepted untracked stratum share from pool 0
 [2014-04-27 19:24:31] Accepted untracked stratum share from pool 0
 [2014-04-27 19:24:47] Accepted untracked stratum share from pool 0
]

AsicB is on another host pointed at Eloipool and is running good.
Code:
Accepted 12482944 Diff 3.58K/256
 [2014-04-27 09:55:18] Accepted 569fc31b Diff 757/256
 [2014-04-27 09:55:58] Accepted ed8fa478 Diff 276/256
 [2014-04-27 09:56:01] Accepted dc4a95b5 Diff 297/256
 [2014-04-27 09:56:06] Accepted a09251c8 Diff 408/256
 [2014-04-27 09:56:06] Accepted 1b0e730e Diff 2.42K/256
 [2014-04-27 09:56:07] Accepted 4535354a Diff 947/256
 [2014-04-27 09:56:08] Accepted b5311db9 Diff 362/256
 [2014-04-27 09:56:36] Accepted d8740099 Diff 303/256
 [2014-04-27 09:56:37] Accepted 437c30d3 Diff 971/256
 [2014-04-27 09:56:53] Stratum from pool 0 detected new block
 [2014-04-27 09:57:06] Accepted ea4e54fe Diff 280/256
 [2014-04-27 09:57:44] Accepted 5e8c0424 Diff 693/256
 [2014-04-27 09:57:46] Accepted 1d9e5e55 Diff 2.21K/256


Exellent software man. I've set this up somewhere out of sight out of mind, maybe i'll get lucky.
tom19990101
Newbie
*
Offline Offline

Activity: 3


View Profile
May 12, 2014, 02:04:58 AM
 #287

Hi Luke, everyone,

Eloipool have what kind of attack, how to prevent?


The following information properly?
2014-05-10 19:48:50,568 StratumServer   ERROR   Traceback (most recent call last):
  File "/home/tools/eloipool/networkserver.py", line 449, in serve_forever
    o.handle_read()
  File "/home/tools/eloipool/networkserver.py", line 62, in handle_read
    self.handle_readbuf()
  File "/home/tools/eloipool/networkserver.py", line 114, in handle_readbuf
    self.found_terminator()
  File "/home/tools/eloipool/stratumserver.py", line 60, in found_terminator
    inbuf = b"".join(self.incoming).decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0x87 in position 8: ordinal not in range(128)

2014-05-10 19:48:50,569 StratumHandler  DEBUG   Traceback (most recent call last):
  File "/home/tools/eloipool/networkserver.py", line 449, in serve_forever
    o.handle_read()
  File "/home/tools/eloipool/networkserver.py", line 62, in handle_read
    self.handle_readbuf()
  File "/home/tools/eloipool/networkserver.py", line 114, in handle_readbuf
    self.found_terminator()
  File "/home/tools/eloipool/stratumserver.py", line 60, in found_terminator
    inbuf = b"".join(self.incoming).decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0x87 in position 8: ordinal not in range(128)




thks.
Luke-Jr
Legendary
*
Offline Offline

Activity: 2086



View Profile
May 12, 2014, 05:55:26 AM
 #288

Hi Luke, everyone,

Eloipool have what kind of attack, how to prevent?


The following information properly?
2014-05-10 19:48:50,568 StratumServer   ERROR   Traceback (most recent call last):
  File "/home/tools/eloipool/networkserver.py", line 449, in serve_forever
    o.handle_read()
  File "/home/tools/eloipool/networkserver.py", line 62, in handle_read
    self.handle_readbuf()
  File "/home/tools/eloipool/networkserver.py", line 114, in handle_readbuf
    self.found_terminator()
  File "/home/tools/eloipool/stratumserver.py", line 60, in found_terminator
    inbuf = b"".join(self.incoming).decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0x87 in position 8: ordinal not in range(128)

2014-05-10 19:48:50,569 StratumHandler  DEBUG   Traceback (most recent call last):
  File "/home/tools/eloipool/networkserver.py", line 449, in serve_forever
    o.handle_read()
  File "/home/tools/eloipool/networkserver.py", line 62, in handle_read
    self.handle_readbuf()
  File "/home/tools/eloipool/networkserver.py", line 114, in handle_readbuf
    self.found_terminator()
  File "/home/tools/eloipool/stratumserver.py", line 60, in found_terminator
    inbuf = b"".join(self.incoming).decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0x87 in position 8: ordinal not in range(128)
Shouldn't affect anything.

7queue
Full Member
***
Offline Offline

Activity: 170


View Profile
May 15, 2014, 02:25:18 AM
 #289

Noticed this for Python 3.4,

    class http.client.HTTPConnection(host, port=None, [timeout, ]source_address=None)

Changed in version 3.4: The strict parameter was removed.

    https://docs.python.org/3.4/library/http.client.html


python-bitcoinrpc/bitcoinrpc/authproxy.py needs adjusting.

8 )

8 )
tom19990101
Newbie
*
Offline Offline

Activity: 3


View Profile
May 27, 2014, 04:30:25 AM
 #290

Hi Luke,

Under the different hashrate, how to optimize config.Py.

For example: 40T, 200T, 500T, 1000T, how should adjust.





thks.
DISSIDIA
Newbie
*
Offline Offline

Activity: 3


View Profile
June 09, 2014, 02:12:02 AM
 #291

Hi,Luke. are there any api docs about Eloipool?  Grin
Luke-Jr
Legendary
*
Offline Offline

Activity: 2086



View Profile
June 09, 2014, 02:30:24 AM
 #292

Hi,Luke. are there any api docs about Eloipool?  Grin
There's no API, so no.

bgibso01
Hero Member
*****
Offline Offline

Activity: 777


View Profile
June 11, 2014, 01:22:21 AM
 #293

Hi,Luke. are there any api docs about Eloipool?  Grin
There's no API, so no.

Luke-Jr,

By chance would you know off the top of your head what could be causing my target issue posted a couple above?

Update: Nevermind, found out the var diff part was not in the master that I pulled.  Works like a charm now.  Big thanks to Polyatomic for pointing me in the right direction!
guruvan
Hero Member
*****
Offline Offline

Activity: 518

ShastaFarEye Prospectors mazaclub & mazacha.in


View Profile WWW
July 14, 2014, 03:33:20 PM
 #294

Luke-Jr, we've been running eloiopol to connect a pool to eligius, quite successfully (Thanks!) and have a few questions:

1) To connect to an upstream pool (ie eligius) the loop branch is required
    - If I understand everything, I need coinbase/append and submit/coinbase to do this, and those don't appear to be in the main branch, correct?
2) I also need the latest version of your bitcoind, eligius branch? (it's what I am running now)
3) when using this branch, so I need or want "BlockSubsissions" section, or just "UpstreamURI"
    - and if I need/want it, mining on upstream pool like eliguis, whose servers should be here?

- FWIW, we're using your suggested commit for bitcoinrpc, and mostly everything else you suggest, except gentoo (I feel like I might have shot myself in the foot here!) eloipool is running in a fairly stock ubuntu14.04, with python3.2 and setup in virtualenv.

The issues I've seen so far seem common, and mostly above you suggest ignoring most, but

- when stratum workers become disconnected, they don't want to reconnect without the human restarting miner software
- they seem to disconnect when we see a socket timeout connecting to (either eligius or our own bitcoind, this is not clear)

Finally, is there any guidance on the amount of RAM required to run eloipool as a downstream pool? Is this more based on the number of workers connected, the amount of hashrate, or?? I definitely ran a 4GB box out of RAM with just 2THs on it. Bitcoind is running on it's own machine, and we're just logging shares to text for now.

Well. Maybe one more. I'm sure you've seen nomp's mining keys? What do you think of this idea and code? And, if you think that's a good idea, would that be something you'd have an interest in supporting in eloipool? (maybe a module that figures a pubkey from a miningkey and drops it into config.py?)

I know you're not the biggest altcoin fan, but I can't see any reason you shouldn't earn something from pools using your software to mine them. (forrestv has something similar for --give-author in p2pool I've not seen how this works though)

Thanks for your time! (we know where to put some BTC )

Mine at the Maza Club! with ShastaFarEye Prospectors! Mazacoin PPS & P2pool mining, and more services coming soon!
Maza Means Money! Check yours at the mazacha.in!

Please contact me  on my  OTC registered GPG (A54E87F2) Key's email address or guruvan@shastafareye.net  and encrypt all correspondence.
Luke-Jr
Legendary
*
Offline Offline

Activity: 2086



View Profile
July 14, 2014, 09:36:23 PM
 #295

Luke-Jr, we've been running eloiopol to connect a pool to eligius, quite successfully (Thanks!) and have a few questions:

1) To connect to an upstream pool (ie eligius) the loop branch is required
The loop branch was never finished and does not work completely.
Use it at your own risk...

- when stratum workers become disconnected, they don't want to reconnect without the human restarting miner software
Be sure miners are using the latest version of BFGMiner.
Unmaintained versions and forks thereof, my have bugs - those are however unrelated to Eloipool.

Well. Maybe one more. I'm sure you've seen nomp's mining keys? What do you think of this idea and code? And, if you think that's a good idea, would that be something you'd have an interest in supporting in eloipool? (maybe a module that figures a pubkey from a miningkey and drops it into config.py?)
Nope, no idea what you're talking about.

I know you're not the biggest altcoin fan, but I can't see any reason you shouldn't earn something from pools using your software to mine them. (forrestv has something similar for --give-author in p2pool I've not seen how this works though)
The sample config file has a Coinbaser example that donates.

guruvan
Hero Member
*****
Offline Offline

Activity: 518

ShastaFarEye Prospectors mazaclub & mazacha.in


View Profile WWW
July 15, 2014, 01:55:43 PM
 #296

Thanks for the info Luke. Smiley
NOMP mining key creates a pubkey/privkey pair that can be used for any coin - the coin's pubkey can be derived from the mining-key pubkey, and likewise for the privkey.

Allows zone117x to collect from coinbase on pretty much every coin folks mine with his solution. And also, this is part of the magic in nomp that allows for multipools - coinswitching ports require mining-keys for usernames, and payment processor pays the coin to the derived coin pubkey

I don't have one running ATM, but raskul has his here: http://eu.centralcavern.uk:8080 the mining key creation web script is here http://eu.centralcavern.uk:8080/key.html - his setup looks pretty stock.

Mine at the Maza Club! with ShastaFarEye Prospectors! Mazacoin PPS & P2pool mining, and more services coming soon!
Maza Means Money! Check yours at the mazacha.in!

Please contact me  on my  OTC registered GPG (A54E87F2) Key's email address or guruvan@shastafareye.net  and encrypt all correspondence.
Luke-Jr
Legendary
*
Offline Offline

Activity: 2086



View Profile
July 15, 2014, 03:29:19 PM
 #297

Sounds pointless, since addresses should only ever be used once.

heromember
Newbie
*
Offline Offline

Activity: 2


View Profile
July 25, 2014, 10:40:30 AM
 #298

bump
peter_liang
Newbie
*
Offline Offline

Activity: 1


View Profile
August 26, 2014, 02:30:29 AM
 #299

found error in script authproxy.py
Code: (Python)
      authpair = "%s:%s" % (self.__url.username, self.__url.password)
        authpair = authpair.encode('utf8')
        # <icreator
        authpair = base64.b64encode(authpair) # here return as bytes
        authpair = str(authpair, encoding='utf-8') # convert bytes to str
        # >
        self.__auth_header = "Basic " + authpair
 

and I load directly authproxy:
Code: (Python3.3)
'''import jsonrpc
try:
import jsonrpc.authproxy
jsonrpc.authproxy.USER_AGENT = 'Eloipool/0.1'
except:
from jsonrpclib import jsonrpc
pass
'''
from authproxy import AuthServiceProxy as ServiceProxy, JSONRPCException

and copy client.py from /usr/lib/python3.3/http into my folder with eloipool

BUT!
when call getblocktemplate  from merklemaker.py
Code:
for TC in TCList:
caccess = TC['access'] # =ServiceProxy(uri)
try:
propose = caccess.getblocktemplate(ProposeReq)

rise error in responce:
Quote
2013-08-28 15:11:39,777   makeCoinbaseTxn_responce   ERROR   {'error': {'message': 'Invalid mode', 'code': -8}, 'result': None, 'id': 1}
2013-08-28 15:11:39,780   merkleMaker   CRITICAL   Traceback (most recent call last):
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 732, in run
    self.merkleMaker_I()
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 722, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 700, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 588, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 552, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 523, in _updateMerkleTree_fromTS
    (AcceptedScore, TotalScore) = self._CheckTemplate(newMerkleTree, TS)
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 456, in _CheckTemplate
    propose = caccess.getblocktemplate(ProposeReq)
  File "/home/icreator/pools/eloipool-3/authproxy.py", line 135, in __call__
    raise JSONRPCException(response['error'])
authproxy.JSONRPCException


"mode" set here:
Code:
ProposeReq = {
"mode": "proposal",
"data": b2a_hex(data).decode('utf8'),
                        }

BUT if I do:
Code:
ProposeReq = {
"data": b2a_hex(data).decode('utf8'),
                        }

new error:
Code:
2013-08-28 15:35:29,709 merkleMaker ERROR Upstream 'primary' rejected proposed block from 'primary': 0000000000000007d8be81c938a2519ba3b2eb8fe1720ad82210d4f82716a6f7
2013-08-28 15:35:29,710 merkleMaker CRITICAL Traceback (most recent call last):
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 732, in run
    self.merkleMaker_I()
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 722, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 688, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 588, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 574, in _updateMerkleTree_I
    raise RuntimeError('Failed to create usable template')
RuntimeError: Failed to create usable template

and how use  jsonrpc_getblocktemplate.py ?? here may  be right code?

I stuck in the same problem for days. I'm using ubuntu 14.04, I tried both bitcoind v0.9.2.1 and v0.9.3rc1 and nothing is different. Can anybody tell me what should I do. Thank you.
bitzcointalk
Member
**
Offline Offline

Activity: 114

My avatar is in the shop


View Profile
September 21, 2014, 07:15:26 PM
 #300

 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

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!