pshenmic / platform-explorer

Dash Platform explorer
https://platform-explorer.vercel.app
8 stars 3 forks source link

Query epoch from DAPI #250

Closed owl352 closed 2 months ago

owl352 commented 2 months ago

Issue

At this moment, we getting data about epoch with low accuracy, because they from indexer db, but if we change data source from db to dapi, we can get more accured data

Things done

Example:

  "epoch": {
    "number": 1142,
    "firstBlockHeight": 5320,
    "firstCoreBlockHeight": 1096651,
    "startTime": 1725464416117,
    "feeMultiplier": 1,
    "nextEpochApproximateTime": 1725468038592,
    "nextEpoch": {
      "number": 1143,
      "firstBlockHeight": 5340,
      "firstCoreBlockHeight": 1096677,
      "startTime": 1725468038592,
      "feeMultiplier": 1
    }
  },
  "tps": 0,
  "totalCollectedFees": 0,
  "bestValidator": "20107EC50E81880DCA18178BB7E53E2D0449C0734106A607253B9AF2FFEA006C"
}

Implemented new method in EpochDAO, which can get info about epoch from object

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
platform-explorer-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2024 7:44pm
platform-explorer-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2024 7:44pm