-
Notifications
You must be signed in to change notification settings - Fork 46
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
Conversation
9051e3b
to
cf246c3
Compare
There was a problem hiding this 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!
manifest/package.go
Outdated
@@ -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) |
There was a problem hiding this comment.
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/package_test.go
Outdated
manifest: &Manifest{ | ||
SpecVersion: "v0.1.0", | ||
Modules: []*Module{ | ||
{Name: "basic_index", Kind: "blockIndex", Output: StreamOutput{"proto:sf.substreams.index.v1.Keys"}}, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Setup Block Filter attribute and Block Index Kind