Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Get latest block from DB
  • Loading branch information
afalaleev committed Jan 6, 2022
commit 67c9e9b14e5da3413498aa050ea2950597bd27f9
2 changes: 1 addition & 1 deletion proxy/plugin/solana_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __repr__(self):

def process_block_tag(self, tag):
if tag == "latest":
block_number = self.client._provider.make_request("getBlockHeight", {"commitment":"confirmed"})["result"]
block_number = self.db.get_last_block_height()
elif tag in ('earliest', 'pending'):
raise Exception("Invalid tag {}".format(tag))
elif isinstance(tag, str):
Expand Down