added getblock(hash) to bitcoinwrapper
added a test to check if orphans show inconsistencies between wallet and db