Skip to content

Commit

Permalink
Fix chunk call
Browse files Browse the repository at this point in the history
Signed-off-by: cyc60 <[email protected]>
  • Loading branch information
cyc60 committed Aug 23, 2023
1 parent 88bc411 commit ed7356d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oracle/oracle/rewards/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ async def calculate_withdrawal_rewards(

chunk_size = 50000
for block_number in range(from_block, to_block, chunk_size):
withdrawals_amount += self.fetch_withdrawal_chunk(
withdrawals_amount += await self.fetch_withdrawal_chunk(
validator_indexes=validator_indexes,
from_block=block_number,
to_block=min(block_number + chunk_size, to_block),
Expand Down

0 comments on commit ed7356d

Please sign in to comment.