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

Filter transaction #377

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Filter transaction #377

wants to merge 4 commits into from

Conversation

ganeshvanahalli
Copy link
Contributor

@ganeshvanahalli ganeshvanahalli commented Nov 22, 2024

This PR enables filtering of malicious transactions and blocks via a stateDB object

Corresponding Nitro PR- OffchainLabs/nitro#2807
Part of NIT-2848

Copy link
Member

@eljobe eljobe left a comment

Choose a reason for hiding this comment

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

Can you also update the PR comment to explain what's going on and why? The link to the Linear ticket is not sufficient for people who want to contribute to the project but don't have access to Linear.

core/state/statedb.go Outdated Show resolved Hide resolved
core/vm/interface.go Show resolved Hide resolved
type arbFiltered int

const (
txFiltered arbFiltered = 1 + iota
Copy link
Member

Choose a reason for hiding this comment

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

I think there should be another value in the enum for the zero value.
Maybe unfiltered or notFiltered

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added it

type arbFiltered int

const (
unFiltered arbFiltered = iota
Copy link
Member

Choose a reason for hiding this comment

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

Sorry to be so picky, but since unfiltered is a single word in English. I'd either use unfiltered or notFiltered here.

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