Adding thread state data for better debugging

Adding bitcoind test to see if it is working
before some starts submiting transactions