connector
This commit is contained in:
parent
9fb41075aa
commit
4a86fd16c0
@ -201,6 +201,7 @@ class Worker:
|
|||||||
|
|
||||||
async def load_blocks(self, height):
|
async def load_blocks(self, height):
|
||||||
try:
|
try:
|
||||||
|
t = 0
|
||||||
batch = list()
|
batch = list()
|
||||||
h_list = list()
|
h_list = list()
|
||||||
while True:
|
while True:
|
||||||
@ -230,6 +231,7 @@ class Worker:
|
|||||||
try:
|
try:
|
||||||
r = self.coins[outpoint]
|
r = self.coins[outpoint]
|
||||||
block["rawTx"][z]["vIn"][i]["_c_"] = r
|
block["rawTx"][z]["vIn"][i]["_c_"] = r
|
||||||
|
t += 1
|
||||||
self.destroyed_coins[r[0]] = True
|
self.destroyed_coins[r[0]] = True
|
||||||
# self.log.critical(str(r[0]))
|
# self.log.critical(str(r[0]))
|
||||||
except:
|
except:
|
||||||
@ -253,6 +255,7 @@ class Worker:
|
|||||||
except: pass
|
except: pass
|
||||||
blocks[x] = pickle.dumps(blocks[x])
|
blocks[x] = pickle.dumps(blocks[x])
|
||||||
# self.log.critical(str(len(blocks)))
|
# self.log.critical(str(len(blocks)))
|
||||||
|
self.log.critical(str(t))
|
||||||
self.pipe_sent_msg(b'result', pickle.dumps(blocks))
|
self.pipe_sent_msg(b'result', pickle.dumps(blocks))
|
||||||
except:
|
except:
|
||||||
self.log.critical(str(traceback.format_exc()))
|
self.log.critical(str(traceback.format_exc()))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user