Improve gossip use for drone and wallet

- Add utility function
  - Add thread sleep
  - Enable configurable timeout for gossip poll
This commit is contained in:
Tyera Eulberg
2018-08-20 14:03:36 -06:00
committed by Tyera Eulberg
parent 4fdd9fbfca
commit d4c41219f9
6 changed files with 91 additions and 78 deletions

View File

@ -40,6 +40,7 @@ $rsync -vPz "$rsync_leader_url"/config/leader.json "$SOLANA_CONFIG_DIR"/
trap 'kill "$pid" && wait "$pid"' INT TERM
$solana_drone \
-l "$SOLANA_CONFIG_DIR"/leader.json -k "$SOLANA_CONFIG_PRIVATE_DIR"/mint.json \
--timeout 120 \
> >($drone_logger) 2>&1 &
pid=$!
oom_score_adj "$pid" 1000

View File

@ -42,4 +42,4 @@ fi
# shellcheck disable=SC2086 # $solana_wallet should not be quoted
exec $solana_wallet \
-l "$SOLANA_CONFIG_CLIENT_DIR"/leader.json -k "$client_id_path" "$@"
-l "$SOLANA_CONFIG_CLIENT_DIR"/leader.json -k "$client_id_path" --timeout 10 "$@"