mirror of https://github.com/nucypher/nucypher.git
include latest event scanner block in json status endpoint
parent
99742def00
commit
2fe61f5cc3
|
@ -1340,6 +1340,7 @@ class Ursula(Teacher, Character, Operator):
|
|||
previous_fleet_states=previous_fleet_states,
|
||||
known_nodes=known_nodes_info,
|
||||
balance_eth=balance_eth,
|
||||
block_height=self.ritual_tracker.scanner.get_last_scanned_block(),
|
||||
)
|
||||
|
||||
def as_external_validator(self) -> Validator:
|
||||
|
@ -1376,6 +1377,7 @@ class LocalUrsulaStatus(NamedTuple):
|
|||
previous_fleet_states: List[ArchivedFleetState]
|
||||
known_nodes: Optional[List[RemoteUrsulaStatus]]
|
||||
balance_eth: float
|
||||
block_height: int
|
||||
|
||||
def to_json(self) -> Dict[str, Any]:
|
||||
if self.known_nodes is None:
|
||||
|
@ -1396,6 +1398,7 @@ class LocalUrsulaStatus(NamedTuple):
|
|||
],
|
||||
known_nodes=known_nodes_json,
|
||||
balance_eth=self.balance_eth,
|
||||
block_height=self.block_height,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue