Skip to content

feat(geyser): filter block accounts by pubkey or owner#757

Open
Efcolipt wants to merge 2 commits into
rpcpool:masterfrom
Efcolipt:master
Open

feat(geyser): filter block accounts by pubkey or owner#757
Efcolipt wants to merge 2 commits into
rpcpool:masterfrom
Efcolipt:master

Conversation

@Efcolipt

@Efcolipt Efcolipt commented Jun 7, 2026

Copy link
Copy Markdown

No description provided.

@leafaar

leafaar commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

hey, thanks for the pr, it looks very minimal, taking a look

@leafaar leafaar left a comment

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.

it looks good to me.

@leafaar

leafaar commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

@Efcolipt could you sign your commit please

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds owner-based matching to the Blocks stream account filtering so that updated accounts can be selected when either the account pubkey or the account owner matches blocks.account_include.

Changes:

  • Extend FilterBlocks account selection to match account.owner in addition to account.pubkey.

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

Comment on lines 973 to 975
.filter_map(|account| {
if inner.matches_account(&account.pubkey) {
if inner.matches_account(&account.pubkey) || inner.matches_account(&account.owner) {
Some(Arc::clone(account))
.iter()
.filter_map(|account| {
if inner.matches_account(&account.pubkey) {
if inner.matches_account(&account.pubkey) || inner.matches_account(&account.owner) {
@Efcolipt
Efcolipt force-pushed the master branch 2 times, most recently from e76a6ea to fed9be2 Compare June 7, 2026 20:54
@Efcolipt

Efcolipt commented Jun 7, 2026

Copy link
Copy Markdown
Author

@leafaar Signed

@lvboudre

Copy link
Copy Markdown
Contributor

Could you add unit test for this please.

@leafaar

leafaar commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

agree ^^

@Efcolipt

Efcolipt commented Jul 2, 2026

Copy link
Copy Markdown
Author

ok

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