From f4cf8ac7444ab6f5f459b45332133f4bc9b3580b Mon Sep 17 00:00:00 2001 From: Nabarun Date: Tue, 13 May 2025 12:35:15 +0000 Subject: [PATCH] Disable staking rewards (#70) Part of https://www.notion.so/Disable-staking-reward-1f2a6b22d47280c68d11ee179f5b894d Staking rewards is disabled by performing the following - Redirect all fee to community pool - Increase threshold for accepting gov proposals so that it becomes difficult to spend funds from community pool Reviewed-on: https://git.vdb.to/cerc-io/laconicd/pulls/70 Co-authored-by: Nabarun Co-committed-by: Nabarun --- scripts/init.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/init.sh b/scripts/init.sh index efb1b3668..06d7fae8b 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -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