Skip to content

Verify Forest RPC responses with chain.data.riba.plus #7293

Description

@LesnyRumcajs

Summary

Forest responses should be validated with the chain.data.riba.plus dataset that holds data for numerous RPC calls. Note that it's generated independently of Forest and Lotus so each mismatch can mean:

Those checks need to be integrated into CI but as first steps, we need to ensure it works locally (at least two days worth of data on both chains).

Completion Criteria

Check the output for the following methods, both calibnet and mainnet. Investigate discrepancies.

  • eth_getBlockByNumber
  • eth_getBlockReceipts
  • Filecoin.ChainGetTipSetByHeight
  • eth_getTransactionByBlockNumberAndIndex via ... eth_getBlockByNumber ... | jq -c '.result.transactions[$txnNum]'
  • eth_getLogs via ... eth_getBlockReceipts ... | jq -c '[ ( .result // [] )[].logs[] ]'
  • Filecoin.ChainGetParentMessages (not yet available in the dataset)
  • Filecoin.ChainGetParentReceipts (not yet available in the dataset)

Additional Links & Resources

Sample script for checking eth_getBlockByNumber with accessList and logsBloom exceptions allowed.

https://gist.github.com/LesnyRumcajs/ca1632f2ed6c3ad52409f31b60ec25e0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: TaskDiscrete task to implement

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions