Bitcoin Forum
June 24, 2024, 04:34:35 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: p2pool node problem???  (Read 612 times)
adriankr2 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
April 02, 2015, 04:25:05 PM
 #1

HIII
i tried to start my own p2pool on terracoin
it worked so far and terracoind and p2pool are connected
but i have no other p2pool terracoin nodes to connect with
and p2pool does not download the sharechain
and when i try to connect cpuminer to it it says

Code:
[2015-04-01 23:05:19] getblocktemplate failed, falling back to getwork
[2015-04-01 23:05:19] Starting Stratum on stratum+tcp://number.number.number.number:9322
[2015-04-01 23:05:19] JSON-RPC call failed: {
   "message": "p2pool is downloading shares",
   "data": null,
   "code": -12345
}
[2015-04-01 23:05:20] stratum_recv_line failed
[2015-04-01 23:05:20] ...retry after 30 seconds

do you kno where i can get some node addresses?
here are some logs of the server when i try to connect:
Code:
2015-04-01 19:17:28.023048 > Unhandled Error
2015-04-01 19:17:28.023336 > Traceback (most recent call last):
2015-04-01 19:17:28.023563 >   File "/root/p2pool-ltc/p2pool/main.py", line 666, in run
2015-04-01 19:17:28.023721 >     reactor.run()
2015-04-01 19:17:28.023874 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
2015-04-01 19:17:28.023978 >     self.mainLoop()
2015-04-01 19:17:28.024122 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
2015-04-01 19:17:28.024235 >     self.runUntilCurrent()
2015-04-01 19:17:28.024317 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 824, in runUntilCurrent
2015-04-01 19:17:28.024446 >     call.func(*call.args, **call.kw)
2015-04-01 19:17:28.024531 > --- <exception caught here> ---
2015-04-01 19:17:28.024641 >   File "/root/p2pool-ltc/p2pool/bitcoin/stratum.py", line 38, in _send_work
2015-04-01 19:17:28.024735 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2015-04-01 19:17:28.024822 >   File "/root/p2pool-ltc/p2pool/bitcoin/worker_interface.py", line 129, in get_work
2015-04-01 19:17:28.024905 >     x, handler = self._inner.get_work(*args)
2015-04-01 19:17:28.024987 >   File "/root/p2pool-ltc/p2pool/work.py", line 243, in get_work
2015-04-01 19:17:28.025067 >     raise jsonrpc.Error_for_code(-12345)(u'p2pool is downloading shares')

and when noone is mining:
Code:
2015-04-01 19:18:45.040086 P2Pool: 0 shares in chain (0 verified/20 total) Peers: 1 (1 incoming)
2015-04-01 19:18:45.040465  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2015-04-01 19:19:00.043884 P2Pool: 0 shares in chain (0 verified/21 total) Peers: 1 (1 incoming)
2015-04-01 19:19:00.044441  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2015-04-01 19:19:15.046396 P2Pool: 0 shares in chain (0 verified/21 total) Peers: 1 (1 incoming)
2015-04-01 19:19:15.046878  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2015-04-01 19:19:30.049174 P2Pool: 0 shares in chain (0 verified/21 total) Peers: 1 (1 incoming)
2015-04-01 19:19:30.049641  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2015-04-01 19:19:45.051183 P2Pool: 0 shares in chain (0 verified/21 total) Peers: 1 (1 incoming)
2015-04-01 19:19:45.051489  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???



thx
SpAcEDeViL
Legendary
*
Offline Offline

Activity: 986
Merit: 1027


Miner-Control.de Pooler


View Profile WWW
June 22, 2015, 05:02:39 PM
 #2

Make a copy of terracoin.py under networks and
Change:

Code:
from p2pool.bitcoin import networks

PARENT = networks.nets['terracoin']
SHARE_PERIOD = 30 # seconds
CHAIN_LENGTH = 12*60*60//30 # shares
REAL_CHAIN_LENGTH = 12*60*60//30 # shares
TARGET_LOOKBEHIND = 20 # shares
SPREAD = 10 # blocks
IDENTIFIER = 'efba2ef800a1b75e'.decode('hex')
PREFIX = 'a7e0b4f5e29eb866'.decode('hex')
P2P_PORT = 9323
MIN_TARGET = 0
MAX_TARGET = 2**256//2**32 - 1
PERSIST = False
WORKER_PORT = 9322
BOOTSTRAP_ADDRS = 'rav3n.dtdns.net'.split(' ')
ANNOUNCE_CHANNEL = '#p2pool-alt'
VERSION_CHECK = lambda v: 80002 <= v
VERSION_WARNING = lambda v: 'Upgrade Terracoin to >= 0.8.0.4!' if v < 80004 else None

Test it, i hope this helps.
Or a better way:
Code:
git clone https://github.com/Rav3nPL/p2pool-rav

This works for me.

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!