disabled btc
This commit is contained in:
parent
0fd9c3f6ab
commit
9229fd9984
@ -33,14 +33,17 @@ class OnionrCommunicate:
|
|||||||
self._core = core.Core()
|
self._core = core.Core()
|
||||||
self._utils = onionrutils.OnionrUtils(self._core)
|
self._utils = onionrutils.OnionrUtils(self._core)
|
||||||
self._crypto = onionrcrypto.OnionrCrypto(self._core)
|
self._crypto = onionrcrypto.OnionrCrypto(self._core)
|
||||||
|
'''
|
||||||
try:
|
|
||||||
logger.info('Starting Bitcoin Node... with Tor socks port:' + str(sys.argv[2]))
|
logger.info('Starting Bitcoin Node... with Tor socks port:' + str(sys.argv[2]))
|
||||||
|
try:
|
||||||
self.bitcoin = btc.OnionrBTC(torP=int(sys.argv[2]))
|
self.bitcoin = btc.OnionrBTC(torP=int(sys.argv[2]))
|
||||||
|
except _gdbm.error:
|
||||||
|
pass
|
||||||
logger.info('Bitcoin Node started, on block: ' + self.bitcoin.node.getBlockHash(self.bitcoin.node.getLastBlockHeight()))
|
logger.info('Bitcoin Node started, on block: ' + self.bitcoin.node.getBlockHash(self.bitcoin.node.getLastBlockHeight()))
|
||||||
except:
|
'''
|
||||||
logger.fatal('Failed to start Bitcoin Node, exiting...')
|
#except:
|
||||||
exit(1)
|
#logger.fatal('Failed to start Bitcoin Node, exiting...')
|
||||||
|
#exit(1)
|
||||||
|
|
||||||
blockProcessTimer = 0
|
blockProcessTimer = 0
|
||||||
blockProcessAmount = 5
|
blockProcessAmount = 5
|
||||||
@ -229,4 +232,5 @@ if shouldRun:
|
|||||||
try:
|
try:
|
||||||
OnionrCommunicate(debug, developmentMode)
|
OnionrCommunicate(debug, developmentMode)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
sys.exit(1)
|
||||||
pass
|
pass
|
||||||
|
@ -30,12 +30,12 @@ class POW:
|
|||||||
hbCount = 0
|
hbCount = 0
|
||||||
blockCheck = 300000 # How often the hasher should check if the bitcoin block is updated (slows hashing but prevents less wasted work)
|
blockCheck = 300000 # How often the hasher should check if the bitcoin block is updated (slows hashing but prevents less wasted work)
|
||||||
blockCheckCount = 0
|
blockCheckCount = 0
|
||||||
block = self.bitcoinNode.getBlockHash(self.bitcoinNode.getLastBlockHeight())
|
block = ''#self.bitcoinNode.getBlockHash(self.bitcoinNode.getLastBlockHeight())
|
||||||
while self.hashing:
|
while self.hashing:
|
||||||
if blockCheckCount == blockCheck:
|
if blockCheckCount == blockCheck:
|
||||||
if self.reporting:
|
if self.reporting:
|
||||||
logger.debug('Refreshing Bitcoin block')
|
logger.debug('Refreshing Bitcoin block')
|
||||||
block = self.bitcoinNode.getBlockHash(self.bitcoinNode.getLastBlockHeight())
|
block = ''#self.bitcoinNode.getBlockHash(self.bitcoinNode.getLastBlockHeight())
|
||||||
blockCheckCount = 0
|
blockCheckCount = 0
|
||||||
blockCheckCount += 1
|
blockCheckCount += 1
|
||||||
hbCount += 1
|
hbCount += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user