connector

This commit is contained in:
4tochka 2019-05-11 20:40:15 +04:00
parent 52bdced866
commit 24a8fda01f

View File

@ -178,8 +178,8 @@ class BlockLoader:
for i in blocks:
self.parent.block_preload.set(i, blocks[i])
if blocks:
last_tx = blocks[i]["tx"][len(blocks[i]["tx"]) - 1]
pointer = (i << 42) + ((len(blocks[i]["tx"]) - 1) << 21) + (en(last_tx["vOut"]) - 1)
last_tx = blocks[i]["rawTx"][len(blocks[i]["rawTx"]) - 1]
pointer = (i << 42) + ((len(blocks[i]["rawTx"]) - 1) << 21) + (en(last_tx["vOut"]) - 1)
self.parent.checkpoints.append(pointer)