Skip to content

fix(api): StateSearchMsg should respect lookbackLimit#13562

Merged
rvagg merged 4 commits intofilecoin-project:masterfrom
hanabi1224:hm/StateSearchMsg-should-respect-lookbacklimit
Mar 30, 2026
Merged

fix(api): StateSearchMsg should respect lookbackLimit#13562
rvagg merged 4 commits intofilecoin-project:masterfrom
hanabi1224:hm/StateSearchMsg-should-respect-lookbacklimit

Conversation

@hanabi1224
Copy link
Copy Markdown
Contributor

@hanabi1224 hanabi1224 commented Mar 29, 2026

Related Issues

Sending the below payload to Lotus RPC v1 should result in message not found error. However, Lotus@v1.35.1-rc1 responds successfully.
Message bafy2bzacebeauanjqdy3yxrsvci7zmyqdh2wygsrlyvf6w5bsw6agiknbvvwy belongs to epoch 3580905 which should exceed lookbackLimit(800) for the head@3583194 as of writing

{
    "jsonrpc": "2.0",
    "method": "Filecoin.StateSearchMsg",
		"params": [
			null,
      {
        "/": "bafy2bzacebeauanjqdy3yxrsvci7zmyqdh2wygsrlyvf6w5bsw6agiknbvvwy"
      },
      800,
      false
  	],
    "id": 123
}

Proposed Changes

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

@github-project-automation github-project-automation Bot moved this to 📌 Triage in FilOz Mar 29, 2026
@hanabi1224 hanabi1224 force-pushed the hm/StateSearchMsg-should-respect-lookbacklimit branch from adb9943 to 13a441b Compare March 29, 2026 22:14
@hanabi1224 hanabi1224 force-pushed the hm/StateSearchMsg-should-respect-lookbacklimit branch from 13a441b to adf8d22 Compare March 29, 2026 22:20
@hanabi1224 hanabi1224 marked this pull request as ready for review March 29, 2026 22:42
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-project-automation github-project-automation Bot moved this from 📌 Triage to ⌨️ In Progress in FilOz Mar 29, 2026
@hanabi1224 hanabi1224 changed the title fix(rpc): StateSearchMsg should respect lookbackLimit fix(api): StateSearchMsg should respect lookbackLimit Mar 29, 2026
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hanabi1224 hanabi1224 changed the title fix(api): StateSearchMsg should respect lookbackLimit fix(api): StateSearchMsg should respect lookbackLimit Mar 29, 2026
@github-actions github-actions Bot dismissed their stale review March 29, 2026 22:50

PR title now matches the required format.

Comment thread chain/stmgr/searchwait.go Outdated
hanabi1224 and others added 2 commits March 30, 2026 13:21
Co-authored-by: Rod Vagg <rod@vagg.org>
@github-project-automation github-project-automation Bot moved this from ⌨️ In Progress to ✔️ Approved by reviewer in FilOz Mar 30, 2026
@rvagg
Copy link
Copy Markdown
Member

rvagg commented Mar 30, 2026

nice find

@rvagg rvagg merged commit 322bf83 into filecoin-project:master Mar 30, 2026
94 of 95 checks passed
@github-project-automation github-project-automation Bot moved this from ✔️ Approved by reviewer to 🎉 Done in FilOz Mar 30, 2026
@hanabi1224 hanabi1224 deleted the hm/StateSearchMsg-should-respect-lookbacklimit branch March 30, 2026 06:51
rjan90 added a commit that referenced this pull request Mar 30, 2026
* fix(rlp): modernisation, hardening, and perforance improvements (#13555)

* chore: bump go-paramfetch to latest version (#13559)

chore: bump go-paramfetch to latest version

* fix(api): `StateSearchMsg` should respect `lookbackLimit` when using index (#13562)

---------

Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: hanabi1224 <harlowmoo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

2 participants