Giter Club home page Giter Club logo

p2pool-dash's Introduction

Requirements:

Generic:

  • Dashd >=0.18.0.0
  • Python >=2.7
  • Twisted >=13.0.0
  • Zope.interface >=3.8.0
  • pycrypto >= 2.6.1

Linux:

sudo apt-get install python2 python2-dev python2-twisted python2-pip-whl python2-setuptools-whl
sudo apt-get install gcc g++

Install Python modules:

Download the required submodules:

git submodule init
git submodule update

dash_hash:

cd dash_hash
python setup.py install --user

Running P2Pool:

To use P2Pool, you must be running your own local dashd. For standard configurations, using P2Pool should be as simple as:

python run_p2pool.py

Then run your miner program, connecting to 127.0.0.1 on port 7903 with any username and password.

If you are behind a NAT, you should enable TCP port forwarding on your router. Forward port 9998 to the host running P2Pool.

Run for additional options.

python run_p2pool.py --help

Official wiki :

https://en.bitcoin.it/wiki/P2Pool

Alternate web front end :

Sponsors:

Thanks to:

  • The Bitcoin Foundation for its generous support of P2Pool
  • The Litecoin Project for its generous donations to P2Pool
  • The Vertcoin Community for its great contribution to P2Pool
  • jakehaas, vertoe, chaeplin, dstorm, poiuty, elbereth and mr.slaveg from the Darkcoin/Dash Community

p2pool-dash's People

Contributors

chargr avatar coblee avatar codablock avatar d0gzpaw avatar darkcoinproject avatar dcod3d avatar elbereth avatar forrestv avatar gmaxwell avatar goblin avatar grimd34th avatar harukama avatar iongchun avatar jakehaas avatar jdstorm avatar kevinxucs avatar krellan avatar m0glie avatar mindtrip101 avatar napieraj avatar nmarley avatar plambe avatar poiuty avatar rav3npl avatar rldleblanc avatar tadasvaranavicius avatar thelazier avatar tierradelfuego avatar udjinm6 avatar wtogami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

p2pool-dash's Issues

Error in DeferredResource handler - will not boot

So will P2pool still work with actual darkcoin version?
i can not bootstrap..

2015-02-01 17:19:23.335160 p2pool (version f143646-dirty)
2015-02-01 17:19:23.335205
2015-02-01 17:19:23.335237 Testing bitcoind RPC connection to 'http://127.0.0.1:9998/' with username '**'...
2015-02-01 17:19:23.349570     ...success!
2015-02-01 17:19:23.349632     Current block hash: 11eb275dcf226bd241357d4f88576fe1bd1fbf8f6a8eb010e02d80
2015-02-01 17:19:23.349669     Current block height: 212949
2015-02-01 17:19:23.349701
2015-02-01 17:19:23.349734 Testing bitcoind P2P connection to '127.0.0.1:9999'...
2015-02-01 17:19:23.386891     ...success!
2015-02-01 17:19:23.386942
2015-02-01 17:19:23.386973 Determining payout address...
2015-02-01 17:19:23.387055     ...success! Payout address: ***
2015-02-01 17:19:23.387079
2015-02-01 17:19:23.387095 Loading shares...
2015-02-01 17:19:23.387179     ...done loading 0 shares (0 verified)!
2015-02-01 17:19:23.387209
2015-02-01 17:19:23.387226 Initializing work...
2015-02-01 17:19:23.541975     ...success!
2015-02-01 17:19:23.542088
2015-02-01 17:19:23.542144 Joining p2pool network using port 8999...
2015-02-01 17:19:23.733680 > Unhandled Error
2015-02-01 17:19:23.733777 > Traceback (most recent call last):
2015-02-01 17:19:23.733814 > Failure: twisted.internet.error.DNSLookupError: DNS lookup failed: address 'asia01.poolhash.org' not found: [Errno -2] Name or service not known.
2015-02-01 17:19:23.733939 > Unhandled Error
2015-02-01 17:19:23.733982 > Traceback (most recent call last):
2015-02-01 17:19:23.734011 > Failure: twisted.internet.error.DNSLookupError: DNS lookup failed: address 'asia02.poolhash.org' not found: [Errno -2] Name or service not known.
2015-02-01 17:19:23.734184 > Unhandled Error
2015-02-01 17:19:23.734226 > Traceback (most recent call last):
2015-02-01 17:19:23.734254 > Failure: twisted.internet.error.DNSLookupError: DNS lookup failed: address 'cryptohasher.net' not found: [Errno -2] Name or service not known.
2015-02-01 17:19:23.911223     ...success!
2015-02-01 17:19:23.911328
2015-02-01 17:19:23.911636 Listening for workers on '' port 7903...
2015-02-01 17:19:23.937680     ...success!
2015-02-01 17:19:23.937717
2015-02-01 17:19:23.937732 Started successfully!
2015-02-01 17:19:23.937746 Go to http://127.0.0.1:7903/ to view graphs and statistics!
2015-02-01 17:19:23.937764 Donating 0.1% of work towards P2Pool's development. Please donate to encourage further development of P2Pool!
2015-02-01 17:19:23.937776
2015-02-01 17:19:26.939465 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2015-02-01 17:19:26.939521  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2015-02-01 17:19:30.854181 > Error in DeferredResource handler:
2015-02-01 17:19:30.854232 > Traceback (most recent call last):
2015-02-01 17:19:30.854250 >   File "/home/p2pool/p2pool-drk/p2pool/util/deferred_resource.py", line 24, in render
2015-02-01 17:19:30.854262 >     defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2015-02-01 17:19:30.854275 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred
2015-02-01 17:19:30.854286 >     result = f(*args, **kw)
2015-02-01 17:19:30.854297 >   File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 250, in render
2015-02-01 17:19:30.854307 >     return m(request)
2015-02-01 17:19:30.854317 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1237, in unwindGenerator
2015-02-01 17:19:30.854327 >     return _inlineCallbacks(None, gen, Deferred())
2015-02-01 17:19:30.854337 > --- <exception caught here> ---
2015-02-01 17:19:30.854346 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
2015-02-01 17:19:30.854355 >     result = g.send(result)
2015-02-01 17:19:30.854365 >   File "/home/p2pool/p2pool-drk/p2pool/web.py", line 197, in render_GET
2015-02-01 17:19:30.854374 >     res = yield self.func(*self.args)
2015-02-01 17:19:30.854383 >   File "/home/p2pool/p2pool-drk/p2pool/web.py", line 202, in <lambda>
2015-02-01 17:19:30.854394 >     web_root.putChild('rate', WebInterface(lambda: p2pool_data.get_pool_attempts_per_second(node.tracker, node.best_share_var.value, decent_height())/(1-p2pool_data.get_average_stale_prop(node.tracker, node.best_share_var.value, decent_height()))))
2015-02-01 17:19:30.854406 >   File "/home/p2pool/p2pool-drk/p2pool/data.py", line 573, in get_pool_attempts_per_second
2015-02-01 17:19:30.854415 >     assert dist >= 2
2015-02-01 17:19:30.854424 > exceptions.AssertionError:
2015-02-01 17:19:37.302591 Handshake timed out, disconnecting from 94.242.222.27:8999
2015-02-01 17:19:37.639532 Handshake timed out, disconnecting from 104.207.128.111:8999
2015-02-01 17:19:41.940011 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2015-02-01 17:19:41.940103  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2015-02-01 17:19:51.851860 Handshake timed out, disconnecting from 192.241.246.214:8999
2015-02-01 17:19:56.941300 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2015-02-01 17:19:56.941425  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2015-02-01 17:19:57.349997 Handshake timed out, disconnecting from 104.207.128.111:8999
2015-02-01 17:19:58.100211 Handshake timed out, disconnecting from 92.222.1.173:8999
2015-02-01 17:19:58.353573 Handshake timed out, disconnecting from 94.242.222.27:8999

Baikal Miners

I'm new to mining all together, so I'm looking for the best way to learn critical info on optimizing my 5 Baikal Giant+ ASICs. They are underperforming in terms of payout, so I know there's improvements I need to make. I just got on this thread & noticed comments that suggest if I don't have them optimized, I might even be hurting others payouts as well. So, point me in the right direction & I'll learn quickly. I'm not a programmer, but can stumble through.

p2pool is downloading shares....

We have upgraded to the latest DASHD (v0.13.0) and upgraded our P2Pool Node to run the current p2pool-dash. However, when we start up p2pool-dash we are receiving the following error;

Unhandled Error
Traceback (most recent call last):
  File "/root/p2pool-dash/p2pool/main.py", line 718, in run
    reactor.run()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1194, in run
    self.mainLoop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1203, in mainLoop
    self.runUntilCurrent()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 825, in runUntilCurrent
    call.func(*call.args, **call.kw)
--- <exception caught here> ---
  File "/root/p2pool-dash/p2pool/dash/stratum.py", line 39, in _send_work
    x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
  File "/root/p2pool-dash/p2pool/dash/worker_interface.py", line 129, in get_work
    x, handler = self._inner.get_work(*args)
  File "/root/p2pool-dash/p2pool/work.py", line 265, in get_work
    raise jsonrpc.Error_for_code(-12345)(u'p2pool is downloading shares')
p2pool.util.jsonrpc.NarrowError: -12345 p2pool is downloading shares

We have tried to trace this back to see if we can determine the issue but have not had any success.

We have the dashd daemon running and have used dash-cli getinfo to check that it is running without errors. Executing dash-cli getinfo returns fine;

{
  "version": 130000,
  "protocolversion": 70213,
  "walletversion": 61000,
  "balance": 0.00000000,
  "privatesend_balance": 0.00000000,
  "blocks": 1004393,
  "timeoffset": 0,
  "connections": 8,
  "proxy": "",
  "difficulty": 59154989.97378415,
  "testnet": false,
  "keypoololdest": 1486504219,
  "keypoolsize": 1001,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""
}

Any help in what might be the cause?

Update for Python > 3.0

Are there any updates for the latest Python version? That way this will be easier to run in regards to runtime and compilation + server migration

Failure: twisted.internet.error.DNSLookupError

The latest version. Does not start.

2014-11-23 12:00:14.617936 Testing bitcoind RPC connection to 'http://127.0.0.1:9332/' with username 'darkcoinminer'...
2014-11-23 12:00:15.085562 ...success!
2014-11-23 12:00:15.085812 Current block hash: 7a265aa7e83462bb0261d75bbaf780c8bcdde66c855ce2c8a1d7
2014-11-23 12:00:15.085948 Current block height: 174370
2014-11-23 12:00:15.086072
2014-11-23 12:00:15.086208 Testing bitcoind P2P connection to '127.0.0.1:9999'...
2014-11-23 12:00:15.236630 ...success!
2014-11-23 12:00:15.236720
2014-11-23 12:00:15.236780 Determining payout address...
2014-11-23 12:00:15.251362 Loaded cached address: Xup25UD6YevMkmhXzhHfehVPXjAWWr4rip...
2014-11-23 12:00:15.255418 ...success! Payout address: Xup25UD6YevMkmhXzhHfehVPXjAWWr4rip
2014-11-23 12:00:15.255507
2014-11-23 12:00:15.255555 Loading shares...
2014-11-23 12:00:15.255727 ...done loading 0 shares (0 verified)!
2014-11-23 12:00:15.255776
2014-11-23 12:00:15.255824 Initializing work...
2014-11-23 12:00:15.398791 ...success!
2014-11-23 12:00:15.398990
2014-11-23 12:00:15.399102 Joining p2pool network using port 8999...
2014-11-23 12:00:16.161159 > Unhandled Error
2014-11-23 12:00:16.161327 > Traceback (most recent call last):
2014-11-23 12:00:16.161432 > Failure: twisted.internet.error.DNSLookupError: DNS lookup failed: address 'asia01.poolhash.org' not found: [Errno -5] No address associated with hostname.
2014-11-23 12:00:16.161667 > Unhandled Error
2014-11-23 12:00:16.161763 > Traceback (most recent call last):
2014-11-23 12:00:16.161846 > Failure: twisted.internet.error.DNSLookupError: DNS lookup failed: address 'asia02.poolhash.org' not found: [Errno -5] No address associated with hostname.
2014-11-23 12:00:16.654934 ...success!
2014-11-23 12:00:16.655124
2014-11-23 12:00:16.655538 Listening for workers on '' port 7903...
2014-11-23 12:00:16.773012 ...success!
2014-11-23 12:00:16.773099
2014-11-23 12:00:16.773138 Started successfully!
2014-11-23 12:00:16.773182 Go to http://127.0.0.1:7903/ to view graphs and statistics!

Block submittal result: False (u'inconclusive') Excepted: True

P2Pool-Dash Log

2018-04-17 18:38:34.670758 P2Pool: 5 shares in chain (5 verified/602 total) Peers: 1 (0 incoming)
2018-04-17 18:38:34.670914 Local: 1442kH/s in last 10.9 seconds Local dead on arrival: ~0.0% (0-21%) Expected time to share: 4.5 seconds
2018-04-17 18:38:34.670953 Shares: 3 (0 orphan, 0 dead) Stale rate: ~0.0% (0-57%) Efficiency: ~100.0% (43-100%) Current payout: (0.0000)=0.0000 tDASH
2018-04-17 18:38:34.670985 Pool: 26886H/s Stale rate: 0.0% Expected time to block: 0.0 seconds
2018-04-17 18:38:34.672816
2018-04-17 18:38:34.673133 GOT BLOCK FROM MINER! Passing to dashd! https://test.explorer.dash.org/block/0000099bca28eda8a57f16f3d7bc07cfdbca84a5fa6cd16135e1b23f4c1fdd3e
2018-04-17 18:38:34.673230
2018-04-17 18:38:34.674575
2018-04-17 18:38:34.674785 GOT BLOCK FROM MINER! Passing to dashd! https://test.explorer.dash.org/block/00000fca22e3eaa85a463358b6e65673fcd4b973c5c2218cb53df25284ba2c0f
2018-04-17 18:38:34.674872
2018-04-17 18:38:35.782627
2018-04-17 18:38:35.782727 GOT BLOCK FROM MINER! Passing to dashd! https://test.explorer.dash.org/block/00000563697a63aa3c04c8550c0941bc4ca3cacf03f5e6201a588ff4734bc8c1
2018-04-17 18:38:35.782760
2018-04-17 18:38:35.787412
2018-04-17 18:38:35.787717 GOT BLOCK FROM MINER! Passing to dashd! https://test.explorer.dash.org/block/000001e59d511e1e2c083459ff39a8a336a79653552ffcf96cc3f9f80a82cb65
2018-04-17 18:38:35.787884
2018-04-17 18:38:35.789702
2018-04-17 18:38:35.789903 GOT BLOCK FROM MINER! Passing to dashd! https://test.explorer.dash.org/block/0000084c0d4d65fa980e5d1171361d15d1c1888044dfbe62b62c7461f1b777d0
2018-04-17 18:38:35.789988
2018-04-17 18:38:35.822775 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.823167 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.828357 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.828803 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.829219 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.829602 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.829927 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.830269 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.830676 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.831050 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.831411 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.831802 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.832181 > Block submittal result: False (u'inconclusive') Expected: True
2018-04-17 18:38:35.832557 > Block submittal result: False (u'inconclusive') Expected: True

Dash Wallet Debug.log is

2018-04-17 08:46:17 ProcessNewBlock : ACCEPTED
2018-04-17 08:46:18 ProcessNewBlock : ACCEPTED
2018-04-17 08:46:18 ProcessNewBlock : ACCEPTED
2018-04-17 08:46:18 ProcessNewBlock : ACCEPTED
2018-04-17 08:46:18 ProcessNewBlock : ACCEPTED
2018-04-17 08:46:18 UpdateTip: new best=00000710a49fe001a05874b94f4ffeab187eb3c02512d1c3b4a06ecbdbf26a4c height=1286 log2_work=11.329796 tx=1287 date=2018-04-17 08:46:17 progress=1.000000 cache=0.4MiB(2249txo)
2018-04-17 08:46:18 AddToWallet c2b94c28eb04d5e70ee8f6737a42c4b6b3c802df4674c7da704a8e17f3d0f6af new
2018-04-17 08:46:18 CMasternodePayments::FillBlockPayee -- Failed to detect masternode to pay
2018-04-17 08:46:18 CreateNewBlock(): total size 1000 txs: 0 fees: 0 sigops 100
2018-04-17 08:46:18 ProcessNewBlock : ACCEPTED
2018-04-17 08:46:18 ProcessNewBlock : ACCEPTED
2018-04-17 08:46:19 ProcessNewBlock : ACCEPTED
2018-04-17 08:46:19 ProcessNewBlock : ACCEPTED
2018-04-17 08:46:19 ProcessNewBlock : ACCEPTED
2018-04-17 08:46:19 ProcessNewBlock : ACCEPTED

somebody help me pls

i use to dash wallet on regtest
node 1 ubuntu
node 2 docker ubuntu

So many orphaned blocks as found today have never been

Developers, during the day almost all found blocks is orphaned:

794315 XnwuwfPhuFANd9Bz8fPEt9G3wZSgJS9126 http://crypto.mine.nu:7903/static/classic/share.html#000000000000001056f9f50dd835621237b09c85ced27b452230ab1e4dac19b5
794249 XhstnrgjTeVKWddgPoZZJunAaAeran2QH7 http://crypto.mine.nu:7903/static/classic/share.html#000000000000002b4a0639ec9f3192d7581d18db6e1f5eadbfccaacbafc8fefd
794042 XcADs7dYBgZwp7GY4r25GV9Bzx6BdVj6DY http://crypto.mine.nu:7903/static/classic/share.html#00000000000000222f0af4f43ff173987fde9410fc5f9865f34a5b410ed0f92f
793988 XnwuwfPhuFANd9Bz8fPEt9G3wZSgJS9126 http://crypto.mine.nu:7903/static/classic/share.html#00000000000000251e04dc738858a29f214e24c061f9194bc4eea23e42fb86b5
793913 XhXMahooTgty7jLQAbbRLLHBWeJWy4F1Lv http://crypto.mine.nu:7903/static/classic/share.html#0000000000000000f012b91a259d3cd5af4bba44eacc02aa11bf9ca73c3f9c2b
Maybe we ran into the same problem as the jtoomim fork on the BTC p2pool? Large blocks were rejected.
jtoomim fixed this problem with this patches:
jtoomim/p2pool@b2f6613
jtoomim/p2pool@498bf97

Multicore

How to start a pool on a server 16 cores.

Now, under heavy load, 1 core is involved, everything hangs

not in pack_to_unpack ({1: 'tx', 2: 'block'})

Old bug (not crit) => https://dashtalk.org/threads/nekorrektnye-bloki.3949/

Looks like these errors are caused by our recent shifting to inv messages
https://github.com/darkcoin/darkcoin/blob/a119b3008caafc49d1885b280283769570284f52/src/main.cpp#L3882-L3890

This place looks like a good start to fix it
https://github.com/UdjinM6/p2pool-drk/blob/master/p2pool/darkcoin/p2p.py#L66-L71

2015-04-05 23:35:38.856114 RECV inv 0108000000a645f9a520167f12389efe58825bee9c6e04580f1515547d44f135d3056ff527
2015-04-05 23:35:38.856539 > Error handling message: (see RECV line)
2015-04-05 23:35:38.856575 > Traceback (most recent call last):
2015-04-05 23:35:38.856596 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 214, in doRead
2015-04-05 23:35:38.856614 >     return self._dataReceived(data)
2015-04-05 23:35:38.856632 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 220, in _dataReceived
2015-04-05 23:35:38.856650 >     rval = self.protocol.dataReceived(data)
2015-04-05 23:35:38.856667 >   File "/home/darkcoin/p2pool-drk/p2pool/util/p2protocol.py", line 27, in dataReceived
2015-04-05 23:35:38.856684 >     self.dataReceived2(data)
2015-04-05 23:35:38.856700 >   File "/home/darkcoin/p2pool-drk/p2pool/util/datachunker.py", line 40, in _DataChunker
2015-04-05 23:35:38.856717 >     wants = receiver.send(buf.get(wants))
2015-04-05 23:35:38.856733 > --- <exception caught here> ---
2015-04-05 23:35:38.856750 >   File "/home/darkcoin/p2pool-drk/p2pool/util/p2protocol.py", line 57, in dataReceiver
2015-04-05 23:35:38.856766 >     self.packetReceived(command, type_.unpack(payload, self.ignore_trailing_payload))
2015-04-05 23:35:38.856783 >   File "/home/darkcoin/p2pool-drk/p2pool/util/pack.py", line 63, in unpack
2015-04-05 23:35:38.856800 >     obj = self._unpack(data, ignore_trailing)
2015-04-05 23:35:38.856817 >   File "/home/darkcoin/p2pool-drk/p2pool/util/pack.py", line 42, in _unpack
2015-04-05 23:35:38.856834 >     obj, (data2, pos) = self.read((data, 0))
2015-04-05 23:35:38.856850 >   File "/home/darkcoin/p2pool-drk/p2pool/util/pack.py", line 295, in read
2015-04-05 23:35:38.856866 >     item[key], file = type_.read(file)
2015-04-05 23:35:38.856882 >   File "/home/darkcoin/p2pool-drk/p2pool/util/pack.py", line 171, in read
2015-04-05 23:35:38.856898 >     res[i], file = self.type.read(file)
2015-04-05 23:35:38.856914 >   File "/home/darkcoin/p2pool-drk/p2pool/util/pack.py", line 295, in read
2015-04-05 23:35:38.856930 >     item[key], file = type_.read(file)
2015-04-05 23:35:38.856946 >   File "/home/darkcoin/p2pool-drk/p2pool/util/pack.py", line 151, in read
2015-04-05 23:35:38.856963 >     raise ValueError('enum data (%r) not in pack_to_unpack (%r)' % (data, self.pack_to_unpack))
2015-04-05 23:35:38.856979 > exceptions.ValueError: enum data (8) not in pack_to_unpack ({1: 'tx', 2: 'block'})

Baikal Giant B password hacked

Hi,
Can anyone please help me, my miner was hacked and they changed password, is there any way how I can change it!
Thank you!!

Dashd, versionbit Warning

Warning: (from dashd) Warning: unknown new rules activated (versionbit 1)
I believe this may be related to segwit or a problem with Python Twisted. I tried updating Dash Core's version in the P2Pool files but still no luck. I am using Python version 2.7, and I think I have the right version of twisted.

Increase reward for block finder 0.5% => 2%

We can increase reward for block finder => from 0.5% to 2%
https://github.com/dashpay/p2pool-dash/blob/master/p2pool/data.py#L177-L179

amounts = dict((script, share_data['subsidy']*(49*weight)//(50*total_weight)) for script, weight in weights.iteritems()) # 98% goes according to weights prior to this share
this_script = bitcoin_data.pubkey_hash_to_script2(share_data['pubkey_hash'])
amounts[this_script] = amounts.get(this_script, 0) + share_data['subsidy']//50 # 2% goes to block finder

Looks like p2pool has troubles handling 2mb blocks (or blocks with huge number fo txes?)

@thelazier @elbereth @jakehaas @poiuty @ourlink

Sorry for pinging you guys but I'm no expert here... Hope you have some ideas.

Example of an invalid block found by @chaeplin 's node:

2017-10-20 12:24:07 CMasternodeBlockPayees::IsTransactionValid -- ERROR: Missing required payment, possible payees: 'yM3X6NrtaBkXH9b8LkGZthH3YnYrmTvpju', amount: 66.614624 DASH
2017-10-20 12:24:07 IsBlockPayeeValid -- ERROR: Invalid masternode payment detected at height 12809: CTransaction(hash=4fccf9cb3c, ver=1, vin.size=1, vout.size=4, nLockTime=0)
    CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 0209320e2f5032506f6f6c2d74444153482f)
    CTxOut(nValue=66.60707434, scriptPubKey=76a914d7b47d4b40a23c389f5a1775)
    CTxOut(nValue=66.62217427, scriptPubKey=76a91407f503706a3230c53e2c44aa)
    CTxOut(nValue=0.00000001, scriptPubKey=41047559d13c3f81b1fadbd8dd03e4)
    CTxOut(nValue=0.00000000, scriptPubKey=6a28f5ed6e884bf2998f25a8782313)

It feels like p2pool adjusts tx list provided by dashd i.e. it excludes txes that exceed some limit(s) (and that's why miner payout is lower) and fails to update masternode payout. I'm not saying that it should recalculate it, it shouldn't adjust tx list in the first place imo (besides adding coinbase tx ofc).

Failure: twisted.internet.error.ConnectionRefusedError

Having trouble running p2pool-dash

user@srv01:~/p2pool-dash$ python run_p2pool.py <username> <password>
2017-05-20 05:53:08.752461 p2pool (version 5fd602d)
2017-05-20 05:53:08.753194
2017-05-20 05:53:08.753351 Testing dashd RPC connection to 'http://127.0.0.1:9998/' with username '<username>'...
Error while checking dash connection:
Traceback (most recent call last):
Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.

Config file is:

server=1
daemon=1
rpcpassword=<password>
rpcuser=<user>
rpcport=7903
port=9998
rpcallowip=127.0.0.1

What's wrong here?

centos help

centos7 install dashd need run? lparam is?

python run_p2pool.py

Testing dashd RPC connection to 'http://127.0.0.1:9998/' with username ''...
2017-09-28 21:46:18.163593 > Error while checking Dash connection:

/root/.dash/dash.conf ???

suppress inv type messages about masternode stuff

I think something like this should be safe to cut down on some logging.

diff --git a/p2pool/dash/p2p.py b/p2pool/dash/p2p.py
index eecbb54..8a04e12 100644
--- a/p2pool/dash/p2p.py
+++ b/p2pool/dash/p2p.py
@@ -76,7 +76,8 @@ class Protocol(p2protocol.Protocol):
             elif inv['type'] == 'block':
                 self.factory.new_block.happened(inv['hash'])
             else:
-                print 'Unneeded inv type', inv
+                if p2pool.DEBUG:
+                    print 'Unneeded inv type', inv

I got this error while running this command. python2 run_p2pool.py --dashd-address 127.0.0.1 --dashd-rpc-port 9998

Error getting work from dashd:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 653, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1442, in gotResult
_inlineCallbacks(r, g, deferred)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
--- ---
File "/home/satosi/p2pool-lqx/p2pool/util/deferral.py", line 41, in f
result = yield func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/home/satosi/p2pool-lqx/p2pool/dash/helper.py", line 30, in getwork
work = yield go()
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/home/satosi/p2pool-lqx/p2pool/util/jsonrpc.py", line 141, in _http_do
raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
p2pool.util.jsonrpc.NarrowError: -10 Dash Core is downloading blocks...

Memory Leak

Is anyone else having a memory leak? Seems as if the pools will stay up for about 4-6 hours before they reach a to high memory usage error.

Pool's Local Hash Rate does not update every second.

Hi, I am running a P2Pool with 5 miners producing a total of 100 KH/s. The pool has been running continuously for 12+ hours now and the graphs show nothing. What might be the issue? The pool rate is 509 GH/s.

There is no reward on some block's

what's wrong with this block's ?
https://explorer.dash.org/block/00000000000194a8b264c2d9e29e29c936f16b99728e5bcc98da0703324053bd
https://explorer.dash.org/block/0000000000029600aa790f2fcd57e40235232c5ba6f7873429c0deb3165952a9

http://rca-pool.ru/static/
dashd v14.0

Some output's of ~$sudo systemctl status dash
contains an error:
...........
]: return _inlineCallbacks(None, gen, Deferred())
serv2 start.bash[687]: File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
serv2 start.bash[687]: result = g.send(result)
serv2 start.bash[687]: --- ---
serv2 start.bash[687]: File "/home/z/p2pool-dash/p2pool/util/jsonrpc.py", line 68, in handle
serv2 start.bash[687]: id = req.get('id', None)
serv2 start.bash[687]: exceptions.AttributeError: 'list' object has no attribute 'get'
.......

It is difficult to provide the full error code in view of running the pool as a service

p2pool is not starting with dash v18.0.1

After upgrading to dash v18.0.1 our p2pool instance is no longer able to start.
We get to this point in the startup at which it just hangs

2022-09-14 17:15:31.386600 p2pool (version 13.0.0-9-ga360927) 2022-09-14 17:15:31.386738 2022-09-14 17:15:31.386851 Testing dashd RPC connection to 'http://127.0.0.1:9998/' with username 'dashrpcuser'... 2022-09-14 17:15:31.513816 ...success! 2022-09-14 17:15:31.513914 Current block hash: 222f2b675ad8ab40eb09ef1b69ea45c986329b9be794472c18 2022-09-14 17:15:31.513954 Current block height: 1738349 2022-09-14 17:15:31.513981 2022-09-14 17:15:31.514018 Testing dashd P2P connection to '127.0.0.1:9999'... 2022-09-14 17:15:36.514230 ...taking a while. Common reasons for this include all of dashd's connection slots being used...
Any ideas on what we need to change so that p2pool is compatible with dash v18.0.1?

Segwit Update

This version of p2pool-dash doesn't have segwit updates for block or version sizes in the networks folder or p2pool. This can lead to invalid shares or connection problems in some instances of P2P when mining Dash. Not sure if it requires BIP66 but it does seem to lead to block activation or share verification problems.

What does this mean? How do I install?

Install Python modules:
Download the required submodules:

git submodule init
git submodule update
dash_hash:

cd dash_hash
python setup.py install --user

Is it true that this port need? and log file

If you are behind a NAT, you should enable TCP port forwarding on your router. Forward port 9998 to the host running P2Pool.

Is it true that this port need forward port 9998? or need port - 8999?

If node raised within the local network for example: IP of 192.168.1.2 and external router IP example: 195.1.1.1 and port forwarding from the external IP 195.1.1.1 on the local node and has a connection with a local network (192.168.1.* addresses ASIC) and external (ASIC IP no local net) in the logs (data/dash/log) is an error a new job is not correctly displayed the address of the working (New work for worker )

transaction errors from the daemon

Have you tested the new version?
For some reason, there are transaction errors from the daemon.
At this time, all nodes lose contact with the daemon.

2019-02-05 06:13:26.061369 Outgoing connection to peer 195.114.96.40:8999 established. p2pool version: 1500 'f14af84-dirty'
2019-02-05 06:13:26.063215 Sending 1 shares to 195.114.96.40:8999
2019-02-05 06:13:26.162225 RECV remember_tx 00470200000001c2da0323f562e7e416bee073d6eeef1332683412c1034dacd5d45d6e152fc905010000006b483045022100bc5c91cf5199bba394d911fa57d5886f09e85485078fd61afc9690bb21e726f002201adbdcfd4dd6cb264f5ea87cddced694...
2019-02-05 06:13:26.163203 Lost peer 195.114.96.40:8999 - Connection was aborted locally, using.
2019-02-05 06:13:26.540497 > ########################################
2019-02-05 06:13:26.540659 > >>> Warning: LOST CONTACT WITH DASHD for 9.7 minutes! Check that it isn't frozen or dead!
2019-02-05 06:13:26.540729 > ########################################
2019-02-05 06:13:26.540794 P2Pool: 5257 shares in chain (4765 verified/5261 total) Peers: 7 (4 incoming)
2019-02-05 06:13:26.540848  Local: 73401MH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-5%) Expected time to share: 17.3 minutes
2019-02-05 06:13:26.540900  Shares: 81 (6 orphan, 3 dead) Stale rate: ~11.1% (5-20%) Efficiency: ~93.3% (84-99%) Current payout: (0.0071)=0.0071 DASH
2019-02-05 06:13:26.540959  Pool: 9525GH/s Stale rate: 4.8% Expected time to block: 16.3 hours
2019-02-05 06:13:26.748267 Outgoing connection to peer 94.156.218.28:8999 established. p2pool version: 1500 '1abf2e1-dirty'
2019-02-05 06:13:26.876021 Sending 1 shares to 94.156.218.28:8999
2019-02-05 06:13:26.878388 Incoming connection from peer 90.188.4.86:54164 established. p2pool version: 1500 'f14af84-dirty'
2019-02-05 06:13:26.904344 Sending 1 shares to 90.188.4.86:54164
2019-02-05 06:13:26.920724 Peer sent entire transaction 3a3e0b90f66ea4114886e4068e8290287d3ab3dbbcaaf5d02bfb12c730a6f698 that was already received
2019-02-05 06:13:26.930026 Lost peer 90.188.4.86:54164 - Connection to the other side was lost in a non-clean fashion.
2019-02-05 06:13:27.128538 Lost peer 94.156.218.28:8999 - Connection to the other side was lost in a non-clean fashion.
2019-02-05 06:13:27.534645 Outgoing connection to peer 185.128.12.21:8999 established. p2pool version: 1500 '18dc987-dirty'
2019-02-05 06:13:27.536478 Sending 1 shares to 185.128.12.21:8999
2019-02-05 06:13:27.810639 Lost peer 185.128.12.21:8999 - Connection to the other side was lost in a non-clean fashion.
2019-02-05 06:13:28.344948 Outgoing connection to peer 185.60.135.146:8999 established. p2pool version: 1500 'f14af84'
2019-02-05 06:13:28.346866 Sending 1 shares to 185.60.135.146:8999
2019-02-05 06:13:28.451348 RECV remember_tx 00440200000001c2da0323f562e7e416bee073d6eeef1332683412c1034dacd5d45d6e152fc905010000006b483045022100bc5c91cf5199bba394d911fa57d5886f09e85485078fd61afc9690bb21e726f002201adbdcfd4dd6cb264f5ea87cddced694...
2019-02-05 06:13:28.452445 Lost peer 185.60.135.146:8999 - Connection was aborted locally, using.
2019-02-05 06:13:29.542377 > ########################################
2019-02-05 06:13:29.542529 > >>> Warning: LOST CONTACT WITH DASHD for 9.7 minutes! Check that it isn't frozen or dead!
2019-02-05 06:13:29.542595 > ########################################

Node p2pool version: 222f57a-dirty
dashd "version": 130000, "protocolversion": 70213

does not mining

In regtest, the maximum value of the sa eBay target range must be 2 ** 256 // 2 ** 20-1
Why did you do that?

Couldn't link returned work's job id with its handler.

The error manifested itself when the traffic came to the pool 2.34th, before that on this pool works my own asics attached to the local network. In addition to p2p dash, mue p2pool and open ethreum (nodejs) pool work without problems on this server. the load on the server is 10-15%

2018-08-31 15:10:12.972357 > Couldn't link returned work's job id with its handler. This should only happen if this process was recently restarted!
2018-08-31 15:10:12.976450 > Couldn't link returned work's job id with its handler. This should only happen if this process was recently restarted!
2018-08-31 15:10:12.982297 > Couldn't link returned work's job id with its handler. This should only happen if this process was recently restarted!
2018-08-31 15:10:12.985779 > Couldn't link returned work's job id with its handler. This should only happen if this process was recently restarted!
2018-08-31 15:10:12.996326 Worker XsEWtEBhWno1tuo6fYNxh4RQmPsdMMnE8V submitted share with hash > target:
2018-08-31 15:10:12.996403 Hash: bde6f2c994fb6835e33e7b8635bcfd812275aadf5ad76511c08fdc5e196e02fb

twisted.web.error.Connectionlost

There are python twisted errors that I keep running into when I run P2Pool for Dash using the latest version of Python Twisted. This error have been there for a while and have tried both upgrading or downgrading my version of twisted as well as using the Python2.7 run commands but nothing worked thus far in fixing it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.