Tandemly / eos-api-service

EOS API Service platform to allow third-party clients to connect to an eosd blockchain network.
MIT License
47 stars 25 forks source link

Order blocks by block number, not timestamp #20

Open jordigoyanes opened 6 years ago

jordigoyanes commented 6 years ago

When running this api with nodeos (dawn 3.0), the list of blocks returned by the /v1/blocks endpoint isn't ordered very accurately. I guess this happens because nodeos produces blocks every 500ms, so it's 2 blocks in the same second. By ordering the list of latest blocks by their block number, we know it's accurate as printed by nodeos.