hirosystems / stacks-blockchain-api

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

fix: event-replay block parsing outdated and incorrect #2133

Closed zone117x closed 1 month ago

zone117x commented 1 month ago

The event-replay logic was using a copy&pasted function for parsing /new_block data, which had become outdated and incorrect.

This removes the duplicated code, and both event-replay and regular block ingestion use the same (correct) block parsing code.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 96.96970% with 2 lines in your changes missing coverage. Please review. Files with missing lines Patch % Lines
...play/parquet-based/importers/new-block-importer.ts 0.00% 1 Missing :warning:
src/event-stream/event-server.ts 98.46% 1 Missing :warning:

:loudspeaker: Thoughts on this report? Let us know!

github-actions[bot] commented 1 month ago

Vercel deployment URL: https://stacks-blockchain-hvppvv6qd-hirosystems.vercel.app :rocket:

blockstack-devops commented 1 month ago

:tada: This PR is included in version 8.2.0-beta.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

blockstack-devops commented 1 month ago

:tada: This PR is included in version 8.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: