Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sucr #172

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Sucr #172

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/sucr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion config/block/block.env
Original file line number Diff line number Diff line change
Expand Up @@ -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"
SCVERSION="3.10.4"
5 changes: 3 additions & 2 deletions config/default.env
Original file line number Diff line number Diff line change
Expand Up @@ -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}
SETUP_MNODES_COUNT=${SETUP_MNODES_COUNT:-1}
SETUP_MNODES_BASE=${SETUP_MNODES_BASE:-1}
6 changes: 6 additions & 0 deletions config/sucr/sucr.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

./autogen.sh
./configure --with-incompatible-bdb --disable-tests
make
make install
39 changes: 39 additions & 0 deletions config/sucr/sucr.conf
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions config/sucr/sucr.env
Original file line number Diff line number Diff line change
@@ -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}

11 changes: 10 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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" ];
Expand Down