dashpay / platform

L2 solution for seriously fast decentralized applications for the Dash network
https://dashplatform.readme.io/docs/introduction-what-is-dash-platform
MIT License
67 stars 39 forks source link

getEpochsInfo without proofs not returning data when there is gap between epochs #2108

Closed lklimek closed 2 weeks ago

lklimek commented 2 weeks ago

Reproduction scenario

When the following is executed against testnet (where genesis epoch is 0 and then jumps directly to 895):

cd packages/dapi-grpc/protos/platform/v0
grpcurl -insecure -max-time 100 -d '{ "v0": { "start_epoch":1, "count": 10, "asc
ending": true } }' --proto platform.proto 54.201.32.131:1443 org.dash.platform.dapi.v0.Platform.getEpochsInfo

it returns no epochs.

Expected behavior

Returns 10 epochs starting from 895.

Actual behavior

{
  "v0": {
    "epochs": {},
    "metadata": {
      "height": "5756",
      "coreChainLockedHeight": 1097091,
      "epoch": 1159,
      "timeMs": "1725526684695",
      "protocolVersion": 1,
      "chainId": "dash-testnet-51"
    }
  }
}
lklimek commented 2 weeks ago

After some discussions it looks like this will not happen on mainnet, so we have decided we will not fix this one in near future.

Please reopen if it happens on mainnet.