cexplorer / cexplorer.io

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

Inconsistent delegates on the pool page #46

Open chadle-git opened 1 year ago

chadle-git commented 1 year ago

Describe the bug When displaying the pool delegates some wallets are not shown as delegates.

To Reproduce Steps to reproduce the behavior:

  1. Search for a pool or go directly to my pools page https://preprod.cexplorer.io/pool/pool1jgl6h9fyy8gqt593ah638kqps4ls7c78d5p00we6qlzycdmhhvq/delegators#data

  2. Scroll down and click on Delegators

  3. Notice there are only 3 delegators and there should be 4

  4. Capto_Annotation
  5. Now i have found a known delegate from other explorers. We can search on it or go to this stake key directly by clicking here https://preprod.cexplorer.io/stake/stake_test1uq2pnumhfrnnse0t3uwj4n0lhz58ehfhkdhr64ylptjhq9cyney6d

    Capto_Annotation
  6. As you can see this delegate shows relegated to my pool, but doesn't show up on my pool page.

  7. All of these delegates started in Epoch 67, so they should all show up on the list

Expected behavior The pool page should show all delegates. You can see on cardanoscan.io that it does show all 4 delgates. https://preprod.cardanoscan.io/pool/923fab952421d005d0b1edf513d801857f0f63c76d02f7bb3a07c44c?tab=delegators

Capto_Annotation

Screenshots

Desktop (please complete the following information): Mac OS Brave 1.50.121

Smartphone (please complete the following information): didn't test

Additional context Koios also had this bug, https://github.com/cardano-community/koios-artifacts/pull/190

Command for delegates curl -X GET "https://preprod.koios.rest/api/v0/pool_delegators?_pool_bech32=pool1jgl6h9fyy8gqt593ah638kqps4ls7c78d5p00we6qlzycdmhhvq" \ -H "accept: application/json"

Old - Output response with 3 delegatesm , missing one delegate [{"stake_address":"stake_test1updy5twkregjwdh426lc9pzc0pnznmllly65gkqywmh328cp7ayq5","amount":"55284553144","active_epoch_no":69,"latest_delegation_tx_hash":"da8a657ede63d932180e1dd045e02fd3f74e5a7c9465c925f64b635e5db163da"}, {"stake_address":"stake_test1upqmawev2jm7j7xas8r364muxpw36x37fx05suadlgyujpq7u9e6z","amount":"11417817119","active_epoch_no":69,"latest_delegation_tx_hash":"3a61da9bf9553e1561747154bc2da4fc691b37797ce7842620fa4ed989fdd669"}, {"stake_address":"stake_test1uqs8ex43wlfn9fj5h8qpxh0kt5cq4m3r00kvy24czsh4e5c9zngd0","amount":"12577645766","active_epoch_no":69,"latest_delegation_tx_hash":"06fb385257c716cb617b0faeb3ce2d9da3a98429fde61b7eb90299b0410e14d3"}]%

New - Output response with the 4 correct delegates

[{"stake_address":"stake_test1updy5twkregjwdh426lc9pzc0pnznmllly65gkqywmh328cp7ayq5","amount":"55184360935","active_epoch_no":69,"latest_delegation_tx_hash":"da8a657ede63d932180e1dd045e02fd3f74e5a7c9465c925f64b635e5db163da"}, {"stake_address":"stake_test1upqmawev2jm7j7xas8r364muxpw36x37fx05suadlgyujpq7u9e6z","amount":"11417817119","active_epoch_no":69,"latest_delegation_tx_hash":"3a61da9bf9553e1561747154bc2da4fc691b37797ce7842620fa4ed989fdd669"}, {"stake_address":"stake_test1uq2pnumhfrnnse0t3uwj4n0lhz58ehfhkdhr64ylptjhq9cyney6d","amount":"1000000000000","active_epoch_no":69,"latest_delegation_tx_hash":"c4e6fc60179b03de9234c7b43cdd9a36400bf9153461114d006c6be993ada66c"}, {"stake_address":"stake_test1uqs8ex43wlfn9fj5h8qpxh0kt5cq4m3r00kvy24czsh4e5c9zngd0","amount":"12577645766","active_epoch_no":69,"latest_delegation_tx_hash":"06fb385257c716cb617b0faeb3ce2d9da3a98429fde61b7eb90299b0410e14d3"}]%