a guest Nov 14th, 2014 19 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #! /bin/bash
- # assumes that bitcoind is running
- while [ $should_continue -eq 0 ]; do
- current_block=`bitcoind getblockcount`
- if [ $current_block -lt $blockmax ]; then
- echo "bitcoind at $current_block, not yet at $blockmax"
- elif [ $current_block -gt $blockmax ]; then
- echo "bitcoind passed $1"
- elif [ $current_block -eq $blockmax ]; then
- bitcoind stop
- sleep 1
RAW Paste Data