-
Notifications
You must be signed in to change notification settings - Fork 159
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
feat: implement Filecoin.ChainGetMessagesInTipset
API (server side)
#3670
Conversation
@lemmih Do we need to write tests for each single API? |
Yes. |
Testing this method is easy since it has to be identical to Lotus. Add the tests in |
@lemmih It seems that this API has been covered in Running `target/debug/forest-tool api compare /home/me/fr/snapshots/calibnet/1063920_2023_11_06T04_13_00Z.car.zst`
| RPC Method | Forest | Lotus |
|---------------------------------------|---------------------|---------------|
| Filecoin.ChainGetBlock | Valid | Valid |
| Filecoin.ChainGetGenesis | Valid | Valid |
| Filecoin.ChainGetMessage (89) | InternalServerError | Valid |
| Filecoin.ChainGetMessage (2) | Valid | Valid |
| Filecoin.ChainGetMessagesInTipset | Valid | Valid |
| Filecoin.ChainGetParentMessages | MissingMethod | Valid |
| Filecoin.ChainGetTipSetByHeight | Valid | Valid |
| Filecoin.ChainHead | Valid | Valid |
| Filecoin.ChainReadObj | InvalidResponse | Valid |
| Filecoin.Discover | MissingMethod | Valid |
| Filecoin.MpoolPending | Valid | Valid |
| Filecoin.NetAddrsListen | Valid | Valid |
| Filecoin.NetInfo | Valid | MissingMethod |
| Filecoin.NetPeers | Valid | Valid |
| Filecoin.Session | MissingMethod | Valid |
| Filecoin.StartTime | Valid | Valid |
| Filecoin.StateGetActor | Valid | Valid |
| Filecoin.StateGetRandomnessFromBeacon | MissingMethod | Valid |
| Filecoin.StateMinerActiveSectors | MissingMethod | Valid |
| Filecoin.StateMinerPower (79) | MissingMethod | Valid |
| Filecoin.StateNetworkName | Valid | Valid |
| Filecoin.StateReadState | MissingMethod | Valid |
| Filecoin.Version | Valid | Valid | |
Good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Replace MessageInTipset
with ApiMessage
and it's good to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this tested? Say, I change the chain_get_messages_in_tipset
to not return any messages, ever, with messages.clear()
at the end. Will this be caught?
There are tests that will catch that (by comparing our output to that of Lotus), but they're not yet part of the CI. Running the tests in CI is out of scope for this PR. |
Summary of changes
As part of #3639
Changes introduced in this pull request:
Manually tested on calibnet
request payload:
Lotus response
Forest response
Reference issue to close (if applicable)
Closes
Other information and links
Change checklist