Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/phoreproject/vps
Browse files Browse the repository at this point in the history
  • Loading branch information
tohsnoom committed Jan 18, 2018
2 parents c91ee01 + dcd813a commit d89ace5
Show file tree
Hide file tree
Showing 42 changed files with 133 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store*
.DS_Store*
*.DS_Store*
assets/collage.jpeg
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ The *install.sh* script support the following parameters:

## Troubleshooting the masternode on the VPS

If you want to check the status of your masternode, the best way is currently running the cli e.g. via
If you want to check the status of your masternode, the best way is currently running the cli e.g. for $MUE via

```
/usr/local/bin/mue-cli -conf=/etc/masternodes/mue_n1.conf getinfo
Expand Down Expand Up @@ -207,6 +207,9 @@ The management script release will follow within the next couple of days.
| CROWD | ![CROWD](/assets/crowd.jpg) | http://crowdcoin.site/ |
| NUMUS | ![NUMUS](/assets/numus.jpg) | http://numus.cash/ |
| PHORE | ![PHORE](/assets/phore.jpg) | http://phore.io/ |
| NODE | ![NODE](/assets/node.jpg) | https://bitnodes.co/ |
| SUB1X | ![SUB1X](/assets/sub1x.jpg) | https://bitcointalk.org/index.php?topic=2282282.0 |
| SEND | ![SEND](/assets/send.jpg) | https://socialsend.io/ |

# Todo
* provide my Dockerfile & Vagrantfile
Expand Down
Binary file added assets/DSTkKH_XUAArpAF.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/alqo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/block.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/collage.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/collage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/crowd.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/crown.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/curium.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/default.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dtmi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/have.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/innova.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/magna.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/magnet.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/mona.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/mtnc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/node.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/numus.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/rns.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/send.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/smart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sub1x.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/yup.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/zcoin.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions config/curium/curium.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# monkey patching b/c ...
cp ../../config/curium/secp256k1buildfix.patch src/
patch -p0 < src/secp256k1buildfix.patch
# end monkey patching

chmod u+x ./autogen.sh
chmod u+x share/genbuild.sh
./autogen.sh
./configure --disable-dependency-tracking --enable-tests=no --without-miniupnpc --with-incompatible-bdb CFLAGS="-march=native" LIBS="-lcurl -lssl -lcrypto -lz"
make
make install
6 changes: 6 additions & 0 deletions config/curium/curium.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CODENAME=curium
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/curiumd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-12845}
GIT_URL="https://github.com/mrmetech/Curium.git"
SCVERSION="master"
NETWORK_BASE_TAG="2009"
14 changes: 14 additions & 0 deletions config/curium/secp256k1buildfix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- src/secp256k1/old_Makefile.am 2018-01-04 18:37:35.116643051 +0000
+++ src/secp256k1/Makefile.am 2018-01-04 18:38:22.400697181 +0000
@@ -75,8 +75,9 @@
endif

if USE_ECMULT_STATIC_PRECOMPUTATION
-CPPFLAGS_FOR_BUILD +=-I$(top_srcdir)
-CFLAGS_FOR_BUILD += -Wall -Wextra -Wno-unused-function
+CPPFLAGS_FOR_BUILD = -I$(top_srcdir)
+CFLAGS_FOR_BUILD = -Wall -Wextra -Wno-unused-function
+CC_FOR_BUILD = g++

gen_context_OBJECTS = gen_context.o
gen_context_BIN = gen_context$(BUILD_EXEEXT)
6 changes: 6 additions & 0 deletions config/node/node.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

./autogen.sh
./configure --disable-dependency-tracking --enable-tests=no --without-gui --without-miniupnpc --with-incompatible-bdb CFLAGS="-march=native" LIBS="-lcurl -lssl -lcrypto -lz"
make
make install
6 changes: 6 additions & 0 deletions config/node/node.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CODENAME=node
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/bitnodesd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-7227}
GIT_URL=https://github.com/bitnodes/bitnodes.git
SCVERSION="master"
NETWORK_BASE_TAG="2002"
8 changes: 8 additions & 0 deletions config/send/send.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

chmod u+x ./autogen.sh
chmod u+x share/genbuild.sh
./autogen.sh
./configure --disable-dependency-tracking --enable-tests=no --without-gui --without-miniupnpc --with-incompatible-bdb CFLAGS="-march=native" LIBS="-lcurl -lssl -lcrypto -lz"
make
make install
6 changes: 6 additions & 0 deletions config/send/send.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CODENAME=send
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/sendd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-50050}
GIT_URL=https://github.com/SocialSend/SocialSend.git
SCVERSION="tags/1.0.0.7"
NETWORK_BASE_TAG="2012"
4 changes: 2 additions & 2 deletions config/smart/smart.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ CODENAME=smart
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/smartcashd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-9678}
GIT_URL=https://github.com/SmartCash/smartcash.git
SCVERSION="tags/v1.0.2"
NETWORK_BASE_TAG="2012"
SCVERSION="tags/v1.1.0"
NETWORK_BASE_TAG="2012"
8 changes: 8 additions & 0 deletions config/sub1x/sub1x.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

chmod u+x autogen.sh
chmod u+x share/genbuild.sh
./autogen.sh
./configure --disable-dependency-tracking --enable-tests=no --without-gui --without-miniupnpc --with-incompatible-bdb CFLAGS="-march=native" LIBS="-lcurl -lssl -lcrypto -lz"
make
make install
6 changes: 6 additions & 0 deletions config/sub1x/sub1x.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CODENAME=sub1x
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/sub1xd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-43172}
GIT_URL=https://github.com/SuB1X-Coin/SuB1X.git
SCVERSION="master"
NETWORK_BASE_TAG="2009"
15 changes: 15 additions & 0 deletions config/synx/rpcrawtxbuild.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- src/old_rpcrawtransaction.cpp 2018-01-04 18:09:03.904497370 +0000
+++ src/rpcrawtransaction.cpp 2018-01-04 18:11:57.957359497 +0000
@@ -214,12 +214,7 @@
CTxDestination address;
if (ExtractDestination(pk, address))
{
- #warning BOOST_VERSION
- #if ((BOOST_VERSION / 10000 == 1) && (BOOST_VERSION / 100 % 1000 == 58))
const CScriptID& hash = boost::get<CScriptID>(address);
- #else
- const CScriptID& hash = boost::get<CScriptID&>(address);
- #endif
CScript redeemScript;
if (pwalletMain->GetCScript(hash, redeemScript))
entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));
7 changes: 6 additions & 1 deletion config/synx/synx.compile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

# monkey patching b/c synx ...
cp ../../config/synx/rpcrawtxbuild.patch src/
patch -p0 < src/rpcrawtxbuild.patch
# end monkey patching

cd src
make -f makefile.unix USE_UPNP=-
cp Syndicated ${MNODE_DAEMON}
cp Syndicated ${MNODE_DAEMON}
2 changes: 1 addition & 1 deletion config/synx/synx.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ CODENAME=synx
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/syndicated}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-9999}
GIT_URL=https://github.com/SyndicateLtd/SyndicateQT.git
SCVERSION="tags/v1.0.1.8"
SCVERSION="tags/v1.9.2"
NETWORK_BASE_TAG="2012"
14 changes: 14 additions & 0 deletions config/vivo/secp256k1buildfix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- src/secp256k1/old_Makefile.am 2018-01-04 18:37:35.116643051 +0000
+++ src/secp256k1/Makefile.am 2018-01-04 18:38:22.400697181 +0000
@@ -75,8 +75,9 @@
endif

if USE_ECMULT_STATIC_PRECOMPUTATION
-CPPFLAGS_FOR_BUILD +=-I$(top_srcdir)
-CFLAGS_FOR_BUILD += -Wall -Wextra -Wno-unused-function
+CPPFLAGS_FOR_BUILD = -I$(top_srcdir)
+CFLAGS_FOR_BUILD = -Wall -Wextra -Wno-unused-function
+CC_FOR_BUILD = g++

gen_context_OBJECTS = gen_context.o
gen_context_BIN = gen_context$(BUILD_EXEEXT)
9 changes: 8 additions & 1 deletion config/vivo/vivo.compile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/bin/bash

# monkey patching b/c vivo ...
cp ../../config/vivo/secp256k1buildfix.patch src/
patch -p0 < src/secp256k1buildfix.patch
# end monkey patching

chmod u+x ./autogen.sh
chmod u+x share/genbuild.sh
./autogen.sh
./configure --disable-dependency-tracking --enable-tests=no --without-gui --without-miniupnpc --with-incompatible-bdb CFLAGS="-march=native" LIBS="-lcurl -lssl -lcrypto -lz"
make
make install
make install
11 changes: 7 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# ╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
# ╚╗ @marsmensch 2016-2017 ╔╝
#
# version v0.8.2
# date 2017-12-07
# version v0.8.4
# date 2018-01-16
#
# function: part of the masternode scripts, source the proper config file
#
Expand All @@ -30,7 +30,7 @@ declare -r CRYPTOS=`ls -l config/ | egrep '^d' | awk '{print $9}' | xargs echo -
declare -r DATE_STAMP="$(date +%y-%m-%d-%s)"
declare -r SCRIPTPATH=$( cd $(dirname ${BASH_SOURCE[0]}) > /dev/null; pwd -P )
declare -r MASTERPATH="$(dirname "${SCRIPTPATH}")"
declare -r SCRIPT_VERSION="v0.8.2"
declare -r SCRIPT_VERSION="v0.8.4"
declare -r SCRIPT_LOGFILE="/tmp/nodemaster_${DATE_STAMP}_out.log"
declare -r IPV4_DOC_LINK="https://www.vultr.com/docs/add-secondary-ipv4-address"

Expand All @@ -42,7 +42,7 @@ cat << "EOF"
██║╚██╗██║██║ ██║██║ ██║██╔══╝ ██║╚██╔╝██║██╔══██║╚════██║ ██║ ██╔══╝ ██╔══██╗
██║ ╚████║╚██████╔╝██████╔╝███████╗██║ ╚═╝ ██║██║ ██║███████║ ██║ ███████╗██║ ██║
╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
╚╗ @marsmensch 2016-2017 ╔╝
╚╗ @marsmensch 2016-2018 ╔╝
EOF
}

Expand Down Expand Up @@ -548,6 +548,9 @@ function final_call() {
echo "Add your masternode private keys now."
echo "eg in /etc/masternodes/${CODENAME}_n1.conf"
echo ""
echo "=> All configuration files are in: ${MNODE_CONF_BASE}"
echo "=> All Data directories are in: ${MNODE_DATA_BASE}"
echo ""
echo "last but not least, run /usr/local/bin/activate_masternodes_${CODENAME} as root to activate your nodes."

# place future helper script accordingly
Expand Down

0 comments on commit d89ace5

Please sign in to comment.