Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: zhongfangcai on June 01, 2014, 08:15:39 AM



Title: -12345 p2pool is not connected to any peers
Post by: zhongfangcai on June 01, 2014, 08:15:39 AM
All ports is connect success,But when I mining,The p2pool prompt not connected to any peers,As the following code.


--------------------------------------------------------------------------------
raise jsonrpc.Error_for_code(-12345)(u'p2pool is not connected to any peers'
)
p2pool.util.jsonrpc.NarrowError: -12345 p2pool is not connected to any peers

--------------------------------------------------------------------------------

The following is a mining  prompt.

--------------------------------------------------------------------------------
[2014-05-27 17:53:06] JSON-RPC call failed: {
   "message": "p2pool is not connected to any peers",
   "data": null,
   "code": -12345
}
[2014-05-27 17:53:07] stratum_recv_line failed
[2014-05-27 17:53:07] ...retry after 30 seconds

--------------------------------------------------------------------------------

How can I do?Please help!


Title: Re: -12345 p2pool is not connected to any peers
Post by: Bitarama on June 02, 2014, 08:38:14 PM
in p2pool/p2pool/networks.py  look for  PERSIST=True, and change that to PERSIST=False, then restart p2pool


Title: Re: -12345 p2pool is not connected to any peers
Post by: bitcoinreactor on June 03, 2014, 06:19:52 AM
in p2pool/p2pool/networks.py  look for  PERSIST=True, and change that to PERSIST=False, then restart p2pool

This will not help his p2pool installation in finding any peers :)

The PERSIST=False thing is only useful when you're bootstraping a new p2pool network (newly added network parameters, first node beeing setup).

It will make his p2pool setup a standalone node, but then why not just solo mining ?
By just using p2pool, you'll "force" your miner to find shares/blocks faster, due to the share delay behaviour ; if you plan to solo-mine, just running a solo p2pool node with no peer will not benefit you in any way, quite the opposite actually.


@zhongfangcai  : what network parameters ("coin") are you using ? What p2pool fork (if you're using a forked p2pool) ?