cexplorer / cexplorer.io

website features, implementations, docs
23 stars 15 forks source link

pool minted 6 blocks while cexplorer only reports 5 blocks #33

Closed monkey-jsun closed 10 months ago

monkey-jsun commented 1 year ago

Describe the bug

It is on preview network. See the pool page at https://preview.cexplorer.io/pool/pool190ce9qhpzwzveasvngas7kmwqrn54mfvhk9unqmuesykvtadu8l#data

My pool has reported 6 blocks minted. See gLiveView output below.

        > Cardano Node - (Core - Preview) : 1.35.4 [74a8529a] < 
┌────────────────────────────────┬────────────┬────────────────────────┐
│ Uptime: 13d 12:55:27           │ Port: 3001 │ Guild LiveView v1.27.3 │
│--------------------------------└────────────┴────────────────────────┤
│ Epoch 39 [25.5%], 17:52:41 remaining                                 │
│ ▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖▖ │
│                                                                      │
│ Block      : 161917    Tip (ref)  : 3391639   Forks      : 565       │
│ Slot       : 3391636   Tip (diff) : 3 :)      Total Tx   : 200210    │
│ Slot epoch : 22036     Density    : 5.188     Pending Tx : 0/0K      │
│- CONNECTIONS --------------------------------------------------------│
│ P2P        : enabled   Cold Peers : 0         Uni-Dir    : 0         │
│ Incoming   : 1         Warm Peers : 0         Bi-Dir     : 1         │
│ Outgoing   : 1         Hot Peers  : 1         Duplex     : 1         │
│- BLOCK PROPAGATION --------------------------------------------------│
│ Last Delay : 0.71s     Served     : 6         Late (>5s) : 36        │
│ Within 1s  : 99.81%    Within 3s  : 100.00%   Within 5s  : 100.00%   │
│- NODE RESOURCE USAGE ------------------------------------------------│
│ CPU (sys)  : 0.0%      Mem (Live) : 0.1G      GC Minor   : 116551    │
│ Mem (RSS)  : 0.4G      Mem (Heap) : 0.4G      GC Major   : 2890      │
├─ CORE ───────────────────────────────────────────────────────────────┤
│ KES current/remaining             : 26 / 53                          │
│ KES expiration date               : 2023-02-20 12:00:00 UTC          │
│ Missed slot leader checks         : 0 (0.0000 %)                     │
│- BLOCK PRODUCTION ---------------------------------------------------│
│ Leader : 6             Adopted : 6            Invalid : 0            │
└──────────────────────────────────────────────────────────────────────┘
 TG Announcement/Support channel: t.me/guild_operators_official

 [esc/q] Quit | [i] Info | [p] Peer Analysis

See also blockfrost API output, which also says 6 blocks:

jsun@ThinkPad-T14s:~/hobby/cardano/cardano/trunk/nsp-preview$ ../blockfrost/check-pool.sh -run1 pools/pool190ce9qhpzwzveasvngas7kmwqrn54mfvhk9unqmuesykvtadu8l
{
  "pool_id": "pool190ce9qhpzwzveasvngas7kmwqrn54mfvhk9unqmuesykvtadu8l",
  "hex": "2bf19282e11384ccf60c9a3b0f5b6e00e74aed2cbd8bc9837ccc0966",
  "vrf_key": "ecaaf8a89ead238b71ae9054487c229c1c6bc327062c5211dea2ae78c7cb0280",
  "blocks_minted": 6,
  "blocks_epoch": 0,
  "live_stake": "74822408234",
  "live_size": 0.00019845283174587332,
  "live_saturation": 0.0012469997723991604,
  "live_delegators": 3,
  "active_stake": "74822408234",
  "active_size": 0.00020032290629359335,
  "declared_pledge": "1000000",
  "live_pledge": "74822408234",
  "margin_cost": 0.01,
  "fixed_cost": "1130000000",
  "reward_account": "stake_test1uz5qfpx4786s0n847grlqcfrg5ja2g980jtnkfal2jxnaccg69qk0",
  "owners": [
    "stake_test1uz5qfpx4786s0n847grlqcfrg5ja2g980jtnkfal2jxnaccg69qk0",
    "stake_test1uryacjdxwcy8hg8mr2cl9zeqnej8ksfevfkhxfz4hd74tqsmu9l7j",
    "stake_test1ur6ve649llmmtyhrj5vegt4gcwuz8ul7uc3tk0yp5h632rcu9tr56"
  ],
  "registration": [
    "084e24ef275879ce1efec0b0baa2ada9b883c53ee5c9393e44fa7f988c984ece",
    "bd6274b3c17805423cb19d2a5dadbf15c79c18109036cdf8d34e5f3e56127785",
    "461eec7e5effc4cdfdeb22e94e66dc9aa49bbb2daa10fe9ec59467399c12940f",
    "1f54b90647c96a7db0bac0b04336ad08820383082d0f5cf0292f769373623db2",
    "16abd5243284fc8db9d8e59f39ecfdb6243e13ea5cd16b594a1e138406e17271"
  ],
  "retirement": [
    "09ccff590ba2597c38695ea315eebb61dd444207a134f7636cd1e36a46473ff4"
  ]
}
Done!
jsun@ThinkPad-T14s:~/hobby/cardano/cardano/trunk/nsp-preview$ ../blockfrost/check-pool.sh -run1 pools/pool190ce9qhpzwzveasvngas7kmwqrn54mfvhk9unqmuesykvtadu8l/blocks
[
  "9b5f7478ec3729cb2b4e31685a9d940c721f64c5e222f9831048a17754416d90",
  "9a747d1642cb258f5807224363029431c4a10b54d6a848a7fe83f8f20d2d1159",
  "9268a477030ae0e33d4823a2f27c7341dc88b8ed87775077099043c11265eeb7",
  "4d161a7130b515fb6d90566ac5dac0c77a04e507de99c91838c858c39cfb4657",
  "15871e0687bce8c9949fa205ee8df4da0f3d67bb6909171112bf8eac217fdce3",
  "943a4337f7e05a4d6ca6be6080b85a3c6c6c12503eac554d3242c81785b2b2d5"
]

I think the missing block is due to special case, where the block was minted after the pool is retired. See some discussions here, https://forum.cardano.org/t/retired-pool-can-still-mint-blocks/110965

I believe due to the missing block the reward accounting is also wrong, but I did not chase it out completely.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.