Bitcoin Forum
September 25, 2018, 08:06:42 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   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 106557 times)
hahahafr
Hero Member
*****
Offline Offline

Activity: 643
Merit: 500



View Profile
August 08, 2013, 04:25:00 PM
 #181

How to estimate the current hashrate of the pool? Is already some stats somewhere?

        ▄▄█████████▄▄
     ▄███████ ░████████▄
   ▄█████ ░██  ██  ██████▄
 ░███████  ██  ██ ░████████
░████  ██  ██  █▌ ▐█████████
▐████  ██  ██  █▌ ▐█████████▌
█████░ ▐█  ██  █  ████  █████
█████▌ ▐█████████████  ██████
█████▌ ▐████████████▌ ▐██████
██████  ████████████ ░███████
▐█████  ███████████░ ▐██████▌
 ██████  ████████▀░ ▄███████
  ▀█████░  ▀███▀  ▄███████▀
    ▀█████▄░   ░▄███████▀
       ▀▀███████████▀▀

▄███▄                                                                  ▄███▄
█████░                                                                 █████
█████░                                                                 █████
█████░                                                                 █████
███████████▄▄       ▄███████▄    ▄███▄     ░▄███▄     ░▄██▄░   ▄▄███████████    ▄███████▄░      ▄▄██████▄▄
██████████████▌  ░▄███████████▄░ █████     ▒█████     ▒████▒ ▐██████████████ ░▄███████████▄░  ▄████████████▄
███████████████▌░█████▀  ▀██████ █████     ▒█████     ▒████▒▐█████▀  ▀██████░▐█████▀  ▀█████░▐█████▀  ▀█████▌░
█████▀░   ▀█████▒████      █████ █████     ▒█████     ▒████▒█████░   ░░█████░█████░     ████▒█████      █████
█████░    ░█████▒████      █████ █████░   ░▐█████▌    ▓████▒█████░    ░█████░█████      ████▒█████      █████
█████░    ░█████░█████▄  ▄██████ ██████▄░▄████████▄░▄██████░▐█████▄░░▄█████▌░▐█████▄  ▄█████░▐█████▄  ▄█████▌
█████░    ░█████ ░█████████████░ ░████████████████████████░  ▐████████████▒  ░▀████████████░  ▀████████████▀
▀███▀░    ░▀███▀   ▀▀███████▀▀     ▀▀████████▀ ▀███████▀▀     ░▀████████▀       ▀███████▀▀     ░▀████████▀
  First Decentralized Social Ecosystem
  A SOCIAL NETWORK BUILT FOR THE BLOCKCHAINWORLD






───    APPLY FOR WHITELIST    ───
WEBSITE    WHITEPAPER   TELEGRAM
FACEBOOK  TWITTER         ANN
1537906002
Hero Member
*
Offline Offline

Posts: 1537906002

View Profile Personal Message (Offline)

Ignore
1537906002
Reply with quote  #2

1537906002
Report to moderator
1537906002
Hero Member
*
Offline Offline

Posts: 1537906002

View Profile Personal Message (Offline)

Ignore
1537906002
Reply with quote  #2

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

Posts: 1537906002

View Profile Personal Message (Offline)

Ignore
1537906002
Reply with quote  #2

1537906002
Report to moderator
1537906002
Hero Member
*
Offline Offline

Posts: 1537906002

View Profile Personal Message (Offline)

Ignore
1537906002
Reply with quote  #2

1537906002
Report to moderator
hahahafr
Hero Member
*****
Offline Offline

Activity: 643
Merit: 500



View Profile
August 08, 2013, 05:50:18 PM
 #182

Or do I have to somehow calculate it with the accepted shares logged?

        ▄▄█████████▄▄
     ▄███████ ░████████▄
   ▄█████ ░██  ██  ██████▄
 ░███████  ██  ██ ░████████
░████  ██  ██  █▌ ▐█████████
▐████  ██  ██  █▌ ▐█████████▌
█████░ ▐█  ██  █  ████  █████
█████▌ ▐█████████████  ██████
█████▌ ▐████████████▌ ▐██████
██████  ████████████ ░███████
▐█████  ███████████░ ▐██████▌
 ██████  ████████▀░ ▄███████
  ▀█████░  ▀███▀  ▄███████▀
    ▀█████▄░   ░▄███████▀
       ▀▀███████████▀▀

▄███▄                                                                  ▄███▄
█████░                                                                 █████
█████░                                                                 █████
█████░                                                                 █████
███████████▄▄       ▄███████▄    ▄███▄     ░▄███▄     ░▄██▄░   ▄▄███████████    ▄███████▄░      ▄▄██████▄▄
██████████████▌  ░▄███████████▄░ █████     ▒█████     ▒████▒ ▐██████████████ ░▄███████████▄░  ▄████████████▄
███████████████▌░█████▀  ▀██████ █████     ▒█████     ▒████▒▐█████▀  ▀██████░▐█████▀  ▀█████░▐█████▀  ▀█████▌░
█████▀░   ▀█████▒████      █████ █████     ▒█████     ▒████▒█████░   ░░█████░█████░     ████▒█████      █████
█████░    ░█████▒████      █████ █████░   ░▐█████▌    ▓████▒█████░    ░█████░█████      ████▒█████      █████
█████░    ░█████░█████▄  ▄██████ ██████▄░▄████████▄░▄██████░▐█████▄░░▄█████▌░▐█████▄  ▄█████░▐█████▄  ▄█████▌
█████░    ░█████ ░█████████████░ ░████████████████████████░  ▐████████████▒  ░▀████████████░  ▀████████████▀
▀███▀░    ░▀███▀   ▀▀███████▀▀     ▀▀████████▀ ▀███████▀▀     ░▀████████▀       ▀███████▀▀     ░▀████████▀
  First Decentralized Social Ecosystem
  A SOCIAL NETWORK BUILT FOR THE BLOCKCHAINWORLD






───    APPLY FOR WHITELIST    ───
WEBSITE    WHITEPAPER   TELEGRAM
FACEBOOK  TWITTER         ANN
BTCMiners.net
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile WWW
August 10, 2013, 01:21:21 AM
 #183

Code:
Traceback (most recent call last):
  File "./eloipool.py", line 77, in <module>
    bcnode = BitcoinNode(config.UpstreamNetworkId)
  File "/home/eloipool/bitcoin/node.py", line 146, in __init__
    super().__init__(*a, **ka)
TypeError: super() takes at least 1 argument (0 given)

Any idea why it would be throwing that? It's a new clone, config is setup properly.. if you need any other info please let me know and i'll post what I can Smiley

Buy Cloud Hashing! $8.50 USD per GH/s!  [32.231 TH/s] Remaining
https://bitcointalk.org/index.php?topic=329674.20  -- www.BTCMiners.net
Luke-Jr
Legendary
*
Offline Offline

Activity: 2422
Merit: 1011



View Profile
August 10, 2013, 02:07:42 AM
 #184

Code:
Traceback (most recent call last):
  File "./eloipool.py", line 77, in <module>
    bcnode = BitcoinNode(config.UpstreamNetworkId)
  File "/home/eloipool/bitcoin/node.py", line 146, in __init__
    super().__init__(*a, **ka)
TypeError: super() takes at least 1 argument (0 given)

Any idea why it would be throwing that? It's a new clone, config is setup properly.. if you need any other info please let me know and i'll post what I can Smiley
Usually this means an ancient Python version.
You need at least version 3.1 (released over 4 years ago).

BTCMiners.net
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile WWW
August 10, 2013, 01:00:37 PM
 #185

Code:
Traceback (most recent call last):
  File "./eloipool.py", line 77, in <module>
    bcnode = BitcoinNode(config.UpstreamNetworkId)
  File "/home/eloipool/bitcoin/node.py", line 146, in __init__
    super().__init__(*a, **ka)
TypeError: super() takes at least 1 argument (0 given)

Any idea why it would be throwing that? It's a new clone, config is setup properly.. if you need any other info please let me know and i'll post what I can Smiley
Usually this means an ancient Python version.
You need at least version 3.1 (released over 4 years ago).

You're right I simply didn't run python3 when I ran the command, but this is what I resulted with:

Code:
Traceback (most recent call last):
  File "eloipool.py", line 81, in <module>
    import jsonrpc
ImportError: No module named jsonrpc

So, I found https://bitcointalk.org/index.php?topic=113730.0

But nothing in there has helped me out. Blockchain is up to date and current.  Symlink is done but I'm not even able to run the setup.py in the python-bitcoinrpc directory.

Buy Cloud Hashing! $8.50 USD per GH/s!  [32.231 TH/s] Remaining
https://bitcointalk.org/index.php?topic=329674.20  -- www.BTCMiners.net
icreator
Legendary
*
Offline Offline

Activity: 1288
Merit: 1002



View Profile WWW
August 25, 2013, 08:31:25 AM
 #186

I have Ubuntu 13.04 and Python3.3

run:
python3.3 eloipool.py

got errors:

Code:
Traceback (most recent call last):
  File "eloipool.py", line 948, in <module>
    MM.start()
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 697, in start
    self._prepare()
  File "/home/icreator/pools/eloipool-3/merklemaker.py", line 100, in _prepare
    URI2Name.setdefault(a['uri'], a['name'])
TypeError: string indices must be integers

Erachain Blockchain is fully ready for use Digital Ecosystem based on blockchain technology for business and government with low transaction costs, identification and built-in functions.
icreator
Legendary
*
Offline Offline

Activity: 1288
Merit: 1002



View Profile WWW
August 25, 2013, 06:35:10 PM
 #187

I have python3.3.2

git clone https://github.com/jgarzik/python-bitcoinrpc.git
python3 setup.py build
sudo python3 setup.py install

then run probe.py
Code:
from jsonrpc.proxy import ServiceProxy, JSONRPCException

aa = ServiceProxy("http://rpcuser:yighyeg8OnI@127.0.0.1:8332")
              
print (aa.getinfo())

errors:
Code:
ile "probe.py", line 17, in <module>
    aa.getinfo()
  File "/home/icreator/pools/eloipool-3/bitcoinrpc/authproxy.py", line 118, in __call__
    response = self._get_response()
  File "/home/icreator/pools/eloipool-3/bitcoinrpc/authproxy.py", line 156, in _get_response
    parse_float=decimal.Decimal)
  File "/usr/lib/python3.3/json/__init__.py", line 332, in loads
    return cls(**kw).decode(s)
  File "/usr/lib/python3.3/json/decoder.py", line 353, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.3/json/decoder.py", line 371, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

but if I run:
python2.7 probe.py  - all work!

??

Erachain Blockchain is fully ready for use Digital Ecosystem based on blockchain technology for business and government with low transaction costs, identification and built-in functions.
icreator
Legendary
*
Offline Offline

Activity: 1288
Merit: 1002



View Profile WWW
August 28, 2013, 11:35:59 AM
 #188

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?

Erachain Blockchain is fully ready for use Digital Ecosystem based on blockchain technology for business and government with low transaction costs, identification and built-in functions.
goozman96
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500



View Profile
September 05, 2013, 07:59:52 PM
 #189

Hey, I'm considering switching from BTC Guild to eligius. Can you answer some questions for me?
1. Why doesn't your site support https
2. Why does Web Of Trust show a yellow rating for your site. See:


Thanks

BTC: 19DKtsdGfQyFzNiEze9KuFQrWGiLDvg6F1 | LTC: LbV6UGyjYbVP49NvQFmuAnkADcaFYvNagK | NMC: NDCdMJmTmGH54Cezmo3CwSxAC7grAoZJbj
DopeLabs
Newbie
*
Offline Offline

Activity: 15
Merit: 0



View Profile WWW
September 12, 2013, 02:08:46 PM
 #190

this seems to be repeating in the logfile.... any ideas as to what i need to do to fix?

Code:
2013-09-12 07:07:32,607 merkleMaker     CRITICAL        Traceback (most recent call last):
  File "/home/dopelabs/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/home/dopelabs/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/dopelabs/eloipool/merklemaker.py", line 660, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/dopelabs/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/dopelabs/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/home/dopelabs/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/home/dopelabs/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/home/dopelabs/eloipool/bitcoinrpc/authproxy.py", line 112, in __call__
    'Content-type': 'application/json'})
  File "/usr/lib/python3.2/http/client.py", line 967, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.2/http/client.py", line 995, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.2/http/client.py", line 850, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent
EvgenijM86
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
October 01, 2013, 02:45:36 PM
 #191

How do i install the python-bitcoinrpc and python-base58 ?
Thx
It's usually sufficient to just get the git checkout linked under your eloipool directory.

What does "linked" mean exactly? Should I just git clone them while inside eloipool directory?
greatbotboy
Newbie
*
Offline Offline

Activity: 37
Merit: 0



View Profile WWW
October 12, 2013, 05:26:56 AM
 #192

"Interactive Python 3 console so you can inspect and modify the pool while it's running."

interesting... where can I find this?
greatbotboy
Newbie
*
Offline Offline

Activity: 37
Merit: 0



View Profile WWW
October 12, 2013, 06:46:09 PM
 #193

this seems to be repeating in the logfile.... any ideas as to what i need to do to fix?

Code:
2013-09-12 07:07:32,607 merkleMaker     CRITICAL        Traceback (most recent call last):
  File "/home/dopelabs/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/home/dopelabs/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/dopelabs/eloipool/merklemaker.py", line 660, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/dopelabs/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/home/dopelabs/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/home/dopelabs/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/home/dopelabs/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/home/dopelabs/eloipool/bitcoinrpc/authproxy.py", line 112, in __call__
    'Content-type': 'application/json'})
  File "/usr/lib/python3.2/http/client.py", line 967, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.2/http/client.py", line 995, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.2/http/client.py", line 850, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent

I seem to get that quite a bit as well.
Luke-Jr
Legendary
*
Offline Offline

Activity: 2422
Merit: 1011



View Profile
October 12, 2013, 06:48:56 PM
 #194

That's a recent bug in bitcoinrpc. Please report it to that project.

Groc
Sr. Member
****
Offline Offline

Activity: 560
Merit: 250


Bounty manager (https://t.me/Gudwinn)


View Profile
October 16, 2013, 06:08:00 PM
 #195

Anyone using Eloipool with a Raspberry Pi?
Trongersoll
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500



View Profile
October 16, 2013, 06:48:38 PM
 #196

What would be the minimum hardware requirements for running this as a private pool? assume ubuntu 12.4 server as a host. Could a 10 year old pentium dual core 2.0Ghz run this? would extra RAM help?
Inaba
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
October 16, 2013, 06:57:27 PM
 #197

Depends on how big your pool is.  I would say a dual core with 8 GB of RAM would work for a small pool.   It's very ram hungry.


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

Activity: 37
Merit: 0



View Profile WWW
October 22, 2013, 06:07:21 PM
 #198

"Interactive Python 3 console so you can inspect and modify the pool while it's running."

interesting... where can I find this?

Seriously where do i find this?
agibby5
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


View Profile
October 23, 2013, 06:18:16 AM
 #199

What does "Nobody to longpoll" mean?
Inaba
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
October 23, 2013, 11:08:41 PM
 #200

"Interactive Python 3 console so you can inspect and modify the pool while it's running."

interesting... where can I find this?

Seriously where do i find this?

Hit return... that >>> prompt is your console.

What does "Nobody to longpoll" mean?

Means nobody is connected to your pool.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
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!