P2Pool P2Pool repository and python modules

poiuty

Active Member
Nov 26, 2014
408
226
113
Code:
(from dashd) EXCEPTION: St12out_of_range CInv::GetCommand() : type=15 unknown type dash in ProcessMessages()
need fix it
 

UdjinM6

Official Dash Dev
Core Developer
Dash Core Group
May 20, 2014
3,639
3,537
1,183
Code:
(from dashd) EXCEPTION: St12out_of_range CInv::GetCommand() : type=15 unknown type dash in ProcessMessages()
need fix it
https://github.com/dashpay/dash/blob/v0.12.0.x/src/protocol.h#L162
16: "dstx"?

Also I'm not sure how all these stuffs are used but I'm a bit woried about https://github.com/dashpay/p2pool-d...c7503c37a64c5f6032/p2pool/dash/p2p.py#L72-L80 and similar pieces of code: `txlock_request` is IX tx (structured completely the same way) and `dstx` is `tx`+`some additional data`. I'm not sure but maybe they must be parsed and participate in verifications/process of building blocks too. Can you guys have a look pls?
 

thelazier

Active Member
Jan 5, 2015
240
184
103
Thailand
Dash Address
Xreiza1qGJMT5BpW6BDtRJqwtcBSxGwWYN
https://github.com/dashpay/dash/blob/v0.12.0.x/src/protocol.h#L162
16: "dstx"?

Also I'm not sure how all these stuffs are used but I'm a bit woried about https://github.com/dashpay/p2pool-d...c7503c37a64c5f6032/p2pool/dash/p2p.py#L72-L80 and similar pieces of code: `txlock_request` is IX tx (structured completely the same way) and `dstx` is `tx`+`some additional data`. I'm not sure but maybe they must be parsed and participate in verifications/process of building blocks too. Can you guys have a look pls?
With my poor knowledge of python, I agree with update list of message_inv for "dstx" : https://github.com/dashpay/p2pool-dash/pull/21
For parsing the dstx and ix, we may not need this since current p2pool is not create block by itself (getwork+tx) , it's using getblocktemplate which is already has tx ,dstx and ix included by wallet. (update block template at least every 15 sec and triggered by new block).
Please correct me if I'm misunderstood.
 
  • Like
Reactions: UdjinM6

TanteStefana

Grizzled Member
Foundation Member
Mar 9, 2014
2,871
1,863
1,283
So I tried starting my own P2pool miner last night, but there hasn't been a payment in 18 hours, is this simply because we don't have much hash at the moment? Until I get a payment, I can't tell if I'm set up properly ;P

Edit: I got two payments, so I guess that means it worked! Thanks for maintaining this, it feels good to at least support mining in my own little way without needing a centralized pool :)
 
Last edited by a moderator:

thefrog

Member
May 25, 2014
57
26
58
So I tried starting my own P2pool miner last night, but there hasn't been a payment in 18 hours, is this simply because we don't have much hash at the moment? Until I get a payment, I can't tell if I'm set up properly ;P

Edit: I got two payments, so I guess that means it worked! Thanks for maintaining this, it feels good to at least support mining in my own little way without needing a centralized pool :)
p2pool needs at least 24h 'run up time' to get to max payments.
It's PPLNS payout system, and payment is done only on block found, so the variance is higher that with regular pools (you can have 1 payment / day, or 20 /day, depending on 'luck' ).
 
  • Like
Reactions: thelazier

TanteStefana

Grizzled Member
Foundation Member
Mar 9, 2014
2,871
1,863
1,283
Yah, and it was just my luck to have my first payment take over 18 hours, LOL. Thanks Frog, I've always piggybacked on somone elses P2pool, so I know a little bit, but this is the first time I set it up on my machine ;P I kinda got one of those accomplishment felings, warm fuzzy - pat on the back- kinda thing, LOL.
 
  • Like
Reactions: thelazier

roverus

New Member
Nov 8, 2015
6
2
3
When i run p2pool i got these errors..
Please help me.

2015-11-09 02:13:02.669000 P2Pool: 8699 shares in chain (4975 verified/8703 total) Peers: 6 (0 incoming)
2015-11-09 02:13:02.670000 Local: 1978kH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-2%) Expected time to share: 19.9 minutes
2015-11-09 02:13:02.671000 Shares: 2 (0 orphan, 0 dead) Stale rate: ~0.0% (0-66%) Efficiency: ~118.9% (40-119%) Current payout: (0.0000)=0.0000 DASH
2015-11-09 02:13:02.672000 Pool: 1705MH/s Stale rate: 15.9% Expected time to block: 2.3 hours
2015-11-09 02:13:03.708000 RECV inv 0110000000cd52a46a140a4cbe6c4c03f9313e048ae414d138f3cef1da8407c30845e2336b
2015-11-09 02:13:03.709000 > Error handling message: (see RECV line)
2015-11-09 02:13:03.709000 > Traceback (most recent call last):
2015-11-09 02:13:03.710000 > File "D:\Python27\lib\site-packages\twisted\internet\tcp.py", line 209, in doRead
2015-11-09 02:13:03.710000 > return self._dataReceived(data)
2015-11-09 02:13:03.710000 > File "D:\Python27\lib\site-packages\twisted\internet\tcp.py", line 215, in _dataReceived
2015-11-09 02:13:03.711000 > rval = self.protocol.dataReceived(data)
2015-11-09 02:13:03.711000 > File "C:\p2pool\p2pool\util\p2protocol.py", line 27, in dataReceived
2015-11-09 02:13:03.711000 > self.dataReceived2(data)
2015-11-09 02:13:03.711000 > File "C:\p2pool\p2pool\util\datachunker.py", line 40, in _DataChunker
2015-11-09 02:13:03.712000 > wants = receiver.send(buf.get(wants))
2015-11-09 02:13:03.712000 > --- <exception caught here> ---
2015-11-09 02:13:03.712000 > File "C:\p2pool\p2pool\util\p2protocol.py", line 57, in dataReceiver
2015-11-09 02:13:03.712000 > self.packetReceived(command, type_.unpack(payload, self.ignore_trailing_payload))
2015-11-09 02:13:03.713000 > File "C:\p2pool\p2pool\util\pack.py", line 63, in unpack
2015-11-09 02:13:03.713000 > obj = self._unpack(data, ignore_trailing)
2015-11-09 02:13:03.713000 > File "C:\p2pool\p2pool\util\pack.py", line 42, in _unpack
2015-11-09 02:13:03.714000 > obj, (data2, pos) = self.read((data, 0))
2015-11-09 02:13:03.714000 > File "C:\p2pool\p2pool\util\pack.py", line 295, in read
2015-11-09 02:13:03.714000 > item[key], file = type_.read(file)
2015-11-09 02:13:03.714000 > File "C:\p2pool\p2pool\util\pack.py", line 171, in read
2015-11-09 02:13:03.715000 > res, file = self.type.read(file)
2015-11-09 02:13:03.715000 > File "C:\p2pool\p2pool\util\pack.py", line 295, in read
2015-11-09 02:13:03.715000 > item[key], file = type_.read(file)
2015-11-09 02:13:03.715000 > File "C:\p2pool\p2pool\util\pack.py", line 151, in read
2015-11-09 02:13:03.716000 > raise ValueError('enum data (%r) not in pack_to_unpack (%r)' % (data, self.pack_to_unpack))
2015-11-09 02:13:03.716000 > exceptions.ValueError: enum data (16) not in pack_to_unpack ({1: 'tx', 2: 'block', 3: 'filtered_block', 4: 'txlock_request', 5: 'txlock_vote', 6: 'spork', 7: 'masternode_winner', 8: 'masternode_scanning_error', 9: 'budget_vote', 10: 'budget_proposal', 11: 'budget_finalized', 12: 'budget_finalized_vote', 13: 'masternode_quorum', 14: 'masternode_announce', 15: 'masternode_ping'})
2015-11-09 02:13:06.768000 New work for worker! Difficulty: 0.000977 Share difficulty: 0.631912 Total block value: 4.178624 DASH including 2 transactions
2015-11-09 02:13:08.708000 P2Pool: 8700 shares in chain (4976 verified/8704 total) Peers: 6 (0 incoming)
2015-11-09 02:13:08.710000 Local: 1978kH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-2%) Expected time to share: 19.9 minutes
2015-11-09 02:13:08.710000 Shares: 2 (0 orphan, 0 dead) Stale rate: ~0.0% (0-66%) Efficiency: ~118.9% (40-119%) Current payout: (0.0000)=0.0000 DASH
2015-11-09 02:13:08.711000 Pool: 1704MH/s Stale rate: 15.9% Expected time to block: 2.3 hours
 

thelazier

Active Member
Jan 5, 2015
240
184
103
Thailand
Dash Address
Xreiza1qGJMT5BpW6BDtRJqwtcBSxGwWYN
When i run p2pool i got these errors..
Please help me.

2015-11-09 02:13:02.669000 P2Pool: 8699 shares in chain (4975 verified/8703 total) Peers: 6 (0 incoming)
2015-11-09 02:13:02.670000 Local: 1978kH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-2%) Expected time to share: 19.9 minutes
2015-11-09 02:13:02.671000 Shares: 2 (0 orphan, 0 dead) Stale rate: ~0.0% (0-66%) Efficiency: ~118.9% (40-119%) Current payout: (0.0000)=0.0000 DASH
2015-11-09 02:13:02.672000 Pool: 1705MH/s Stale rate: 15.9% Expected time to block: 2.3 hours
2015-11-09 02:13:03.708000 RECV inv 0110000000cd52a46a140a4cbe6c4c03f9313e048ae414d138f3cef1da8407c30845e2336b
2015-11-09 02:13:03.709000 > Error handling message: (see RECV line)
2015-11-09 02:13:03.709000 > Traceback (most recent call last):
2015-11-09 02:13:03.710000 > File "D:\Python27\lib\site-packages\twisted\internet\tcp.py", line 209, in doRead
2015-11-09 02:13:03.710000 > return self._dataReceived(data)
2015-11-09 02:13:03.710000 > File "D:\Python27\lib\site-packages\twisted\internet\tcp.py", line 215, in _dataReceived
2015-11-09 02:13:03.711000 > rval = self.protocol.dataReceived(data)
2015-11-09 02:13:03.711000 > File "C:\p2pool\p2pool\util\p2protocol.py", line 27, in dataReceived
2015-11-09 02:13:03.711000 > self.dataReceived2(data)
2015-11-09 02:13:03.711000 > File "C:\p2pool\p2pool\util\datachunker.py", line 40, in _DataChunker
2015-11-09 02:13:03.712000 > wants = receiver.send(buf.get(wants))
2015-11-09 02:13:03.712000 > --- <exception caught here> ---
2015-11-09 02:13:03.712000 > File "C:\p2pool\p2pool\util\p2protocol.py", line 57, in dataReceiver
2015-11-09 02:13:03.712000 > self.packetReceived(command, type_.unpack(payload, self.ignore_trailing_payload))
2015-11-09 02:13:03.713000 > File "C:\p2pool\p2pool\util\pack.py", line 63, in unpack
2015-11-09 02:13:03.713000 > obj = self._unpack(data, ignore_trailing)
2015-11-09 02:13:03.713000 > File "C:\p2pool\p2pool\util\pack.py", line 42, in _unpack
2015-11-09 02:13:03.714000 > obj, (data2, pos) = self.read((data, 0))
2015-11-09 02:13:03.714000 > File "C:\p2pool\p2pool\util\pack.py", line 295, in read
2015-11-09 02:13:03.714000 > item[key], file = type_.read(file)
2015-11-09 02:13:03.714000 > File "C:\p2pool\p2pool\util\pack.py", line 171, in read
2015-11-09 02:13:03.715000 > res, file = self.type.read(file)
2015-11-09 02:13:03.715000 > File "C:\p2pool\p2pool\util\pack.py", line 295, in read
2015-11-09 02:13:03.715000 > item[key], file = type_.read(file)
2015-11-09 02:13:03.715000 > File "C:\p2pool\p2pool\util\pack.py", line 151, in read
2015-11-09 02:13:03.716000 > raise ValueError('enum data (%r) not in pack_to_unpack (%r)' % (data, self.pack_to_unpack))
2015-11-09 02:13:03.716000 > exceptions.ValueError: enum data (16) not in pack_to_unpack ({1: 'tx', 2: 'block', 3: 'filtered_block', 4: 'txlock_request', 5: 'txlock_vote', 6: 'spork', 7: 'masternode_winner', 8: 'masternode_scanning_error', 9: 'budget_vote', 10: 'budget_proposal', 11: 'budget_finalized', 12: 'budget_finalized_vote', 13: 'masternode_quorum', 14: 'masternode_announce', 15: 'masternode_ping'})
2015-11-09 02:13:06.768000 New work for worker! Difficulty: 0.000977 Share difficulty: 0.631912 Total block value: 4.178624 DASH including 2 transactions
2015-11-09 02:13:08.708000 P2Pool: 8700 shares in chain (4976 verified/8704 total) Peers: 6 (0 incoming)
2015-11-09 02:13:08.710000 Local: 1978kH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-2%) Expected time to share: 19.9 minutes
2015-11-09 02:13:08.710000 Shares: 2 (0 orphan, 0 dead) Stale rate: ~0.0% (0-66%) Efficiency: ~118.9% (40-119%) Current payout: (0.0000)=0.0000 DASH
2015-11-09 02:13:08.711000 Pool: 1704MH/s Stale rate: 15.9% Expected time to block: 2.3 hours
https://github.com/dashpay/p2pool-dash/pull/21/files
 

roverus

New Member
Nov 8, 2015
6
2
3
Thx, but new errors:

Outgoing connection to peer 104.207.156.161:8999 established. p2pool version: 1400 'fedb4fe-dirty'
2015-11-10 20:03:09.771000 Peer sent entire transaction de512c6f18cb8e0a6628ae0a45a0fd81cb15f1392b1387bc06151089303855d4 that was already received
2015-11-10 20:03:09.776000 Requesting parent share 5d37dece from 104.207.156.161:8999
2015-11-10 20:03:10.011000 Outgoing connection to peer 109.206.186.97:8999 established. p2pool version: 1400 'c5282ca-dirty'
2015-11-10 20:03:10.068000 Peer sent entire transaction de512c6f18cb8e0a6628ae0a45a0fd81cb15f1392b1387bc06151089303855d4 that was already received
2015-11-10 20:03:10.093000 Processing 10 shares from 104.207.156.161:8999...
2015-11-10 20:03:10.156000 > Error while processing Event callbacks:
2015-11-10 20:03:10.156000 > Traceback (most recent call last):
2015-11-10 20:03:10.157000 > File "C:\p2pool\p2pool\node.py", line 135, in download_shares
2015-11-10 20:03:10.158000 > self.handle_shares([(share, []) for share in shares], peer)
2015-11-10 20:03:10.159000 > File "C:\p2pool\p2pool\node.py", line 48, in handle_shares
2015-11-10 20:03:10.160000 > self.node.set_best_share()
2015-11-10 20:03:10.160000 > File "C:\p2pool\p2pool\node.py", line 301, in set_best_share
2015-11-10 20:03:10.161000 > self.best_share_var.set(best)
2015-11-10 20:03:10.162000 > File "C:\p2pool\p2pool\util\variable.py", line 74, in set
2015-11-10 20:03:10.162000 > self.changed.happened(value)
2015-11-10 20:03:10.163000 > --- <exception caught here> ---
2015-11-10 20:03:10.164000 > File "C:\p2pool\p2pool\util\variable.py", line 42, in happened
2015-11-10 20:03:10.165000 > func(*event)
2015-11-10 20:03:10.166000 > File "C:\p2pool\p2pool\node.py", line 96, in broadcast_share
2015-11-10 20:03:10.166000 > peer.sendShares([share for share in shares if share.peer_addr != peer.addr], self.node.tracker, self.node.known_txs_var.value, include_txs_with=[share_hash])
2015-11-10 20:03:10.167000 > File "C:\p2pool\p2pool\p2p.py", line 317, in sendShares
2015-11-10 20:03:10.168000 > assert tx_hash in known_txs, 'tried to broadcast share without knowing all its new transactions'
2015-11-10 20:03:10.169000 > exceptions.AssertionError: tried to broadcast share without knowing all its new transactions
2015-11-10 20:03:10.169000 ... done processing 10 shares. New: 10 Have: 15728/~8640
2015-11-10 20:03:10.170000 Requesting parent share a63163e8 from 104.207.156.161:8999
2015-11-10 20:03:11.428000 Outgoing connection to peer 71.58.72.67:8999 established. p2pool version: 1400 'ee22ec0-dirty'
2015-11-10 20:03:11.665000 Peer sent entire transaction de512c6f18cb8e0a6628ae0a45a0fd81cb15f1392b1387bc06151089303855d4 that was already received
2015-11-10 20:03:11.893000 P2Pool: 14724 shares in chain (12411 verified/14728 total) Peers: 3 (0 incoming)
2015-11-10 20:03:11.894000 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
 

thelazier

Active Member
Jan 5, 2015
240
184
103
Thailand
Dash Address
Xreiza1qGJMT5BpW6BDtRJqwtcBSxGwWYN
Thx, but new errors:

Outgoing connection to peer 104.207.156.161:8999 established. p2pool version: 1400 'fedb4fe-dirty'
2015-11-10 20:03:09.771000 Peer sent entire transaction de512c6f18cb8e0a6628ae0a45a0fd81cb15f1392b1387bc06151089303855d4 that was already received
2015-11-10 20:03:09.776000 Requesting parent share 5d37dece from 104.207.156.161:8999
2015-11-10 20:03:10.011000 Outgoing connection to peer 109.206.186.97:8999 established. p2pool version: 1400 'c5282ca-dirty'
2015-11-10 20:03:10.068000 Peer sent entire transaction de512c6f18cb8e0a6628ae0a45a0fd81cb15f1392b1387bc06151089303855d4 that was already received
2015-11-10 20:03:10.093000 Processing 10 shares from 104.207.156.161:8999...
2015-11-10 20:03:10.156000 > Error while processing Event callbacks:
2015-11-10 20:03:10.156000 > Traceback (most recent call last):
2015-11-10 20:03:10.157000 > File "C:\p2pool\p2pool\node.py", line 135, in download_shares
2015-11-10 20:03:10.158000 > self.handle_shares([(share, []) for share in shares], peer)
2015-11-10 20:03:10.159000 > File "C:\p2pool\p2pool\node.py", line 48, in handle_shares
2015-11-10 20:03:10.160000 > self.node.set_best_share()
2015-11-10 20:03:10.160000 > File "C:\p2pool\p2pool\node.py", line 301, in set_best_share
2015-11-10 20:03:10.161000 > self.best_share_var.set(best)
2015-11-10 20:03:10.162000 > File "C:\p2pool\p2pool\util\variable.py", line 74, in set
2015-11-10 20:03:10.162000 > self.changed.happened(value)
2015-11-10 20:03:10.163000 > --- <exception caught here> ---
2015-11-10 20:03:10.164000 > File "C:\p2pool\p2pool\util\variable.py", line 42, in happened
2015-11-10 20:03:10.165000 > func(*event)
2015-11-10 20:03:10.166000 > File "C:\p2pool\p2pool\node.py", line 96, in broadcast_share
2015-11-10 20:03:10.166000 > peer.sendShares([share for share in shares if share.peer_addr != peer.addr], self.node.tracker, self.node.known_txs_var.value, include_txs_with=[share_hash])
2015-11-10 20:03:10.167000 > File "C:\p2pool\p2pool\p2p.py", line 317, in sendShares
2015-11-10 20:03:10.168000 > assert tx_hash in known_txs, 'tried to broadcast share without knowing all its new transactions'
2015-11-10 20:03:10.169000 > exceptions.AssertionError: tried to broadcast share without knowing all its new transactions
2015-11-10 20:03:10.169000 ... done processing 10 shares. New: 10 Have: 15728/~8640
2015-11-10 20:03:10.170000 Requesting parent share a63163e8 from 104.207.156.161:8999
2015-11-10 20:03:11.428000 Outgoing connection to peer 71.58.72.67:8999 established. p2pool version: 1400 'ee22ec0-dirty'
2015-11-10 20:03:11.665000 Peer sent entire transaction de512c6f18cb8e0a6628ae0a45a0fd81cb15f1392b1387bc06151089303855d4 that was already received
2015-11-10 20:03:11.893000 P2Pool: 14724 shares in chain (12411 verified/14728 total) Peers: 3 (0 incoming)
2015-11-10 20:03:11.894000 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
I think I ignore this one :p
 

roverus

New Member
Nov 8, 2015
6
2
3
I understood correctly as follows
in command line:
--logfile nul
all work
))))
 
Last edited by a moderator:
  • Like
Reactions: thelazier

tungfa

Grizzled Member
Foundation Member
Masternode Owner/Operator
Apr 9, 2014
8,898
6,744
1,283
I think we should update this OP !
can somebody please post me new details for this and i update OP / or sticky new post
tx
 

tungfa

Grizzled Member
Foundation Member
Masternode Owner/Operator
Apr 9, 2014
8,898
6,744
1,283
  • Like
Reactions: thelazier

Rahul Manuwas

New Member
Jul 7, 2017
7
0
1
31
Hi! I am trying to create my own pool and all is set and done. Though the miners are creating around 20 kH/s, why do I always get this message:

Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???

Any help is appreciated.
 

thelazier

Active Member
Jan 5, 2015
240
184
103
Thailand
Dash Address
Xreiza1qGJMT5BpW6BDtRJqwtcBSxGwWYN
Hi! I am trying to create my own pool and all is set and done. Though the miners are creating around 20 kH/s, why do I always get this message:

Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???

Any help is appreciated.
IMO, 20 kH/s is too low to get any share so it's possibly unable to be calculated on Mainnet.
 

Rahul Manuwas

New Member
Jul 7, 2017
7
0
1
31
IMO, 20 kH/s is too low to get any share so it's possibly unable to be calculated on Mainnet.
Thanks for the possible explanation. What's the minimum hash should I calculate so that the statistics shows correctly? Current Pool Rate is 540GH/s (12% DOA+orphan).
 

thelazier

Active Member
Jan 5, 2015
240
184
103
Thailand
Dash Address
Xreiza1qGJMT5BpW6BDtRJqwtcBSxGwWYN
Thanks for the possible explanation. What's the minimum hash should I calculate so that the statistics shows correctly? Current Pool Rate is 540GH/s (12% DOA+orphan).
540GH/s is about 540,000,000kH/s
So, please try run p2pool on Testnet to check whether your setup have same problem or not. Testnet global pool hash rate is about 16MH/s (about 16,000kH/s).
 

Rahul Manuwas

New Member
Jul 7, 2017
7
0
1
31
540GH/s is about 540,000,000kH/s
So, please try run p2pool on Testnet to check whether your setup have same problem or not. Testnet global pool hash rate is about 16MH/s (about 16,000kH/s).
Thank you @thelazier I will run p2pool on Testnet now. Please consider me a novice while answering my following question:
The Local rate in p2pool is the local hash rate that is being generated by the miners on my pool (I have 5, so 5x25 = 125 kH/s). If I want to display this on the Local rate, how can I do that? Will that be wrong?
 

thelazier

Active Member
Jan 5, 2015
240
184
103
Thailand
Dash Address
Xreiza1qGJMT5BpW6BDtRJqwtcBSxGwWYN
Thank you @thelazier I will run p2pool on Testnet now. Please consider me a novice while answering my following question:
The Local rate in p2pool is the local hash rate that is being generated by the miners on my pool (I have 5, so 5x25 = 125 kH/s). If I want to display this on the Local rate, how can I do that? Will that be wrong?
The pool's local hash rate usually be calculated from valid shares submit from miners if your miners doesn't submit any valid shares the pool's local hash rate would show 0.