Disable staking rewards by redirecting all fee to community pool
Integration Tests / test-integration (pull_request) Successful in 1m25s
Build / build (pull_request) Successful in 1m30s
E2E Tests / test-e2e (pull_request) Successful in 2m41s
Unit Tests / test-unit (pull_request) Successful in 1m16s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 6m12s
SDK Tests / sdk_tests_authority_auctions (pull_request) Successful in 11m45s
SDK Tests / sdk_tests (pull_request) Successful in 15m38s

This commit is contained in:
2025-05-13 17:29:31 +05:30
parent c14f1d3b00
commit 803fe9f83b
+10
View File
@@ -94,6 +94,16 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data" ]; then
# Set gas limit in genesis
update_genesis '.consensus["params"]["block"]["max_gas"]="10000000"'
# Set distribution community tax to 1 for disabling staking rewards
update_genesis '.app_state["distribution"]["params"]["community_tax"]="1.000000000000000000"'
echo "Setting high threshold for accepting governance proposal"
update_genesis '.app_state["gov"]["params"]["quorum"]="1.000000000000000000"'
# Set expedited threshold to 100%
update_genesis '.app_state["gov"]["params"]["expedited_threshold"]="1.000000000000000000"'
# Set normal threshold to 99% since it needs to be lesser than expedited threshold
update_genesis '.app_state["gov"]["params"]["threshold"]="0.990000000000000000"'
# disable produce empty block
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' 's/create_empty_blocks = true/create_empty_blocks = false/g' $HOME/.laconicd/config/config.toml