Disable staking rewards (#70)
All checks were successful
Integration Tests / test-integration (push) Successful in 1m32s
Unit Tests / test-unit (push) Successful in 1m41s
E2E Tests / test-e2e (push) Successful in 2m41s
SDK Tests / sdk_tests_nameservice_expiry (push) Successful in 5m37s
SDK Tests / sdk_tests_authority_auctions (push) Successful in 11m10s
SDK Tests / sdk_tests (push) Successful in 15m6s
All checks were successful
Integration Tests / test-integration (push) Successful in 1m32s
Unit Tests / test-unit (push) Successful in 1m41s
E2E Tests / test-e2e (push) Successful in 2m41s
SDK Tests / sdk_tests_nameservice_expiry (push) Successful in 5m37s
SDK Tests / sdk_tests_authority_auctions (push) Successful in 11m10s
SDK Tests / sdk_tests (push) Successful in 15m6s
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: #70 Co-authored-by: Nabarun <nabarun@deepstacksoft.com> Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
This commit is contained in:
parent
c14f1d3b00
commit
f4cf8ac744
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user