Author

Topic: [ANN] CRAVE 1st POS Masternodes | Dark Assets | I2P | Market =Embrace The Dark= - page 531. (Read 826757 times)

sr. member
Activity: 336
Merit: 250
 Grin 300k tonight i was wrong lol. sell then buy back in. BAM car payment . Thank you Crave!
hero member
Activity: 852
Merit: 500
Wait, was my IP I set in the conf supposed to be my WAN IP? damn I messed that up. Set my LAN as static and placed that in the conf. No wonder I could connect with stealth ports.. Was not going anywhere.
full member
Activity: 210
Merit: 100
to get the max profit from your 5$ VPS, make an NHZ hallmark and get some payments Grin

copy below code
on your VPS: nano nhz.py
paste the code and save

run: python nhz.py and wait until it says type your passpharse

tips: C8vPmVTzUCeDLysdKEsT8wM5vrqbUyuwpu

Code:
import os
import sys
import urllib2
import urllib
import json
import time
import re
import getpass

INSTALL_PATH = '/srv/'
CONF_FILE = os.path.join(INSTALL_PATH, "hz-v3.9/conf/nhz-default.properties")
NHZ_PATH = os.path.join(INSTALL_PATH, "hz-v3.9")
SUPERVISOR_CONF = "/etc/supervisor/conf.d/nhz.conf"


def make_get(url):
    response = urllib2.urlopen(url)
    html = response.read()

    return html


def make_post(url, data):
    data = urllib.urlencode(data)
    req = urllib2.Request(url=url,data=data)
    content = urllib2.urlopen(req).read()

    return content


def installed():
    return os.path.exists(CONF_FILE)


def edited(ip):
    return ip in open(CONF_FILE).read()


def get_ip():
    return json.loads(make_get("http://httpbin.org/ip"))["origin"]


def create_hallmark(ip, secret):
    endpoint = 'http://127.0.0.1:7776/nhz'

    content = make_post(endpoint, {
        "requestType": "markHost",
        "host": ip,
        "weight": 100,
        "date": "2013-12-10",
        "secretPhrase": secret,
    })

    return json.loads(content)["hallmark"]


def update_config(ip, hallmark):
    conf_content = open(CONF_FILE).read()

    conf_content = re.sub("nhz.myHallmark=([^\n]*)\n", "nhz.myHallmark={}".format(hallmark), conf_content)
    conf_content = re.sub("nhz.myAddress=([^\n]*)\n", "nhz.myAddress={}".format(ip), conf_content)

    f = open(CONF_FILE, 'w+')
    f.write(conf_content)
    f.close()

    print "config updated with addr: {}, hallmark: {}".format(ip, hallmark)


def write_supervisor_config():
    if not os.path.exists(os.path.dirname(SUPERVISOR_CONF)):
        os.makedirs(os.path.dirname(SUPERVISOR_CONF))

    file_content = """[program:quark]
directory={}
command=/bin/sh run.sh
stdout_logfile=/var/log/nhz.log
stderr_logfile=/var/log/nhz.error.log
autorestart=true""".format(NHZ_PATH)

    f = open(SUPERVISOR_CONF, "w+")
    f.write(file_content)
    f.close()


def main():

    try:
        f = open("/root/sec-test", "w+")
        f.close()
    except IOError:
        print >> sys.stderr, "You need root permissions to run this script."
        sys.exit(1)

    if not installed():
        print "installing dependencies..."
        os.system("apt-get update -y")
        os.system("apt-get install -y screen")
        os.system("apt-get install -y openjdk-7-jre")
        os.system("apt-get install -y unzip")
        os.system("apt-get install -y supervisor")

        os.chdir(INSTALL_PATH)
        os.system("wget https://github.com/NeXTHorizon/hz-source/releases/download/hz-v3.9/hz-v3.9.zip")
        os.system("unzip hz-v3.9.zip")

        # open port
        os.system("iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 7774 -j ACCEPT")

    os.chdir(NHZ_PATH)

    ip = get_ip()

    if not edited(ip):
        os.system("screen -d -m -S hallmark ./run.sh")
        print "waiting 30 seconds for node to set itself up..."
        time.sleep(30)
        try:
            hallmark = create_hallmark(ip, getpass.getpass("enter your secret phrase:\n"))
            update_config(ip, hallmark)
        finally:
            os.system("screen -S hallmark -X quit")

        write_supervisor_config()
        print "starting supervisord"
        os.system("service supervisor stop")
        time.sleep(3)
        os.system("service supervisor start")

        print "-" * 42
        print "success! your hallmark node set on ip: {}".format(ip)
        print "NHZ address for donations: NHZ-MGUU-WTUR-JC6K-DREBV"
        print "thanks!"
        print "-" * 42


if __name__ == '__main__':
    main()
full member
Activity: 155
Merit: 100
Just bought 100 Crave to join the future financial elite. :p  Cheesy

welcome   buy yourself 400 more quickly Smiley
sr. member
Activity: 331
Merit: 250
masternode.conf file name is correct ?
legendary
Activity: 2758
Merit: 1075
dash dumping???lol watch the btc come to crave Grin
newbie
Activity: 16
Merit: 0
Just bought 100 Crave to join the future financial elite. :p  Cheesy
legendary
Activity: 1551
Merit: 1002
♠ ♥ ♣ ♦ < ♛♚&#
How do I check if the masternode is running correctly?
in your VPS :
./craved  masternode list | grep YOUR-IP

If is working:
YOUR-IP:1
sr. member
Activity: 331
Merit: 250
How do I check if the masternode is running correctly?

masternode list | grep MASTERNODEIP
full member
Activity: 140
Merit: 100
legendary
Activity: 1453
Merit: 1030
How do I check if the masternode is running correctly?

Getting a bunch of

CheckBlock() : skipping transaction locking checks
CheckBlock() : skipping masternode payment checks

in the debug.
legendary
Activity: 1232
Merit: 1001
sr. member
Activity: 331
Merit: 250
i want run multi mastenode with 1 server (many ip )
how ? on DASH file masternode.conf  MYMASTERNODE1 123.45.67.89:9999 MASTERNODEPRIVKEY d1197905eaffd2fbfcd35f681adba92b25e32c62de6d0f7a5487926c01a70897 0​  works

i run 2 instance craved and bind different port but i want 1 instance with file masternode.conf and many definitions masternode
legendary
Activity: 2702
Merit: 1240
legendary
Activity: 1456
Merit: 1014
legendary
Activity: 1540
Merit: 1002
lets goto 300k now shall we  Grin Grin Grin

I'm a technical analysis guy...IMO we're possibly on the cusp of great big green candles that'll take us up to 0.005 or higher just like that.
So far this phase two rally from 0.0004 has been slow and someone(s) has been deliberate to not make these great big green candles...
Unfortunately for these quiet buyers, as price and volume increases, and as we find that masternodes are working flawlessly, we are getting more and more attention from bigger and bigger fish.
These bigger fish are going to snatch up all sub-0.005 crave that they can when they do the value versus cost proposition here, creating huge green candles.
JL

Well I hope you're right!
sr. member
Activity: 387
Merit: 250
trying to install wallet for the first time on a new pc.
what do i need to open a .7z file from Mega
TY

edit: srry, noob question


try 7 zip, http://www.7-zip.org/

edit : noob answer  Grin Grin Grin

thx m8
sr. member
Activity: 462
Merit: 250
lets goto 300k now shall we  Grin Grin Grin

I'm a technical analysis guy...IMO we're possibly on the cusp of great big green candles that'll take us up to 0.005 or higher just like that.
So far this phase two rally from 0.0004 has been slow and someone(s) has been deliberate to not make these great big green candles...
Unfortunately for these quiet buyers, as price and volume increases, and as we find that masternodes are working flawlessly, we are getting more and more attention from bigger and bigger fish.
These bigger fish are going to snatch up all sub-0.005 crave that they can when they do the value versus cost proposition here, creating huge green candles.
JL
Jump to: