spacemeshos / explorer-backend

Spacemesh explorer backend designed to provide data for explorer-frontends
GNU General Public License v3.0
6 stars 2 forks source link

Wrong last layer reported #26

Closed abergasov closed 11 months ago

abergasov commented 2 years ago

Sometimes, last layer shows totally wrong. like in network last layer is 19318, but shows like 9101

Sample output of network-info

{
  "network": {
    "netid": 225,
    "genesis": 1659457993,
    "layers": 60,
    "maxtx": 41,
    "duration": 120,
    "lastlayer": 19948,
    "lastlayerts": 1661851671,
    "lastapprovedlayer": 19947,
    "lastconfirmedlayer": 19946,
    "connectedpeers": 10,
    "issynced": true,
    "syncedlayer": 19948,
    "toplayer": 19948,
    "verifiedlayer": 19947
  },
  "epoch": {
    "number": 332,
    "end": 1661851512,
    "layerend": 19946,
    "layers": 27,
    "layerstart": 19920,
    "start": 1661848273,
    "stats": {
      "current": {
        "capacity": 0,
        "decentral": 50,
        "smeshers": 86,
        "transactions": 0,
        "accounts": 174,
        "circulation": 990399999999711600,
        "rewards": 1349999999999728,
        "rewardsnumber": 831,
        "security": 0,
        "txsamount": 0
      },
      "cumulative": {
        "capacity": 0,
        "decentral": 50,
        "smeshers": 86,
        "transactions": 2213,
        "accounts": 174,
        "circulation": 990399999999711600,
        "rewards": 990399999999711600,
        "rewardsnumber": 636198,
        "security": 0,
        "txsamount": 28376597403752720
      }
    }
  },
  "layer": {
    "number": 19946,
    "atxnumunits": 0,
    "blocksnumber": 1,
    "end": 1661851512,
    "epoch": 332,
    "hash": "0x92e27ab2a06dc85fa081825f06d47134dbf83ea418e4f1008a764899b776128e",
    "rewards": 49999999999995,
    "smeshers": 0,
    "start": 1661851393,
    "status": 2,
    "txs": 0,
    "txsamount": 0
  }
}
lrettig commented 1 year ago

I think I saw the same thing yesterday:

image

Possibly related: https://github.com/spacemeshos/go-spacemesh/pull/4833

kacpersaw commented 11 months ago

I don't see this issue after switching to sqlite. Please reopen if it's still present