Skip to content

Commit

Permalink
fix tuple error when creating pot, update start block to 112961757 to…
Browse files Browse the repository at this point in the history
… reindex
  • Loading branch information
lachlanglen committed May 21, 2024
1 parent 16e0468 commit fb4614f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion indexer_app/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def listen_to_near_events():
try:
# Update below with desired network & block height
# start_block = get_block_height("current_block_height")
start_block = 112461673
start_block = 112961757
logger.info(f"what's the start block, pray tell? {start_block-1}")
loop.run_until_complete(indexer("mainnet", start_block - 1, None))
except WorkerLostError:
Expand Down
4 changes: 2 additions & 2 deletions indexer_app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ async def handle_new_pot(
"all_paid_out": False,
"protocol_config_provider": data["protocol_config_provider"],
}
potObject = await Pot.objects.aupdate_or_create(
pot, created = await Pot.objects.aupdate_or_create(
id=receiver, defaults=pot_defaults
)

# Add admins to the Pot
if data.get("admins"):
for admin_id in data["admins"]:
admin, _ = await Account.objects.aget_or_create(id=admin_id)
potObject.admins.aadd(admin)
pot.admins.aadd(admin)

defaults = {
"signer_id": signerId,
Expand Down

0 comments on commit fb4614f

Please sign in to comment.