Skip to content

Conversation

@Himess
Copy link
Contributor

@Himess Himess commented Jan 24, 2026

Add integration test verifying multiple RPC extensions work together.

Tests that both TxPoolExtension and MeteringExtension RPCs are
accessible when installed simultaneously.

Closes #458

@cb-heimdall
Copy link
Collaborator

cb-heimdall commented Jan 24, 2026

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@Himess Himess marked this pull request as draft January 24, 2026 16:21
Add integration test to verify that multiple RPC-providing extensions
are all accessible when installed together. This test ensures that
the BaseBuilder properly accumulates RPC hooks instead of replacing them.

The test verifies:
- TxPool RPC (base_transactionStatus) is reachable
- Metering RPC (base_meterBlockByNumber) is reachable

Both should work simultaneously when both extensions are installed.

Closes base#458
@Himess Himess force-pushed the test/rpc-hook-accumulation-458 branch from 6a34396 to 236a7ce Compare January 24, 2026 17:50
Use vec![] macro instead of Vec::new() + push pattern to satisfy
clippy::vec_init_then_push lint.
@Himess Himess marked this pull request as ready for review January 24, 2026 19:45
@haardikk21 haardikk21 requested a review from niran January 26, 2026 15:12
@niran
Copy link
Contributor

niran commented Jan 26, 2026

This didn't compile for me without a small fix. Can you verify this?

The jsonrpsee crate doesn't have a 'types' feature. Instead, use the
separate jsonrpsee-types crate which provides the ErrorCode type.
@Himess
Copy link
Contributor Author

Himess commented Jan 26, 2026

Thanks for catching that. Fixed the crate doesn't have a feature, we need to use the separate crate instead.

@Himess Himess marked this pull request as draft January 26, 2026 18:23
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.

test: add integration test for RPC hook accumulation

3 participants