Skip to content
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

Implementation of procs to support Fluffy state JSON-RPC endpoints. #2318

Merged
merged 7 commits into from
Jun 10, 2024

Conversation

web3-developer
Copy link
Contributor

No description provided.

@web3-developer web3-developer changed the title Implementation of procs to support Fluffy JSON-RPC endpoints. Implementation of procs to support Fluffy state JSON-RPC endpoints. Jun 7, 2024
@web3-developer web3-developer requested a review from kdeme June 7, 2024 15:12
@web3-developer web3-developer marked this pull request as ready for review June 7, 2024 15:12
n: HistoryNetwork, bn: UInt256
): Future[Result[Opt[Block], string]] {.async.} =
let
blockHash = ?(await n.getBlockHashByNumber(bn))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kdeme Please let me know if this update to the history network looks ok.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, that's fine.

n: HistoryNetwork, bn: UInt256
): Future[Result[Opt[Block], string]] {.async.} =
let
blockHash = ?(await n.getBlockHashByNumber(bn))
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, that's fine.

@@ -139,7 +139,7 @@ proc installEthApiHandlers*(

rpcServerWithProxy.registerProxyMethod("eth_feeHistory")

rpcServerWithProxy.registerProxyMethod("eth_getBalance")
# rpcServerWithProxy.registerProxyMethod("eth_getBalance")
Copy link
Contributor

Choose a reason for hiding this comment

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

Not really a big deal, as I don't think anybody uses/tests it in that way, but I wanted to note that currently with these registerProxyMethods enabled you can let the requests be forwarded to another endpoint until implemented.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I'm planning to implement these endpoints shortly but I'll revert this part just to prevent any issues in the mean time.

@web3-developer web3-developer merged commit c72d6aa into master Jun 10, 2024
9 of 10 checks passed
@web3-developer web3-developer deleted the fluffy-state-endpoints branch June 10, 2024 10:47
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.

None yet

2 participants