Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement 'block header cbor by block hash' reducer with new 'filter_matches_block!' macro #70

Merged
merged 1 commit into from Aug 30, 2022

Conversation

jmhrpr
Copy link
Member

@jmhrpr jmhrpr commented Aug 29, 2022

Implements a block-focused reducer, which uses a new filter_matches_block! macro that can be used to match blocks for which any of the contained transactions satisfy the given predicates.

For example one may wish to store the block hash and block header of blocks which contain transactions which send funds to or from a particular address, perhaps to see when those transactions occurred using the block height.

Key: block hash
Value: block header in raw CBOR

@jmhrpr jmhrpr requested a review from scarmuega as a code owner August 29, 2022 19:36
@scarmuega scarmuega merged commit db8d2c5 into txpipe:main Aug 30, 2022
@jmhrpr jmhrpr deleted the feat/block-header-by-hash branch August 31, 2022 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants