8000 support eth_subscribe newPendingTransactionsWithBody by AndreyBronin · Pull Request #672 · drpcorg/dshackle · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

support eth_subscribe newPendingTransactionsWithBody #672

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 3 commits into from
Jun 5, 2025

Conversation

AndreyBronin
Copy link
Contributor

No description provided.

@AndreyBronin AndreyBronin requested a review from a10zn8 June 5, 2025 07:48
Copy link
Contributor
@tonatoz tonatoz left a comment

Choose a reason for hiding this comment

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

LGTM

currentUpstream.getIngressReader().read(request)
.timeout(Defaults.internalCallsTimeout)
.map { response ->
Global.objectMapper.readValue(response.getResult(), Transaction::class.java)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's better to avoid unnecessary serialization if there is no result (in that case there is an error). Otherwise there will be an error, but by adding a check we can return Mono.empty immediately

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@AndreyBronin AndreyBronin force-pushed the newPendingTransactions-routing branch from 4773eb6 to 22530d8 Compare June 5, 2025 15:05
@AndreyBronin AndreyBronin merged commit 5360d5e into master Jun 5, 2025
1 check passed
@AndreyBronin AndreyBronin deleted the newPendingTransactions-routing branch June 5, 2025 15:16
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.

3 participants
0