Skip to content

Commit

Permalink
Fix trending POA Block (#8675)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsolo authored May 31, 2024
1 parent ffdabbf commit 7bdd698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
begin;
update user_challenges set completed_blocknumber = 69657400 where completed_blocknumber = 38244400;
commit;
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ def enqueue_trending_challenges(
return

# subtract final poa block because db is final_poa_block + latest_acdc_block
latest_blocknumber = latest_blocknumber - helpers.get_final_poa_block()

latest_block_datetime = datetime.fromtimestamp(
web3.eth.get_block(latest_blocknumber)["timestamp"]
web3.eth.get_block(latest_blocknumber - helpers.get_final_poa_block())[
"timestamp"
]
)

trending_track_versions = trending_strategy_factory.get_versions_for_type(
Expand Down

0 comments on commit 7bdd698

Please sign in to comment.