diff --git a/assets/block.jpg b/assets/block.jpg index 305bf501..1816a57b 100644 Binary files a/assets/block.jpg and b/assets/block.jpg differ diff --git a/assets/sucr.jpg b/assets/sucr.jpg new file mode 100644 index 00000000..32cc19c8 Binary files /dev/null and b/assets/sucr.jpg differ diff --git a/config/block/block.env b/config/block/block.env index fb0210e8..0f496235 100644 --- a/config/block/block.env +++ b/config/block/block.env @@ -2,4 +2,4 @@ CODENAME=block MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/blocknetdxd} MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-41412} GIT_URL=https://github.com/BlocknetDX/BlockDX -SCVERSION="3.10.4" \ No newline at end of file +SCVERSION="3.10.4" diff --git a/config/default.env b/config/default.env index 670f1472..fdba1294 100644 --- a/config/default.env +++ b/config/default.env @@ -7,6 +7,7 @@ MNODE_CONF_BASE=${MNODE_CONF_BASE:-/etc/masternodes} MNODE_DATA_BASE=${MNODE_DATA_BASE:-/var/lib/masternodes} MNODE_USER=${MNODE_USER:-masternode} MNODE_HELPER="/usr/local/bin/activate_masternodes" -MNODE_SWAPSIZE=${MNODE_SWAPSIZE:-5000} +MNODE_SWAPSIZE=${MNODE_SWAPSIZE:-4000} CODE_DIR="code" -SETUP_MNODES_COUNT=${SETUP_MNODES_COUNT:-1} \ No newline at end of file +SETUP_MNODES_COUNT=${SETUP_MNODES_COUNT:-1} +SETUP_MNODES_BASE=${SETUP_MNODES_BASE:-1} diff --git a/config/sucr/sucr.compile b/config/sucr/sucr.compile new file mode 100755 index 00000000..844ab74d --- /dev/null +++ b/config/sucr/sucr.compile @@ -0,0 +1,6 @@ +#!/bin/bash + +./autogen.sh +./configure --with-incompatible-bdb --disable-tests +make +make install diff --git a/config/sucr/sucr.conf b/config/sucr/sucr.conf new file mode 100644 index 00000000..760c513a --- /dev/null +++ b/config/sucr/sucr.conf @@ -0,0 +1,39 @@ +################################ +# basic settings +################################ +txindex=1 +logtimestamps=1 +listen=1 +daemon=1 +gen=0 +discover=1 +############################# +# nodes we want to stick to +############################# +# addnode=seed1.xxx.org +################################ +# masternode specific settings +################################ +masternode=1 +#### INSERT YOUR MASTERNODE PRIVATEKEY BELOW #################################################### +masternodeprivkey=HERE_GOES_YOUR_MASTERNODE_KEY_FOR_MASTERNODE_XXX_GIT_PROJECT_XXX_XXX_NUM_XXX +################################################################################################# +# +# b. +# 88b Insert your generated masternode privkey here +# 888b. +# 88888b +# 888888b. +# 8888P" +# P" `8. +# `8. +# `8 +################################################################################################# +############################# +# JSONRPC +############################# +server=1 +rpcuser=XXX_GIT_PROJECT_XXXrpc +rpcpassword=XXX_PASS_XXX +rpcallowip=127.0.0.1 +rpcport=555XXX_NUM_XXX diff --git a/config/sucr/sucr.env b/config/sucr/sucr.env new file mode 100644 index 00000000..6f8d5a1d --- /dev/null +++ b/config/sucr/sucr.env @@ -0,0 +1,7 @@ +CODENAME=sucr +NETWORK_TYPE=${NETWORK_TYPE:-4} +MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-9336} +GIT_URL=https://github.com/sucremoneda/SucreCore.git +SCVERSION="master" +MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/sucrd} + diff --git a/install.sh b/install.sh index 5a6ad363..4a8341a5 100755 --- a/install.sh +++ b/install.sh @@ -80,6 +80,7 @@ function show_help(){ echo "-p or --project string: Project to be installed. REQUIRED."; echo "-n or --net: IP address type t be used (4 vs. 6)."; echo "-c or --count: Number of masternodes to be installed."; + echo "-b or --base: Starting number for masternode instances."; echo "-r or --release: Release version to be installed."; echo "-s or --sentinel: Add sentinel monitoring for a node type. Combine with the -p option"; echo "-w or --wipe: Wipe ALL local data for a node type. Combine with the -p option"; @@ -278,7 +279,7 @@ function create_mn_configuration() { cd ${SCRIPTPATH} # create one config file per masternode - for NUM in $(seq 1 ${count}); do + for NUM in $(seq ${base} ${count}); do PASS=$(date | md5sum | cut -c1-24) # we dont want to overwrite an existing config file @@ -788,6 +789,14 @@ while true; do shift; fi ;; + -b|--base) + shift; + if [ -n "$1" ]; + then + base="$1"; + shift; + fi + ;; -r|--release) shift; if [ -n "$1" ];