Display btc error if any

This commit is contained in:
Arinerron 2018-03-03 17:11:21 -08:00
parent 0fd9c3f6ab
commit ca46ab4ffd
No known key found for this signature in database
GPG Key ID: 99383627861C62F0

View File

@ -38,7 +38,8 @@ class OnionrCommunicate:
logger.info('Starting Bitcoin Node... with Tor socks port:' + str(sys.argv[2]))
self.bitcoin = btc.OnionrBTC(torP=int(sys.argv[2]))
logger.info('Bitcoin Node started, on block: ' + self.bitcoin.node.getBlockHash(self.bitcoin.node.getLastBlockHeight()))
except:
except Exception as e:
logger.error(str(e))
logger.fatal('Failed to start Bitcoin Node, exiting...')
exit(1)