Giter Site home page Giter Site logo

masternode-scripts's Introduction

Pentanode

Shell script to install a Pentanode Masternode on a Linux server running Ubuntu 16.04. Use it on your own risk.


Installation for v1.1.0.1-60010:

wget -q https://raw.githubusercontent.com/PentaNode/Masternode/master/pentanode.sh
bash pentanode.sh

Desktop wallet setup

After the MN is up and running, you need to configure the desktop wallet accordingly. Here are the steps:

  1. Open the Pentanode Desktop Wallet.
  2. Go to RECEIVE and create a New Address: MN1
  3. Send 2500 5000 10000 15000 or 25000 PTN to MN1.
  4. Wait for 15 confirmations.
  5. Go to Help -> "Debug Window - Console"
  6. Type the following command: masternode outputs
  7. Go to Masternodes tab
  8. Click Create and fill the details:
  • Alias: MN1
  • Address: VPS_IP:PORT
  • Privkey: Value given during VPS Setup
  • TxHash: First value from Step 6
  • Output index: Second value from Step 6
  • Reward address: leave blank or fill with PTN address of your choice
  • Reward %: leave blank or fill with the percentage of your choice
  1. Click OK to add the masternode
  2. Click Update
  3. Click Start All

Multiple MN on one VPS:

It is now possible to run multiple Pentanode Master Nodes on the same VPS. Each MN will run under a different user you will choose during installation.


Usage:

For security reasons Pentanode is installed under a normal user, usually pentanode, hence you need to su - pentanode before checking:

PENTAUSER=pentanode #replace pentanode with the MN username you want to check  
su - $PENTAUSER
PentaNoded masternode status  
PentaNoded getinfo

Also, if you want to check/start/stop pentanode daemon for a particular MN, run one of the following commands as root:

PENTAUSER=pentanode  #replace pentanode with the MN username you want to check  
systemctl status $PENTAUSER #To check the service is running  
systemctl start $PENTAUSER #To start PentaNoded service  
systemctl stop $PENTAUSER #To stop PentaNoded service  
systemctl is-enabled $PENTAUSER #To check PentaNoded service is enabled on boot  

Wallet re-sync

If you need to resync the wallet, run the following commands as root:

PENTAUSER=pentanode  #replace pentanode with the MN username you want to resync
systemctl stop $PENTAUSER
rm -r /home/$PENTAUSER/.PentaNoded/{banlist.dat,blk0001.dat,database,db.log,mncache.dat,peers.dat,smsgDB,smsg.ini,txleveldb}
systemctl start $PENTAUSER

masternode-scripts's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.