Add variable to configure authority grace period
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 2m41s
Build / build (pull_request) Successful in 2m57s
E2E Tests / test-e2e (pull_request) Successful in 4m44s
Unit Tests / test-unit (pull_request) Successful in 2m23s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 9m40s
SDK Tests / sdk_tests (pull_request) Successful in 9m0s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 14m47s

This commit is contained in:
Prathamesh Musale 2024-08-08 11:50:09 +05:30
parent 7c8024ee09
commit d738b22ef2

View File

@ -82,6 +82,11 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
update_genesis ".app_state[\"registry\"][\"params\"][\"authority_auction_reveals_duration\"]=\"${AUTHORITY_AUCTION_REVEALS_DURATION}s\"" update_genesis ".app_state[\"registry\"][\"params\"][\"authority_auction_reveals_duration\"]=\"${AUTHORITY_AUCTION_REVEALS_DURATION}s\""
fi fi
if [[ -n $AUTHORITY_GRACE_PERIOD ]]; then
echo "Setting authority_grace_period to $AUTHORITY_GRACE_PERIOD seconds."
update_genesis ".app_state[\"registry\"][\"params\"][\"authority_grace_period\"]=\"${AUTHORITY_GRACE_PERIOD}s\""
fi
# increase block time (?) # increase block time (?)
update_genesis '.consensus["params"]["block"]["time_iota_ms"]="1000"' update_genesis '.consensus["params"]["block"]["time_iota_ms"]="1000"'