Masternode Payments, Attention pool operators!

eduffield

Core Developer
Mar 9, 2014
1,084
5,320
183
Attention Pool Operators
** IF YOU HAVEN'T PATCHED YOUR STRATUM, NOMP OR P2POOL SOFTWARE IT WILL FAIL TO WORK AFTER THE 25TH **

Please copy your environment and connect to testnet to ensure compatability.

RC2 Compatible Source:

Stratum: https://github.com/darkcoinproject/darkcoin-stratum
NOMP: https://github.com/zone117x/node-open-mining-portal
P2Pool: https://bitbucket.org/dstorm/p2pool-drk

Blockchain explorer: http://23.23.186.131:1234/chain/DarkCoin

With a working setup you should be able to get a block on testnet and see masternode payments.

Thanks,

Darkcoin Team
 

mattmct

Member
Mar 13, 2014
259
92
88
Very nice indeed! Cheers for this!
Can we update our live / production p2pools to this now (ahead of the fork) ? Or do we have to wait till the moment of the fork?
 

elbereth

Active Member
Dash Support Group
Mar 25, 2014
456
480
133
Costa Rica
dashninja.pl
Dash Address
XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
Can someone send 1000 DRK so I can test my MN setup?
mjbK1YsghLP4Qg8WiTyt7j3RPES1XM8ft6
I am mining on testnet but it will take for ever with the confirmations to get the 1000 DRK for the MN.
 

mattmct

Member
Mar 13, 2014
259
92
88
You need to wait until 25 May , on 25 May you need to update your node :)
Cheers mate, thanks for clarifying this. I remembered from the last up date we had to wait to do it. I'm going to be on a flight from UK to US at that moment, going to have to find and modoft that auto scrypt that chaeplin made!
 

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
Cheers mate, thanks for clarifying this. I remembered from the last up date we had to wait to do it. I'm going to be on a flight from UK to US at that moment, going to have to find and modoft that auto scrypt that chaeplin made!
To switch https://bitbucket.org/dstorm/p2pool-drk ,
Use this : https://gist.github.com/chaeplin/e6157be59d5f9a94d580

when current_time is > 1401033600:
stop /opt/p2pool-drk , mv /opt/p2pool-drk-old
mv /opt/p2pool-drk2 to /opt/p2pool-drk
run /opt/p2pool-drk

quick and dirty ;D
 

mattmct

Member
Mar 13, 2014
259
92
88
To switch https://bitbucket.org/dstorm/p2pool-drk ,
Use this : https://gist.github.com/chaeplin/e6157be59d5f9a94d580

when current_time is > 1401033600:
stop /opt/p2pool-drk , mv /opt/p2pool-drk-old
mv /opt/p2pool-drk2 to /opt/p2pool-drk
run /opt/p2pool-drk

quick and dirty ;D
Awesome awesome awesome! :D Thanks a lot chaeplin!
Looking through your script.

1) I looks like I have to download https://bitbucket.org/dstorm/p2pool-drk to -> p2pool-drk2
2) edit your script to my config / settings
3) add crontab with
# */1 * * * * /pathto_scripts/p2pool_hardfork.py
# mv /opt/p2pool-drk2 /p2pool-drk and run

And then let it work its magic? :)

Little confused what the "/opt/" is, is that my user name / home folder? If so, should I saw out the opt for my user?

Cheers!
 

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
Awesome awesome awesome! :D Thanks a lot chaeplin!
Looking through your script.

1) I looks like I have to download https://bitbucket.org/dstorm/p2pool-drk to -> p2pool-drk2
2) edit your script to my config / settings
3) add crontab with
4) chmod 755 /pathto_scripts/p2pool_hardfork.py
5) run /pathto_scripts/p2pool_hardfork.py for test
6) add cron
# */1 * * * * /pathto_scripts/p2pool_hardfork.py
# mv /opt/p2pool-drk2 /p2pool-drk and run <--- done by cron, no need

And then let it work its magic? :)

Little confused what the "/opt/" is, is that my user name / home folder? If so, should I saw out the opt for my user?

Cheers!
Code:
1) I looks like I have to download https://bitbucket.org/dstorm/p2pool-drk to -> p2pool-drk2
2) edit your script to my config / settings
3) chmod 755 /pathto_scripts/p2pool_hardfork.py
4) run /pathto_scripts/p2pool_hardfork.py for test
5) add cron
# */1 * * * * /pathto_scripts/p2pool_hardfork.py
# mv /opt/p2pool-drk2 /p2pool-drk and run <--- done by cron, no need
/opt is name of add-on package directory.
my p2pool directory is /opt/p2pool-drk, and new repos is downloaded to /opt/p2pool-drk2

I used the scripts for previous hard fork, for me move data was not enough. So I changed move_cmd.
Code:
- move_cmd = "cd " + p2pool_directory + " && mv data/darkcoin data/darkcoin.old"
--> changed
+ move_cmd = "cd /opt && mv p2pool-drk p2pool-drk-old && mv p2pool-drk2 p2pool-drk"
https://gist.github.com/chaeplin/e6157be59d5f9a94d580/revisions

move_cmd do move current to old, new to current.

change this 3 lines.
https://gist.github.com/chaeplin/e6157be59d5f9a94d580#file-p2pool_hardfork-py-L9-L11
p2pool_directory = "/opt/p2pool-drk"
p2pool_pid = "31327"
p2pool_runcmd = "screen -d -m -S P2P_DRK python ./run_p2pool.py --net darkcoin --give-author 0 --disable-upnp -f 1 -a XmgHzP9nWKJJgqn44dwQzqWAiEgJAw76JS"

change this line
(if your p2pool direc is /home/p2pool-drk and new is in /home/p2pool-drk-new,
will be
move_cmd = "cd /home && mv p2pool-drk p2pool-drk-old && mv p2pool-drk-new p2pool-drk"
or
move_cmd = "mv /home/p2pool-drk /home/p2pool-drk-old && mv /home/p2pool-drk-new /home/p2pool-drk"
)

https://gist.github.com/chaeplin/e6157be59d5f9a94d580#file-p2pool_hardfork-py-L42
move_cmd = "cd /opt && mv p2pool-drk p2pool-drk-old && mv p2pool-drk2 p2pool-drk"
 
Last edited by a moderator:

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
Last edited by a moderator:
  • Like
Reactions: mattmct