-
Notifications
You must be signed in to change notification settings - Fork 13
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: Add ordering on new filtered methods. #106
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Antonio Navarro <[email protected]>
Signed-off-by: Antonio Navarro <[email protected]>
Signed-off-by: Antonio Navarro <[email protected]>
Signed-off-by: Antonio Navarro <[email protected]>
Signed-off-by: Antonio Navarro <[email protected]>
return false | ||
} | ||
|
||
// TODO check if this is correct |
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.
remove TODO
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.
Leftover?
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.
Looks good 💯
@@ -51,7 +51,6 @@ linters: | |||
- tagliatelle # Checks struct tags | |||
- tenv # Detects using os.Setenv instead of t.Setenv | |||
- testableexamples # Checks if examples are testable (have expected output) | |||
- unparam # Finds unused params |
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.
Why remove 😢
@@ -66,6 +66,19 @@ func (m *Storage) TxIterator( | |||
panic("not implemented") // TODO: Implement | |||
} | |||
|
|||
func (m *Storage) BlockReverseIterator(_, _ uint64) (storage.Iterator[*types.Block], error) { | |||
panic("not implemented") // TODO: Implement |
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.
Leftover?
_, | ||
_ uint32, | ||
) (storage.Iterator[*types.TxResult], error) { | ||
panic("not implemented") // TODO: Implement |
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.
Leftover?
var err error | ||
var it storage.Iterator[*bfttypes.Block] |
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.
Lil' nitpick:
var (
err error
it storage.Iterator[*bfttypes.Block]
)
return false | ||
} | ||
|
||
// TODO check if this is correct |
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.
Leftover?
Add a new field apart from
where
to make it possible to change the output ordering for new filtered methods.