Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Clarity in ChainPorter State Names #1036

Merged
merged 2 commits into from
Jul 19, 2024
Merged

Conversation

ffranr
Copy link
Contributor

@ffranr ffranr commented Jul 19, 2024

This pull request includes two changes to the ChainPorter states to improve clarity and better reflect their functionality.

Changes:

  1. Rename SendStateLogCommit to SendStateStorePreBroadcast:

    • The state SendStateLogCommit has been renamed to SendStateStorePreBroadcast.
    • This change clarifies that the state's functionality is to store data before broadcasting.
  2. Rename SendStateReceiverProofTransfer to SendStateTransferProofs:

    • The state SendStateReceiverProofTransfer has been renamed to SendStateTransferProofs.
    • This change indicates that in this state, the ChainPorter may transfer multiple proofs, improving understanding of its purpose.

These changes enhance code readability and maintainability by providing more descriptive state names.

ffranr added 2 commits July 19, 2024 11:18
Renamed the `ChainPorter` state `SendStateLogCommit` to
`SendStateStorePreBroadcast` for better clarity on the state's
functionality
Renamed the `ChainPorter` state `SendStateReceiverProofTransfer` to
`SendStateTransferProofs` for better clarity.

This change makes it clear that in that state the `ChainPorter` may
transfer multiple proofs.
@ffranr ffranr self-assigned this Jul 19, 2024
@ffranr ffranr requested review from guggero and GeorgeTsagk July 19, 2024 10:24
@ffranr ffranr added the proofs label Jul 19, 2024
Copy link
Member

@GeorgeTsagk GeorgeTsagk left a comment

Choose a reason for hiding this comment

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

Ty 🫡
lgtm

Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@guggero guggero merged commit 4a11fd1 into main Jul 19, 2024
16 checks passed
@guggero guggero deleted the rename-chain-porter-states branch July 19, 2024 11:30
@dstadulis dstadulis added this to the v0.4.1 milestone Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants