Advertisement
Guest User

Untitled

a guest
Nov 14th, 2014
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. TEST_DATA_DIR=aplace
  4. WEDGE_BLOCK=999999
  5.  
  6. clean_data_dir() {
  7.     # delete the testing data directory
  8.     # fill it with the wedged blockchain
  9. }
  10.  
  11. compile_bitcoin() {
  12.     make clean -f makefile.unix
  13.     make -f makefile.unix || exit 125
  14. }
  15.  
  16. boot_bitcoin() {
  17.     ./bitcoind -datadir=$TEST_DATA_DIR -daemon
  18. }
  19.  
  20. stop_bitcoin() {
  21.     ./bitcoind stop
  22. }
  23.  
  24. test_blockcount() {
  25.     local wedge_block=$1
  26.     local blockcount=./bitcoind getblockcount
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement