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

Feature/block filtering impl #435

Merged
merged 7 commits into from
Mar 14, 2024
Merged

Conversation

ArnaudBger
Copy link
Contributor

Setup Block Filter attribute and Block Index Kind

@sduchesneau sduchesneau force-pushed the feature/block_filtering_impl branch from 9051e3b to cf246c3 Compare March 14, 2024 18:38
Copy link
Contributor

@sduchesneau sduchesneau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just change the Inputs behavior and it's good to go!

@@ -80,6 +80,23 @@ func (r *manifestConverter) validateManifest(manif *Manifest) error {
if s.Use != "" {
return fmt.Errorf("stream %q: 'use' is not allowed for kind 'store'", s.Name)
}
case ModuleKindBlockIndex:
if s.Inputs != nil {
return fmt.Errorf("stream %q: block index module cannot have inputs", s.Name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Au contraire, it must have at least one input, but not of "param" type

manifest: &Manifest{
SpecVersion: "v0.1.0",
Modules: []*Module{
{Name: "basic_index", Kind: "blockIndex", Output: StreamOutput{"proto:sf.substreams.index.v1.Keys"}},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an input (type source:block or something...) to all tests

Copy link
Contributor

@sduchesneau sduchesneau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ArnaudBger ArnaudBger merged commit 2a98793 into develop Mar 14, 2024
4 of 5 checks passed
@sduchesneau sduchesneau deleted the feature/block_filtering_impl branch March 15, 2024 19:09
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.

2 participants