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
2babee87
Commit
2babee87
authored
Jul 10, 2023
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update initial amount
parent
1335338a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
makefile
makefile
+5
-1
build-conf.sh
scripts/build-conf.sh
+4
-4
No files found.
makefile
View file @
2babee87
...
...
@@ -25,6 +25,10 @@ start:
stop
:
./scripts/stop-testnet.sh
account
:
@
echo
"initial account mykey10 private key:"
@
PATH
=
/tmp/tmpbin:
${
PATH
}
cmpcli
--home
./conf/backup/clicfg.all.address keys unsafe-export-eth-key mykey10
clean
:
@
rm
-rf
conf/deploy
...
...
@@ -32,4 +36,4 @@ clean:
.PHONY
:
up build conf start watch stop show bombard send join leave demo backup
.PHONY
:
up build conf start watch stop show bombard send join leave demo backup
account
scripts/build-conf.sh
View file @
2babee87
...
...
@@ -41,17 +41,17 @@ do
dest
=
$DEPLOY
/node
$i
if
[
$i
-eq
1
]
;
then
cmpd add-genesis-account
$(
cmpcli keys show restunlock
-a
)
1000000000000000000000000000
000000000000000
cmp,1coin0,1coin1,1coin2,1coin3,1coin4
--home
$dest
cmpd add-genesis-account
$(
cmpcli keys show restunlock
-a
)
1000000000000000000000000000cmp,1coin0,1coin1,1coin2,1coin3,1coin4
--home
$dest
for
k
in
$(
seq
1
$((
$N
+
20
))
)
do
if
[
$k
-gt
$N
]
;
then
cmpcli keys add mykey
$k
fi
cmpd add-genesis-account
$(
cmpcli keys show mykey
$k
-a
)
100000000000000000000000
0000000000000000000000000000000
cmp,1000000000000000000coin0,1000000000000000000coin1,1000000000000000000coin2,1000000000000000000coin3,1000000000000000000coin4
--home
$dest
cmpd add-genesis-account
$(
cmpcli keys show mykey
$k
-a
)
100000000000000000000000cmp,1000000000000000000coin0,1000000000000000000coin1,1000000000000000000coin2,1000000000000000000coin3,1000000000000000000coin4
--home
$dest
done
cmpd add-genesis-account
$(
cmpcli keys show mykey0
-a
)
100000000000000000000000
0000000000000000000000000000000
cmp,1000000000000000000coin0,1000000000000000000coin1,1000000000000000000coin2,1000000000000000000coin3,1000000000000000000coin4
--home
$dest
cmpd add-genesis-account
$(
cmpcli keys show mykey0
-a
)
100000000000000000000000cmp,1000000000000000000coin0,1000000000000000000coin1,1000000000000000000coin2,1000000000000000000coin3,1000000000000000000coin4
--home
$dest
else
cmpd add-genesis-account
$(
cmpcli keys show mykey
$i
-a
)
100000000000000000000000
00000000000000000000000000000000
cmp,1000000000000000000coin0,1000000000000000000coin1,1000000000000000000coin2,1000000000000000000coin3,1000000000000000000coin4
--home
$dest
cmpd add-genesis-account
$(
cmpcli keys show mykey
$i
-a
)
100000000000000000000000cmp,1000000000000000000coin0,1000000000000000000coin1,1000000000000000000coin2,1000000000000000000coin3,1000000000000000000coin4
--home
$dest
fi
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