Skip to content

StateEncodeParams API panics with market actor method #13329

@akaladarshi

Description

@akaladarshi

Checklist

  • This is not a security-related bug/issue. If it is, please follow please follow the security policy.
  • I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
  • I am running the Latest release, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
  • I did not make any code changes to lotus.

Lotus component

  • lotus daemon - chain sync
  • lotus fvm/fevm - Lotus FVM and FEVM interactions
  • lotus miner/worker - sealing
  • lotus miner - proving(WindowPoSt/WinningPoSt)
  • lotus JSON-RPC API
  • lotus message management (mpool)
  • Other

Lotus Version

Daemon:  1.33.2-dev+calibnet+git.7ee695ab1.dirty+api1.5.0
Local: lotus version 1.33.2-dev+calibnet+git.7ee695ab1.dirty

Repro Steps

  1. Run 'lotus daemon start'
  2. Do
curl -X POST http://localhost:1234/rpc/v1 -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "method": "Filecoin.StateEncodeParams", "params": [{"/": "bafk2bzacebsn3npegbog3dytzvx6ewliykjkrzuzzrxphe3dmokbou3d4knt2"}, 2034386435, {"Sector":1,"MinimumCommitmentEpoch":22,"Added":[{"Data":{"/":"baga6ea4seaqao7s73y24kcutaosvacpdjgfe5pw76ooefnyqw4ynr3d2y6x2mpq"},"Size":2048,"Payload":"EjRWeA=="}]}], "id": 1}''
  1. See error
{"error":{"code":0,"message":"fatal error calling 'Filecoin.StateEncodeParams': panic in rpc method 'Filecoin.StateEncodeParams': interface conversion: *[]miner.SectorChanges is not typegen.CBORUnmarshaler: missing method UnmarshalCBOR"},"id":1,"jsonrpc":"2.0"}

...

Describe the Bug

While trying to call the StateEncodeParams API in Market Actor for the method SectorContentChanged it panics the node (node doesn't halt but panics).

Logging Information

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🎉 Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions