Skip to content

Commit

Permalink
fix: cache tip number
Browse files Browse the repository at this point in the history
  • Loading branch information
magicalne committed Sep 26, 2022
1 parent 22b9160 commit 1b640cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agent/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def run(self):
if BlockNumber is None:
try:
tip_number = self.gw_rpc.get_tip_number()
BlockNumber = tip_number
except:
logging.exception("Cannot get tip number")
continue
Expand Down

0 comments on commit 1b640cc

Please sign in to comment.