Skip to content

Commit

Permalink
fix: update height
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Mar 4, 2024
1 parent 4ec9c5a commit 78222ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Processes/base_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_tip_info(self) -> base_node_pb2.TipInfoResponse:
return self.stub.GetTipInfo(request) # type:ignore

def get_tip(self) -> int:
return self.get_tip_info().metadata.height_of_longest_chain
return self.get_tip_info().metadata.best_block_height

def get_active_validator_nodes(self, height: int) -> base_node_pb2.GetActiveValidatorNodesResponse:
request = base_node_pb2.GetActiveValidatorNodesRequest(height=height)
Expand Down

0 comments on commit 78222ed

Please sign in to comment.