-
Notifications
You must be signed in to change notification settings - Fork 2.4k
chore(rpc): pending block helper trait #8640
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
Merged
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
cab888f
Make on_blocking_task method accessible in default trait method impls
emhane b902f35
Minimise thread interface eth api
emhane c35b40e
Update docs and symbol name
emhane 8ccddd3
Add missing reth primitives to op feature
emhane 257dc5d
Remove feature gate to fix broken test
emhane 40194d6
Fix flaky test
emhane 68e64b4
fixup! Fix flaky test
emhane 30b63cc
fixup! Fix flaky test
emhane fcc64ea
Update lock file
emhane 734ac99
Reinsert functions for spawning blocking threads into EthTransactions
emhane c000f43
Drive-by, update docs
emhane d1b91ad
Move spawn cpu heavy to trait
emhane eec99b8
Fix lint
emhane 924024f
Revert impl for spawning blocking io
emhane ea6cbd3
Make impl of spawn blocking default trait methods
emhane ecb6771
Update docs
emhane fe494dc
Revert unrelated changes
emhane ba6f403
Merge branch 'main' into emhane/blocking-read
emhane 55d2649
Merge branch 'matt/scaffold-ethapi' into emhane/blocking-read
emhane 139f97f
Merge branch 'matt/scaffold-ethapi' into emhane/blocking-read
emhane 8b8ed16
Fix lint
emhane f3ed6bd
Add super traits to spawn blocking
emhane 16334cd
Move impl of methods using evm config to default trait methods
emhane 20d2489
Move EthApi state access methods into trait
emhane 4a40032
Move EthTransaction impls to default trait methods
emhane f2df915
Move state rpc methods into new trait default impl
emhane ca19811
fixup! Move state rpc methods into new trait default impl
emhane 8ee373c
Move EthTransactions impl to default trait methods
emhane 6dfac1a
Add trait for pending block
emhane 90f67b6
Merge branch 'matt/scaffold-ethapi' into emhane/ethapi-txns
emhane 0db764e
Merge branch 'matt/scaffold-ethapi' into emhane/ethapi-txns
emhane 2340e87
Merge branch 'emhane/ethapi-txns' into emhane/ethapi-pending-block
emhane 3c0b7ab
Fix lint
emhane 6634723
Merge branch 'emhane/ethapi-txns' into emhane/ethapi-pending-block
emhane e93cb32
Nitpick
emhane b1a3160
Return impl types without ref
emhane 9ec16f0
Move RawTransactionForwarder into traits mod
emhane 34eac96
Merge branch 'matt/scaffold-ethapi' into emhane/ethapi-txns
emhane 13edf49
Fix merge conflicts
emhane 42f7d74
Merge branch 'emhane/ethapi-txns' of github.com:paradigmxyz/reth into…
emhane a355c26
Merge branch 'emhane/ethapi-txns' into emhane/ethapi-pending-block
emhane 4b81978
Fix lint
emhane 4efb2e8
Merge branch 'matt/scaffold-ethapi' into emhane/ethapi-pending-block
emhane 008f939
Fix lint
emhane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,12 +1,5 @@ | ||||
| //! Contains RPC handler implementations for fee history. | ||||
|
|
||||
| use crate::{ | ||||
| eth::{ | ||||
| api::fee_history::{calculate_reward_percentiles_for_block, FeeHistoryEntry}, | ||||
| error::{EthApiError, EthResult}, | ||||
| }, | ||||
| EthApi, | ||||
| }; | ||||
| use reth_evm::ConfigureEvm; | ||||
| use reth_network_api::NetworkInfo; | ||||
| use reth_primitives::{BlockNumberOrTag, U256}; | ||||
|
|
@@ -15,8 +8,20 @@ use reth_rpc_types::FeeHistory; | |||
| use reth_transaction_pool::TransactionPool; | ||||
| use tracing::debug; | ||||
|
|
||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see #8639 (comment) |
||||
| use crate::{ | ||||
| eth::{ | ||||
| api::{ | ||||
| fee_history::{calculate_reward_percentiles_for_block, FeeHistoryEntry}, | ||||
| LoadPendingBlock, | ||||
| }, | ||||
| error::{EthApiError, EthResult}, | ||||
| }, | ||||
| EthApi, | ||||
| }; | ||||
|
|
||||
| impl<Provider, Pool, Network, EvmConfig> EthApi<Provider, Pool, Network, EvmConfig> | ||||
| where | ||||
| Self: LoadPendingBlock, | ||||
| Pool: TransactionPool + Clone + 'static, | ||||
| Provider: | ||||
| BlockReaderIdExt + ChainSpecProvider + StateProviderFactory + EvmEnvProvider + 'static, | ||||
|
|
||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.