IntersectMBO / cardano-node

The core component that is used to participate in a Cardano decentralised blockchain.
https://cardano.org
Apache License 2.0
3.08k stars 720 forks source link

[BUG] - `syncProgress` incorrectly says as `100.00` for Preview network (node 9.1.0) #5940

Closed sourabhxyz closed 3 months ago

sourabhxyz commented 3 months ago

External

Area cardano-node

Summary syncProgress incorrectly says as 100.00 for Preview network (node 9.1.0) when querying for tip even when it is not, see below response:

❯ cardano-cli query tip --testnet-magic 2 --socket-path ~/cardano-nets/preview/db/node.socket
{
    "block": 120020,
    "epoch": 29,
    "era": "Babbage",
    "hash": "a576fb4e48804bfb67f213a5dbc8554afa532b1b5f865e13e4ba364f095b5a7c",
    "slot": 2537607,
    "slotInEpoch": 32007,
    "slotsToEpochEnd": 54393,
    "syncProgress": "100.00"
}   

At the time of writing this issue, preview is on block 2359827.

Steps to reproduce Steps to reproduce the behavior:

  1. Spin up cardano-node v9.1.0 with provided configuration from fresh start.
  2. Query for tip.
  3. See that it immediately gives syncProgress as 100.00.

Expected behavior

syncProgress should indicate actual sync progress.

System info (please complete the following information):

carbolymer commented 3 months ago

Fixed in https://github.com/IntersectMBO/cardano-cli/pull/851