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

RPC compatiblity testing #3584

Closed
lemmih opened this issue Oct 12, 2023 · 0 comments · Fixed by #3616
Closed

RPC compatiblity testing #3584

lemmih opened this issue Oct 12, 2023 · 0 comments · Fixed by #3616

Comments

@lemmih
Copy link
Contributor

lemmih commented Oct 12, 2023

Issue summary

Notes and thoughts.

We want to verify that Forest is syntactically compatible with a known subset of the Lotus RPC calls. This means our requests/response pairs follow the same JSON schema. We also want to verify that our responses are sensible. Exactly what this means depends on the RPC call in question, unfortunately.

We can assert that blockchain-related RPC calls return exactly the same as their Lotus counterpart (for example, ChainGetTipSetByHeight must return the same answer in both Forest and Lotus). Non-blockchain RPC calls (such as MpoolPending) are more difficult to test, and we may settle for merely testing the JSON schema.

Other information and links

Using glif.io for compatibility testing isn't ideal since they do not give access to several important RPC methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant