cardano-community / koios-artifacts

Artifacts for https://koios.rest and https://api.koios.rest websites
Creative Commons Attribution 4.0 International
20 stars 25 forks source link

GET /pool_blocks does not provide current epoch data #92

Closed staking4ada closed 2 years ago

staking4ada commented 2 years ago

Documentation mentions:

Return information about blocks minted by a given pool in current epoch (or _epoch_no if provided)

However, instead of current epoch, data for epoch 294 is returned.

Example:

"https://api.koios.rest/api/v0/pool_blocks?_pool_bech32=pool10efuydxjnasr0309lqklmj9xahupdnzqd59r5dqjeh4twz06tr0"

does not return current pool blocks for current epoch, but for epoch 294.

dostrelith678 commented 2 years ago

You're right, it gets ALL the blocks from the pool if _epoch_no is not provided. Documentation should be updated to reflect that.

rdlrt commented 2 years ago

Closed in #83