diff --git a/scripts/init.sh b/scripts/init.sh index e13ae74c..d612eb4f 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -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\"" 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 (?) update_genesis '.consensus["params"]["block"]["time_iota_ms"]="1000"'