Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deploycmp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
deploycmp
Commits
1335338a
Commit
1335338a
authored
Jul 10, 2023
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add custom chainid
parent
2e1363b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
.gitignore
.gitignore
+1
-1
makefile
makefile
+8
-2
build-conf.sh
scripts/build-conf.sh
+2
-2
No files found.
.gitignore
View file @
1335338a
conf
/*
conf
makefile
View file @
1335338a
...
@@ -2,6 +2,7 @@ nodes = 1
...
@@ -2,6 +2,7 @@ nodes = 1
index
=
4
index
=
4
Join
=
false
Join
=
false
webrtc
=
false
webrtc
=
false
chainid
=
1024
# generate keys and peers.json file
# generate keys and peers.json file
...
@@ -11,8 +12,12 @@ install:
...
@@ -11,8 +12,12 @@ install:
conf
:
conf
:
@
rm
-rf
conf
@
rm
-rf
conf
@
PATH
=
/tmp/tmpbin:
${
PATH
}
./scripts/build-conf.sh
$(nodes)
$(webrtc)
@
PATH
=
/tmp/tmpbin:
${
PATH
}
CHAINID
=
${
chainid
}
./scripts/build-conf.sh
$(nodes)
$(webrtc)
@
sed
-i
's/300ms/1000ms/g'
conf/deploy/node1/config/config.toml
@
sed
-i
's/300ms/1000ms/g'
conf/deploy/node1/config/config.toml
@
chown
${
USER
}
:
${
USER
}
-R
./conf
backup
:
stop
cp
-r
conf/deploy conf/back
$(
shell
date
+%m%d-%H%M
)
start
:
start
:
./scripts/run-testnet.sh
$(nodes)
$(Join)
$(webrtc)
./scripts/run-testnet.sh
$(nodes)
$(Join)
$(webrtc)
...
@@ -22,8 +27,9 @@ stop:
...
@@ -22,8 +27,9 @@ stop:
clean
:
clean
:
@
rm
-rf
conf/deploy
.PHONY
:
up build conf start watch stop show bombard send join leave demo
.PHONY
:
up build conf start watch stop show bombard send join leave demo
backup
scripts/build-conf.sh
View file @
1335338a
...
@@ -15,7 +15,7 @@ WORKDEPLOY=$DEST/deploy
...
@@ -15,7 +15,7 @@ WORKDEPLOY=$DEST/deploy
rm
-rf
~/.cmp
*
rm
-rf
~/.cmp
*
cmpcli config keyring-backend
test
cmpcli config keyring-backend
test
cmpcli config chain-id
256256
cmpcli config chain-id
$CHAINID
cmpcli config output json
cmpcli config output json
cmpcli config indent
true
cmpcli config indent
true
cmpcli config trust-node
true
cmpcli config trust-node
true
...
@@ -31,7 +31,7 @@ do
...
@@ -31,7 +31,7 @@ do
dest
=
$DEPLOY
/node
$i
dest
=
$DEPLOY
/node
$i
mkdir
-p
$dest
mkdir
-p
$dest
echo
"Generating and init node dir for node
$i
"
echo
"Generating and init node dir for node
$i
"
cmpd init node
$i
--chain-id
256256
--home
$dest
cmpd init node
$i
--chain-id
$CHAINID
--home
$dest
fi
fi
done
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment