diff --git a/mina-staking-ledgers-exporter/scripts/mina-staking-ledgers-exporter.py b/mina-staking-ledgers-exporter/scripts/mina-staking-ledgers-exporter.py index f95ba018..0ccfe0dd 100755 --- a/mina-staking-ledgers-exporter/scripts/mina-staking-ledgers-exporter.py +++ b/mina-staking-ledgers-exporter/scripts/mina-staking-ledgers-exporter.py @@ -175,7 +175,7 @@ def get_epochs(pod_name): command = f"kubectl exec {pod_name} -c mina -- mina client status --json".split(" ") output = subprocess.check_output(command) status_info = json.loads(output) - slot_number = int(status_info["consensus_time_now"]["slot_number"]) + slot_number = int(status_info["global_slot_since_genesis_best_tip"]) slots_per_epoch = int(status_info["consensus_time_now"]["slots_per_epoch"]) current_epoch = slot_number // slots_per_epoch next_epoch = current_epoch + 1