Skip to content

Commit

Permalink
Set slashing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandrejev committed Apr 30, 2023
1 parent e08bfc8 commit 3c45942
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions network/init-neutrond.sh
Original file line number Diff line number Diff line change
Expand Up @@ -611,4 +611,8 @@ sed -i -e 's/\"fee_collector_address\":.*/\"fee_collector_address\":\"'"$TREASUR
sed -i -e 's/\"security_address\":.*/\"security_address\":\"'"$DAO_CONTRACT_ADDRESS"'\",/g' "$CHAIN_DIR/config/genesis.json"
sed -i -e 's/\"limit\":.*/\"limit\":5/g' "$CHAIN_DIR/config/genesis.json"
sed -i -e 's/\"allow_messages\":.*/\"allow_messages\": [\"*\"]/g' "$CHAIN_DIR/config/genesis.json"
sed -i -e 's/\"signed_blocks_window\":.*/\"signed_blocks_window\":\"140000\",/g' "$CHAIN_DIR/config/genesis.json"
sed -i -e 's/\"min_signed_per_window\":.*/\"min_signed_per_window\":\"0.050000000000000000\",/g' "$CHAIN_DIR/config/genesis.json"
sed -i -e 's/\"slash_fraction_double_sign\":.*/\"slash_fraction_double_sign\":\"0.010000000000000000\",/g' "$CHAIN_DIR/config/genesis.json"
sed -i -e 's/\"slash_fraction_downtime\":.*/\"slash_fraction_downtime\":\"0.000100000000000000\"/g' "$CHAIN_DIR/config/genesis.json"

0 comments on commit 3c45942

Please sign in to comment.