Skip to content

arbitrum: Add FilterSetID to FilteredAddressRecord#648

Open
MishkaRogachev wants to merge 9 commits intomasterfrom
add-filtersetid-to-filteredaddressrecord
Open

arbitrum: Add FilterSetID to FilteredAddressRecord#648
MishkaRogachev wants to merge 9 commits intomasterfrom
add-filtersetid-to-filteredaddressrecord

Conversation

@MishkaRogachev
Copy link
Copy Markdown
Contributor

@MishkaRogachev MishkaRogachev commented Apr 10, 2026

Part of NIT-4780
Waits OffchainLabs/nitro#4557
Pulled in by OffchainLabs/nitro#4626

Add FilterSetID field to FilteredAddressRecord and expose it through the AddressChecker and StateDB interfaces so callers can stamp each record with the active filter set id.

@MishkaRogachev MishkaRogachev changed the base branch from master to update-touchaddress-and-hashedaddresscheckerstateisfiltered April 10, 2026 11:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds filter set attribution to Arbitrum address-filtering reports by extending the filtered-address record model and adjusting StateDB.TouchAddress plumbing so the filter implementation can attach the active filter-set ID when producing final records.

Changes:

  • Introduces FilterSetID on filter.FilteredAddressRecord and factors out FilteredAddressWithReason as the input shape.
  • Updates StateDB.TouchAddress (and related interfaces/wrappers) to accept filter.FilteredAddressWithReason instead of a *FilteredAddressRecord.
  • Updates call sites (gas estimator + EVM selfdestruct ops) to pass FilteredAddressWithReason.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
eth/gasestimator/gasestimator.go Updates address-touch calls to pass FilteredAddressWithReason.
core/vm/interface.go Updates StateDB interface TouchAddress signature to new input type.
core/vm/instructions.go Updates selfdestruct address-touch calls to new input type.
core/state/statedb.go Updates StateDB.TouchAddress implementation to forward the new input type.
core/state/statedb_hooked.go Updates hooked StateDB wrapper to match new signature.
core/state/statedb_arbitrum.go Updates AddressCheckerState interface to accept FilteredAddressWithReason.
arbitrum/filter/filter_report.go Adds FilterSetID to records and introduces FilteredAddressWithReason.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/state/statedb.go Outdated
Comment thread core/state/statedb_hooked.go Outdated
@MishkaRogachev MishkaRogachev marked this pull request as ready for review April 13, 2026 14:49
@MishkaRogachev MishkaRogachev changed the base branch from update-touchaddress-and-hashedaddresscheckerstateisfiltered to master April 14, 2026 13:17
@MishkaRogachev MishkaRogachev changed the base branch from master to update-touchaddress-and-hashedaddresscheckerstateisfiltered April 14, 2026 13:17
…dresscheckerstateisfiltered' into add-filtersetid-to-filteredaddressrecord
Comment thread core/state/statedb.go Outdated
}

func (s *StateDB) TouchAddress(record *filter.FilteredAddressRecord) {
func (s *StateDB) TouchAddress(touched filter.FilteredAddressWithReason) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
func (s *StateDB) TouchAddress(touched filter.FilteredAddressWithReason) {
func (s *StateDB) TouchAddress(touched *filter.FilteredAddressWithReason) {

diegoximenes
diegoximenes previously approved these changes Apr 15, 2026
Copy link
Copy Markdown
Contributor

@diegoximenes diegoximenes left a comment

Choose a reason for hiding this comment

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

LGTM, I will keep it assigned to me while the base branch is not merged

Base automatically changed from update-touchaddress-and-hashedaddresscheckerstateisfiltered to master April 16, 2026 12:30
@diegoximenes diegoximenes dismissed their stale review April 16, 2026 12:30

The base branch was changed.

@diegoximenes diegoximenes assigned tsahee and unassigned diegoximenes Apr 17, 2026
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.

4 participants