feat: add ordering by nonce flag to get sequential messages#13394
feat: add ordering by nonce flag to get sequential messages#13394rvagg merged 10 commits intofilecoin-project:masterfrom
Conversation
|
@wjmelements is there any way to test this , like instead of running it e2e |
5d90341 to
52ac86d
Compare
There was a problem hiding this comment.
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-nonceboolean 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.
There was a problem hiding this comment.
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.
Co-authored-by: Copilot <[email protected]>
rvagg
left a comment
There was a problem hiding this comment.
this defaults to no ordering, but we then get the deduped per-tipset message ordering which I think is the correct default
|
@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. |
|
oh, and |
|
ya sure ! doing that |
|
done @rvagg |
rvagg
left a comment
There was a problem hiding this comment.
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)
|
also if you wouldn't mind resolving the conflict in CHANGELOG.md that I just made for you (sorry) |
* 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]>
* 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]>
Related Issues
Fixes #13246
Proposed Changes
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that: