Skip to content

feat: add ordering by nonce flag to get sequential messages#13394

Merged
rvagg merged 10 commits intofilecoin-project:masterfrom
DarkLord017:feat/order-by-nonce
Jan 19, 2026
Merged

feat: add ordering by nonce flag to get sequential messages#13394
rvagg merged 10 commits intofilecoin-project:masterfrom
DarkLord017:feat/order-by-nonce

Conversation

@DarkLord017
Copy link
Copy Markdown
Contributor

Related Issues

Fixes #13246

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 Oct 18, 2025
@DarkLord017
Copy link
Copy Markdown
Contributor Author

@wjmelements is there any way to test this , like instead of running it e2e

Comment thread cli/state.go Outdated
@BigLep BigLep moved this from 📌 Triage to 🔎 Awaiting Review in FilOz Oct 21, 2025
@BigLep BigLep marked this pull request as ready for review October 21, 2025 05:00
Copilot AI review requested due to automatic review settings October 21, 2025 05:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new --order-by-nonce flag to the state list-msgs CLI command, enabling users to retrieve messages ordered sequentially by nonce when filtering by a 'from' address. This addresses issue #13246 by providing a way to view messages in the order they were intended to be executed.

Key changes:

  • Added --order-by-nonce boolean flag with appropriate usage documentation
  • Implemented message buffering and sorting logic that orders messages by nonce when the flag is enabled
  • The ordering only applies when a 'from' address filter is specified

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread cli/state.go Outdated
Comment thread cli/state.go Outdated
Comment thread cli/state.go Outdated
@DarkLord017 DarkLord017 requested a review from Copilot October 21, 2025 08:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread cli/state.go Outdated
Comment thread cli/state.go
Comment thread cli/state.go
Co-authored-by: Copilot <[email protected]>
@DarkLord017 DarkLord017 requested a review from rvagg October 24, 2025 18:41
Comment thread cli/state.go Outdated
Copy link
Copy Markdown
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

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

this defaults to no ordering, but we then get the deduped per-tipset message ordering which I think is the correct default

@github-project-automation github-project-automation Bot moved this from 🔎 Awaiting Review to ✔️ Approved by reviewer in FilOz Jan 8, 2026
@rvagg
Copy link
Copy Markdown
Member

rvagg commented Jan 8, 2026

@DarkLord017 would you updating from master (merge from master or rebase on master) and then editing the CHANGELOG.md to note the addition of this flag. Look at other changelog entries for the pattern and make sure to reference this PR.

@rvagg
Copy link
Copy Markdown
Member

rvagg commented Jan 8, 2026

oh, and make gen needs to be run too, when we edit the CLI tools we need to edit the docs that describe how to use them and they come out of the code

@DarkLord017
Copy link
Copy Markdown
Contributor Author

ya sure ! doing that

@DarkLord017
Copy link
Copy Markdown
Contributor Author

done @rvagg

@DarkLord017 DarkLord017 requested a review from rvagg January 13, 2026 08:03
Copy link
Copy Markdown
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

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

Sorry @DarkLord017, I was just reviewing the original request and it did mention the desire to --cids with this. Which is a bit more tricky because there's currently a continue for --cids so what you'd need to do is take obn into account when doing that and not continue if obn so you can fetch the message and collect the nonce, and then do CID printing at the end after sorting if obn, like you do (but just cid)

@github-project-automation github-project-automation Bot moved this from ✔️ Approved by reviewer to ⌨️ In Progress in FilOz Jan 19, 2026
@rvagg
Copy link
Copy Markdown
Member

rvagg commented Jan 19, 2026

also if you wouldn't mind resolving the conflict in CHANGELOG.md that I just made for you (sorry)

@DarkLord017 DarkLord017 requested a review from rvagg January 19, 2026 07:59
Comment thread cli/state.go Outdated
@github-project-automation github-project-automation Bot moved this from ⌨️ In Progress to ✔️ Approved by reviewer in FilOz Jan 19, 2026
@rvagg rvagg merged commit 6a08ac4 into filecoin-project:master Jan 19, 2026
94 of 95 checks passed
@github-project-automation github-project-automation Bot moved this from ✔️ Approved by reviewer to 🎉 Done in FilOz Jan 19, 2026
nijoe1 added a commit to nijoe1/lotus that referenced this pull request Jan 26, 2026
* fix(grammar): fix article usage in comments (filecoin-project#13465)

fix grammar in comments

* chore: bump filecoin-ffi to v1.34.5 (filecoin-project#13466)

chore: bump filecoin-ffi to v1.34.5

* chore: fix method name (filecoin-project#13468)

Signed-off-by: oncecelll <[email protected]>

* feat(cli): implement FRC-0102 signing envelope for wallet sign/verify (filecoin-project#13388)

Apply the FRC-0102 "Filecoin Signed Message" envelope by default when
signing arbitrary messages, ensuring compatibility with Ledger, FilSnap,
and iso-filecoin. Add --raw flag to preserve raw signing for backward
compatibility.

Fixes filecoin-project#13256
Fixes filecoin-project#13373

---------

Signed-off-by: Angelina <[email protected]>
Co-authored-by: Rod Vagg <[email protected]>

* feat: add ordering by nonce flag to get sequential messages (filecoin-project#13394)

* fix: skip sender

* feat: remove maybe-modify-actor

* chore: removed unused args

* chore: updated filecoin-ffi gitmodule with new apply message for simulation function https://github.com/nijoe1/filecoin-ffi/tree/feat/apply-message-for-simulation

---------

Signed-off-by: oncecelll <[email protected]>
Signed-off-by: Angelina <[email protected]>
Co-authored-by: Aliz Fara <[email protected]>
Co-authored-by: Phi-rjan <[email protected]>
Co-authored-by: oncecelll <[email protected]>
Co-authored-by: aceppaluni <[email protected]>
Co-authored-by: Rod Vagg <[email protected]>
Co-authored-by: Sambhav Jain <[email protected]>
nijoe1 added a commit to nijoe1/lotus that referenced this pull request Jan 26, 2026
* fix(grammar): fix article usage in comments (filecoin-project#13465)

fix grammar in comments

* chore: bump filecoin-ffi to v1.34.5 (filecoin-project#13466)

chore: bump filecoin-ffi to v1.34.5

* chore: fix method name (filecoin-project#13468)

Signed-off-by: oncecelll <[email protected]>

* feat(cli): implement FRC-0102 signing envelope for wallet sign/verify (filecoin-project#13388)

Apply the FRC-0102 "Filecoin Signed Message" envelope by default when
signing arbitrary messages, ensuring compatibility with Ledger, FilSnap,
and iso-filecoin. Add --raw flag to preserve raw signing for backward
compatibility.

Fixes filecoin-project#13256
Fixes filecoin-project#13373

---------

Signed-off-by: Angelina <[email protected]>
Co-authored-by: Rod Vagg <[email protected]>

* feat: add ordering by nonce flag to get sequential messages (filecoin-project#13394)

* fix: skip sender

* feat: remove maybe-modify-actor

* chore: removed unused args

* chore: updated filecoin-ffi gitmodule with new apply message for simulation function https://github.com/nijoe1/filecoin-ffi/tree/feat/apply-message-for-simulation

---------

Signed-off-by: oncecelll <[email protected]>
Signed-off-by: Angelina <[email protected]>
Co-authored-by: Aliz Fara <[email protected]>
Co-authored-by: Phi-rjan <[email protected]>
Co-authored-by: oncecelll <[email protected]>
Co-authored-by: aceppaluni <[email protected]>
Co-authored-by: Rod Vagg <[email protected]>
Co-authored-by: Sambhav Jain <[email protected]>
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.

list-messages order should be sequential

4 participants