Skip to content

MinerGetBaseInfo on Lotus requires a non-empty tipset key #7422

Closed

Description

@EclesioMeloJunior

Summary

When calling the Forest RPC method MinerGetBaseInfo the given curl is accepted

curl --silent -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","id":2,"method":"Filecoin.MinerGetBaseInfo","params":["t0143103", 3929308, null]}' "http://127.0.0.1:${port}/rpc/v1" | jq

while the same on lotus I got:

{
  "error": {
    "code": 1,
    "message": "failed to load tipset for mining base: NewTipSet called with zero length array of blocks"
  },
  "id": 2,
  "jsonrpc": "2.0"
}

same error if I pass an empty [] as the last parameter in the curl, which sounds like Lotus requires a tipset key

Completion Criteria

  • Map why Lotus request the tipset key as an required parameter
  • Change current Forest RPC method to require tipset key

Additional Links & Resources

  • N/A

Activity

  1. added
    Type: Task
    on Jul 29, 2026
  2. 0xDevNinja commented on Aug 3, 2026

    @0xDevNinja
    Contributor

    Would like to take this one. Had a dig through the code and Forest runs MinerGetBaseInfo through load_required_tipset_or_heaviest, so a null or empty tipset key quietly falls back to the heaviest tipset instead of erroring like Lotus does. Plan is to make the method require a non empty tipset key and return a matching error when it's missing, with a conformance test for the empty key case. Happy to wait for the go ahead before I push anything.

  3. LesnyRumcajs commented on Aug 3, 2026

    @LesnyRumcajs
    Member

    @0xDevNinja Sure, go ahead. Thanks.

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

Metadata

Metadata

Assignees

Labels

Type: Task

Type

Fields

Priority

Low

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions