Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

Masternode Payments, Attention pool operators!

Discussion in 'Official Developer Thread' started by eduffield, May 22, 2014.

  1. eduffield

    eduffield Core Developer
    Dash Core Team

    Joined:
    Mar 9, 2014
    Messages:
    1,084
    Likes Received:
    5,317
    Trophy Points:
    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
     
  2. Scriptiee

    Scriptiee Member

    Joined:
    Apr 24, 2014
    Messages:
    44
    Likes Received:
    20
    Trophy Points:
    48
    If you weren't in another country on the otherside of the planet I would totally give you a pat on the back. Well done mate!!! Keep it up!
     
  3. yidakee

    yidakee Well-known Member
    Foundation Member

    Joined:
    Apr 16, 2014
    Messages:
    1,812
    Likes Received:
    1,168
    Trophy Points:
    283
    Evan's the shnitzenbrocker of crypto's!
     
  4. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,574
    Likes Received:
    1,656
    Trophy Points:
    1,283
  5. mattmct

    mattmct Member

    Joined:
    Mar 13, 2014
    Messages:
    259
    Likes Received:
    92
    Trophy Points:
    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?
     
  6. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    438
    Likes Received:
    466
    Trophy Points:
    133
    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.
     
  7. scorpio18

    scorpio18 New Member

    Joined:
    Apr 27, 2014
    Messages:
    25
    Likes Received:
    3
    Trophy Points:
    3
    You need to wait until 25 May , on 25 May you need to update your node :)
     
  8. mattmct

    mattmct Member

    Joined:
    Mar 13, 2014
    Messages:
    259
    Likes Received:
    92
    Trophy Points:
    88
    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!
     
  9. chaeplin

    chaeplin Official Dash Dev
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    355
    Trophy Points:
    133
    Dash Address:
    XiDWe5fkVcrXBQApmCFQUxpue5iuWcbmcK
    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
     
    • Like Like x 2
  10. mattmct

    mattmct Member

    Joined:
    Mar 13, 2014
    Messages:
    259
    Likes Received:
    92
    Trophy Points:
    88
    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!
     
  11. chaeplin

    chaeplin Official Dash Dev
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    355
    Trophy Points:
    133
    Dash Address:
    XiDWe5fkVcrXBQApmCFQUxpue5iuWcbmcK
    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"
     
    #11 chaeplin, May 23, 2014
    Last edited by a moderator: May 24, 2014
  12. chaeplin

    chaeplin Official Dash Dev
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    355
    Trophy Points:
    133
    Dash Address:
    XiDWe5fkVcrXBQApmCFQUxpue5iuWcbmcK
    #12 chaeplin, May 24, 2014
    Last edited by a moderator: May 24, 2014
    • Like Like x 1
  13. mattmct

    mattmct Member

    Joined:
    Mar 13, 2014
    Messages:
    259
    Likes Received:
    92
    Trophy Points:
    88
  14. HammerHedd

    HammerHedd Member

    Joined:
    Mar 10, 2014
    Messages:
    182
    Likes Received:
    34
    Trophy Points:
    88

Share This Page