feat(eth_subscribe): SubscribeFullPendingTransactions #60
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.
This pull request introduces several changes to enhance the handling of pending transactions in the Ethereum client. The primary updates include adding support for full transaction objects in pending transaction filters and modifying related APIs to accommodate this new functionality.
Enhancements to Pending Transaction Handling:
ChainConfig
andCurrentHeader
methods to thefilterBackend
interface inaccounts/abi/bind/backends/simulated.go
.fullTx
flag andtxs
field to thefilter
struct ineth/filters/api.go
to support full transaction objects.NewPendingTransactionFilter
andNewPendingTransactions
methods ineth/filters/api.go
to handle full transaction objects when thefullTx
flag is set. [1] [2] [3]GetFilterChanges
method ineth/filters/api.go
to return full transactions if thefullTx
flag is true. [1] [2]API and Subscription Updates:
SubscribeFullPendingTransactions
method to theClient
inethclient/gethclient/gethclient.go
to subscribe to full pending transactions.SubscribePendingTxs
method ineth/filters/filter_system.go
to handle full transaction objects.handleTxsEvent
method ineth/filters/filter_system.go
to pass full transaction objects to filters.Test Enhancements:
TestPendingTxFilterFullTx
ineth/filters/filter_system_test.go
to verify the functionality of pending transaction filters with full transactions.These changes collectively improve the flexibility and functionality of pending transaction filters, allowing developers to retrieve complete transaction details when needed.