leave.sh 323 Bytes
Newer Older
Your Name's avatar
Your Name committed
1 2 3 4 5 6 7 8 9 10
#!/bin/bash

NODE=${1:-1}

# If we kill the client before the node is properly shutdown, it will get
# invalid block signatures as it tries to commit blocks with empty state-hashes.
# So we send the SIGINT signal the node, give it 5 seconds to politely leave,
# and kill the client.

docker kill --signal=SIGINT node$NODE