Browse Source

Remove unused code for setting TestingV3AuthVotingStartOffset

Chutney has used TestingV3AuthVotingStartOffset 0 for a few years now.

Implements 27298.
teor 5 years ago
parent
commit
1641c18991
2 changed files with 0 additions and 11 deletions
  1. 0 9
      tools/bootstrap-network.sh
  2. 0 2
      torrc_templates/authority.i

+ 0 - 9
tools/bootstrap-network.sh

@@ -54,15 +54,6 @@ export CHUTNEY_NETWORK="$CHUTNEY_PATH/networks/$NETWORK_FLAVOUR"
 echo "$myname: bootstrapping network: $flavour"
 "$CHUTNEY" configure "$CHUTNEY_NETWORK"
 
-# TODO: Make 'chutney configure' take an optional offset argument and
-# use the templating system in Chutney to set this instead of editing
-# files like this.
-offset=$(expr \( $(date +%s) + $VOTING_OFFSET \) % 300)
-CONFOPT="TestingV3AuthVotingStartOffset"
-for file in "$CHUTNEY_DATA_DIR"/nodes/*a/torrc ; do
-    sed -i.bak -e "s/^${CONFOPT}.*$/${CONFOPT} $offset/1" $file
-done
-
 "$CHUTNEY" start "$CHUTNEY_NETWORK"
 sleep 1
 "$CHUTNEY" status "$CHUTNEY_NETWORK"

+ 0 - 2
torrc_templates/authority.i

@@ -17,5 +17,3 @@ TestingV3AuthInitialVoteDelay 2
 V3AuthVoteDelay 2
 TestingV3AuthInitialDistDelay 2
 V3AuthDistDelay 2
-# This is autoconfigured by chutney, so you probably don't want to use it
-#TestingV3AuthVotingStartOffset 0