Skip to content

Commit

Permalink
Fix 0 txs in blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Feb 24, 2024
1 parent 2b7cd38 commit 93bf416
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tonpy/blockscanner/blockscanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ def get_mega_libs():
def process_block(block, lc):
block_txs = {}

try:
account_blocks = VmDict(256, False, cell_root=block['account_blocks'].begin_parse().load_ref(),
r: CellSlice = block['account_blocks'].begin_parse()
if r.refs > 0:
account_blocks = VmDict(256, False, cell_root=r.load_ref(),
aug=SkipCryptoCurrency())
except Exception as e:
logger.error(f"Error in {block}!, {e}, {traceback.format_exc()}")
sys.exit(228)
else:
account_blocks = []

for i in account_blocks:
account, data = i
Expand Down

0 comments on commit 93bf416

Please sign in to comment.