Skip to content

Commit

Permalink
Remove
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Feb 19, 2024
1 parent 1af681d commit 9944fef
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions src/tonpy/blockscanner/blockscanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,38 +526,3 @@ def raw_process(chunk):
block, state, txs = data
out.append(len(txs))
return out


if __name__ == "__main__":
lcparams = {
'mode': 'roundrobin',
'my_rr_servers': [server],
'timeout': 1,
'num_try': 3000,
'threads': 1
}

outq = Queue()

scanner = BlockScanner(
lcparams=lcparams,
start_from=35381340,
load_to=35381340 + 10,
nproc=10,
loglevel=2,
chunk_size=2,
raw_process=just_len,
out_queue=outq
)

scanner.start()

while not scanner.done:
print("Not done, wait")
sleep(10)

total_txs = 0
while not outq.empty():
for result in outq.get():
total_txs += result
print("Got total: ", total_txs)

0 comments on commit 9944fef

Please sign in to comment.