Skip to content

Commit

Permalink
chore: shrink nonce range size
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Feb 1, 2025
1 parent 3f474e7 commit f6960e2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions eth_portfolio/_loaders/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,19 +358,19 @@ async def _get_block_transactions(block: Block) -> List[evmspec.Transaction]:

def _get_num_chunks(range_size: int) -> int:
if range_size >= 4096:
return 100
return 20 # 100
elif range_size >= 2048:
return 80
return 16 # 80
elif range_size >= 1024:
return 40
return 10 # 40
elif range_size >= 512:
return 20
return 5 # 20
elif range_size >= 256:
return 10
return 5 # 10
elif range_size >= 128:
return 8
return 5 # 8
elif range_size >= 64:
return 6
return 5 # 6
elif range_size >= 32:
return 5
elif range_size >= 16:
Expand Down

0 comments on commit f6960e2

Please sign in to comment.