Drone now returns signed airdrop transactions

This commit is contained in:
Michael Vines
2018-11-14 18:57:34 -08:00
parent 3543a9a49f
commit e791d0f74d
11 changed files with 316 additions and 272 deletions

View File

@ -12,16 +12,13 @@ usage() {
echo "$*"
echo
fi
echo "usage: $0 [network entry point]"
echo "usage: $0]"
echo
echo " Run an airdrop drone for the specified network"
echo " Run an airdrop drone"
echo
exit 1
}
read -r _ leader_address shift < <(find_leader "${@:1:1}")
shift "$shift"
[[ -f "$SOLANA_CONFIG_PRIVATE_DIR"/mint.json ]] || {
echo "$SOLANA_CONFIG_PRIVATE_DIR/mint.json not found, create it by running:"
echo
@ -34,7 +31,6 @@ set -ex
trap 'kill "$pid" && wait "$pid"' INT TERM
$solana_drone \
--keypair "$SOLANA_CONFIG_PRIVATE_DIR"/mint.json \
--network "$leader_address" \
> >($drone_logger) 2>&1 &
pid=$!
wait "$pid"