Skip to content

Conversation

@MishkaRogachev
Copy link
Contributor

@MishkaRogachev MishkaRogachev commented Jan 13, 2026

Close NIT-4299
Waits: #4234

Changes:

@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

❌ Patch coverage is 85.36585% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.96%. Comparing base (78ac7d5) to head (cf1115d).

Additional details and impacted files
@@                      Coverage Diff                      @@
##           s3-scensorship-resistant    #4235       +/-   ##
=============================================================
+ Coverage                     32.36%   56.96%   +24.60%     
=============================================================
  Files                           477      476        -1     
  Lines                         56865    56808       -57     
=============================================================
+ Hits                          18402    32363    +13961     
+ Misses                        35228    19597    -15631     
- Partials                       3235     4848     +1613     

@MishkaRogachev MishkaRogachev force-pushed the transaction-address-filter-hashed-address-filter branch from ae96608 to 9f01974 Compare January 13, 2026 13:47
@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2026

❌ 17 Tests Failed:

Tests completed Failed Passed Skipped
2776 17 2759 0
View the top 3 failed tests by shortest run time
TestMain
Stack Traces | 0.000s run time
FAIL	github.com/offchainlabs/nitro/addressfilter [build failed]
FAIL	github.com/offchainlabs/nitro/addressfilter [build failed]
TestMain
Stack Traces | 0.000s run time
FAIL	github.com/offchainlabs/nitro/system_tests [build failed]
FAIL	github.com/offchainlabs/nitro/system_tests [build failed]
TestMain
Stack Traces | 0.000s run time
FAIL	github.com/offchainlabs/nitro/addressfilter [build failed]
FAIL	github.com/offchainlabs/nitro/addressfilter [build failed]

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov

@MishkaRogachev MishkaRogachev force-pushed the transaction-address-filter-hashed-address-filter branch from 9f01974 to 041fbdf Compare January 14, 2026 14:25
@MishkaRogachev MishkaRogachev changed the base branch from master to s3-scensorship-resistant January 14, 2026 14:26
@MishkaRogachev MishkaRogachev force-pushed the transaction-address-filter-hashed-address-filter branch from 041fbdf to e5eb39c Compare January 15, 2026 13:32
@mahdy-nasr mahdy-nasr force-pushed the s3-scensorship-resistant branch from 635f047 to f0ee6c2 Compare January 16, 2026 16:54
@mahdy-nasr mahdy-nasr force-pushed the s3-scensorship-resistant branch from 6235f36 to 064f48a Compare January 20, 2026 19:43
@MishkaRogachev MishkaRogachev force-pushed the transaction-address-filter-hashed-address-filter branch 2 times, most recently from e0c620d to d996b94 Compare January 21, 2026 15:50
@MishkaRogachev MishkaRogachev marked this pull request as ready for review January 21, 2026 15:51
@MishkaRogachev MishkaRogachev force-pushed the transaction-address-filter-hashed-address-filter branch from d996b94 to 2370090 Compare January 22, 2026 11:26
Comment on lines 14 to 17
// Default parameters for HashedAddressChecker, used in NewDefaultHashedAddressChecker
const (
restrictedAddrWorkerCount = 4
restrictedAddrQueueSize = 1024
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I think their names could be suffixed/prefixed by "default" which make them clearer.

Comment on lines 93 to 94
// queue full: drop check (fail-open, false negative possible)
s.pending.Done()
Copy link
Contributor

Choose a reason for hiding this comment

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

why fail-open here? is there a policy or something allows false negatives here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. This kind of trade off: block the whole execution vs. miss some addresses. After reconsideration, I think missing some addresses is not acceptable here so I've changed it to block instead. I also increased queue size to 8192, assuming address lookups should be fast enough .
@tristan fyi

@MishkaRogachev MishkaRogachev marked this pull request as draft January 22, 2026 16:55
@MishkaRogachev MishkaRogachev marked this pull request as ready for review January 22, 2026 17:56
Copy link
Member

@Tristan-Wilson Tristan-Wilson left a comment

Choose a reason for hiding this comment

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

Please take a look at the StopWaiter utility we're using elsewhere in the code for managing spawning goroutines and graceful shutdown.

@MishkaRogachev
Copy link
Contributor Author

@Tristan-Wilson II added StopWaiter, but now I think the checker instance should be moved to FilterService. I will wait until FilterService is merged with the master, and then I will make the final fixes. Also, i removed the previous implementation

@MishkaRogachev MishkaRogachev marked this pull request as draft January 28, 2026 16:08
Base automatically changed from s3-scensorship-resistant to master January 28, 2026 19:10
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