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: Add ordering on new filtered methods. #106

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ajnavarro
Copy link
Collaborator

Add a new field apart from where to make it possible to change the output ordering for new filtered methods.

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
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

remove TODO

Copy link
Member

Choose a reason for hiding this comment

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

Leftover?

@Kouteki Kouteki added the in focus Core team is actively working on this label Nov 7, 2024
Copy link
Member

@zivkovicmilos zivkovicmilos left a 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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

Leftover?

Comment on lines +139 to +140
var err error
var it storage.Iterator[*bfttypes.Block]
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

Leftover?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in focus Core team is actively working on this
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

3 participants