Developement work for p2pool and NOMP Stratum patch

dstorm

New Member
May 9, 2014
15
19
3
P2Pool is ready for testing.

Masternode support and various fixes has been added. It is based on the latest p2pool code and includes full commit history. More changes are coming soon.

It won't work on mainnet before the May 25 hardfork.

Testnet pool: http://92.222.7.210:18998
Sourcecode: https://bitbucket.org/dstorm/p2pool-drk

I'm on IRC if you need any help.

Donation addresses:
DRK - XygrQjVajAjoCMe3GFsMCWGG35y64k1HJ4
BTC - 1fwXR6EaCYB2yboKG63ZdudqKFghQCegC
 
  • Like
Reactions: HammerHedd

HammerHedd

Member
Mar 10, 2014
182
34
88
So to update our current pool on May 25, should we do a pull from your repository? I'm not terribly familiar with the git mechanism... Also, will this need to be recompiled, or will the python modules drop in without too much fuss?

BTW, dstorm you rock, dude. Thanks so much for fixing this!
 
Last edited by a moderator:

dstorm

New Member
May 9, 2014
15
19
3
So to update our current pool on May 25, should we do a pull from your repository? I'm not terribly familiar with the git mechanism... Also, will this need to be recompiled, or will the python modules drop in without too much fuss?

BTW, dstorm you rock, dude. Thanks so much for fixing this!
Yes you need to do a git clone https://bitbucket.org/dstorm/p2pool-drk.

Port numbers has changed to 8998 and 8999. 18998 and 18999 for testnet.

xcoin_hash module is the same but I have made a new darkcoin_subsidy. It has fewer dependencies and a new getblockvalue method for the testnet. I think you can continue to use the old module, just change the method name in networks.py

Only the classic frontend is included in my repo but extra API stats will be added today and the block number bug has been fixed, so you should be able to use any alternative frontend without patching.

I will probably also add automatic difficulty adjustment by address/worker hashrate.
 
  • Like
Reactions: chaeplin

vertoe

Three of Nine
Mar 28, 2014
2,573
1,652
1,283
Unimatrix Zero One
Confirming P2Pool works on testnet!

This is what I got, the first one is masternode payout and the second one is p2pool mining reward.
Code:
    {
        "account" : "0",
        "address" : "n1eGts3Lmz7dBjKd8dSUoNDTgnz3FecWUs",
        "category" : "immature",
        "amount" : 15.30000000,
        "confirmations" : 1,
        "generated" : true,
        "blockhash" : "00000003684123eef69643268c4e2841871d218822f79eee9e47a9e294e75f72",
        "blockindex" : 0,
        "blocktime" : 1400780029,
        "txid" : "ef6ac8a5a1dd1ab50770fbabd6f7ebbd8ddcd5bc8bd5183f636309968a34d938",
        "time" : 1400780029,
        "timereceived" : 1400780062
    },
    {
        "account" : "",
        "address" : "mjEx5FX9oNc5EAxLP6yrNjwiymQqfP6UK8",
        "category" : "immature",
        "amount" : 19.34406178,
        "confirmations" : 1,
        "generated" : true,
        "blockhash" : "00000003684123eef69643268c4e2841871d218822f79eee9e47a9e294e75f72",
        "blockindex" : 0,
        "blocktime" : 1400780029,
        "txid" : "ef6ac8a5a1dd1ab50770fbabd6f7ebbd8ddcd5bc8bd5183f636309968a34d938",
        "time" : 1400780029,
        "timereceived" : 1400780062
    }
Link to this transaction: http://23.23.186.131:1234/tx/ef6ac8a5a1dd1ab50770fbabd6f7ebbd8ddcd5bc8bd5183f636309968a34d938
 

vertoe

Three of Nine
Mar 28, 2014
2,573
1,652
1,283
Unimatrix Zero One
I always have to wait half a minute to get work for a new block, why is that?

Code:
[19:38:19] Found block for Pool 0!
[19:38:19] Pool 0 difficulty changed to 0.001
[19:38:19] Stratum from Pool 0 requested work restart
[19:38:19] Accepted 09abeb59 Diff 0.103/0.001 BLOCK! GPU 0
[19:38:19] Stratum connection to Pool 0 interrupted
[19:38:20] Pool 0 not responding!

(10 seconds break)

[19:38:30] Waiting for work to be available from pools.

(21 seconds break)

[19:38:51] Pool 0 difficulty changed to 0.001
[19:38:51] Network diff set to 0
[19:38:51] Stratum from Pool 0 detected new block
[19:38:51] Stratum from Pool 0 requested work restart
[19:38:54] Work available from pools, resuming.
[19:38:55] Accepted 044a289e Diff 0.001/0.001 GPU 0
 

HammerHedd

Member
Mar 10, 2014
182
34
88
Apologies to everyone... Darkcoin.kicks-ass.net will be late in updating. I had a family emergency late yesterday and I won't be able to update until I get back to the US on Monday night.

I'm trying to write a replacement script to update on the 25th, but for some reason on my pull, p2pool can't find xcoin.py. should it even be looking for that with the new darkcoin subsidy? Did I miss a config step?

This is sent from my phone, so please excuse the poor grammar and formatting.
 

Propulsion

The buck stops here.
Feb 26, 2014
1,008
468
183
Dash Address
XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
dstorm The issues that arose on Thursday, were they ever resolved?
 

HammerHedd

Member
Mar 10, 2014
182
34
88
That sucks... I've seen some really high spikes today, like 1.3 G/Hs. I wonder if that is related