Display btc error if any

master
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
1 changed files with 2 additions and 1 deletions

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)