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

Crown13 #171

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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.
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"
14 changes: 3 additions & 11 deletions config/crownmn/crownmn.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ txindex=1
logtimestamps=1
listen=1
daemon=1
gen=0
maxconnections=256
bind=XXX_IPV6_INT_BASE_XXX:XXX_NETWORK_BASE_TAG_XXX::XXX_NUM_XXY:XXX_MNODE_INBOUND_PORT_XXX
staking=1
discover=1

#############################
# nodes we want to stick to
Expand All @@ -19,7 +18,7 @@ bind=XXX_IPV6_INT_BASE_XXX:XXX_NETWORK_BASE_TAG_XXX::XXX_NUM_XXY:XXX_MNODE_INBOU
################################
masternode=1
#### INSERT YOUR SYSTEMNODE PRIVATEKEY BELOW ####################################################
masternodeprivkey=HERE_GOES_YOUR_SYSTEMNODE_KEY_FOR_SYSTEMNODE_XXX_GIT_PROJECT_XXX_XXX_NUM_XXX
masternodeprivkey=HERE_GOES_YOUR_MASTERNODE_KEY_FOR_MASTERMNODE_XXX_GIT_PROJECT_XXX_XXX_NUM_XXX
#################################################################################################
#
# b.
Expand All @@ -33,13 +32,6 @@ masternodeprivkey=HERE_GOES_YOUR_SYSTEMNODE_KEY_FOR_SYSTEMNODE_XXX_GIT_PROJECT_X
# `8
#################################################################################################

#############################
# optional indices
#############################
addressindex=1
timestampindex=1
spentindex=1

#############################
# JSONRPC
#############################
Expand Down
4 changes: 2 additions & 2 deletions config/crownmn/crownmn.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CODENAME=crownmn
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/crownd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-9340}
GIT_URL=https://github.com/Crowndev/crowncoin.git
SCVERSION="tags/v0.12.5.1"
GIT_URL=https://github.com/Crowndev/crown-core.git
SCVERSION="tags/v0.13.4.0"
12 changes: 2 additions & 10 deletions config/crownsn/crownsn.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ txindex=1
logtimestamps=1
listen=1
daemon=1
gen=0
maxconnections=256
bind=XXX_IPV6_INT_BASE_XXX:XXX_NETWORK_BASE_TAG_XXX::XXX_NUM_XXY:XXX_MNODE_INBOUND_PORT_XXX
staking=1
discover=1

#############################
# nodes we want to stick to
Expand All @@ -33,13 +32,6 @@ systemnodeprivkey=HERE_GOES_YOUR_SYSTEMNODE_KEY_FOR_SYSTEMNODE_XXX_GIT_PROJECT_X
# `8
#################################################################################################

#############################
# optional indices
#############################
addressindex=1
timestampindex=1
spentindex=1

#############################
# JSONRPC
#############################
Expand Down
4 changes: 2 additions & 2 deletions config/crownsn/crownsn.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CODENAME=crownsn
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/crownd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-9340}
GIT_URL=https://github.com/Crowndev/crowncoin.git
SCVERSION="tags/v0.12.5.1"
GIT_URL=https://github.com/Crowndev/crown-core.git
SCVERSION="tags/v0.13.4.0"
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}
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