hirosystems / stacks-blockchain-api

API for the Stacks blockchain
https://stacks-blockchain-api.vercel.app
GNU General Public License v3.0
172 stars 111 forks source link

Use stacks block timestamp for block ingestion #2021

Closed zone117x closed 1 week ago

zone117x commented 3 months ago

Stacks block timestamps have been added to Nakamoto blocks in https://github.com/stacks-network/stacks-core/pull/4846

API code currently takes Date.now() during block ingestion for this value: https://github.com/hirosystems/stacks-blockchain-api/blob/eada84e2ce7b5decf75e29809f91f33fd8e6ae21/src/event-stream/event-server.ts#L251-L258

zone117x commented 1 week ago

Confirmed this is working as expected with latest stacks-core develop 🎉