-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat: Add deploy scripts for sp #54
Conversation
461075e
to
afeb60c
Compare
deployment/localup/localup.sh
Outdated
|
||
n=0 | ||
while [ $n -le 360 ]; do | ||
approval_cnt=("$(${bin} query sp storage-providers --node http://localhost:26750 | grep approval_address | wc -l)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why approval cnt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fix it to cnt, means the sp cnt added to chain.
deployment/localup/localup.sh
Outdated
@@ -7,6 +7,10 @@ source ${workspace}/utils.sh | |||
bin_name=gnfd | |||
bin=${workspace}/../../build/bin/${bin_name} | |||
|
|||
function build() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to add this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
deployment/localup/localup.sh
Outdated
@@ -150,11 +154,124 @@ function stop() { | |||
ps -ef | grep ${bin_name} | grep validator | awk '{print $2}' | xargs kill | |||
} | |||
|
|||
function validator_deploy() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a little bit confusing about this function name. why need sp_size when deploy validator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, add sp_join
& sp_check
, these two functions only use sp_size。
e7be29d
to
dc3b4b1
Compare
Description
add deploy storage provider function for localup.sh
Example
./deployment/localup/localup.sh all 1 3
start validator & add 3 sps join the chain.
after about 4-5 mins, use
./deployment/localup/localup.sh sp_check 3
check whether sp added success.