Skip to content

Conversation

agaffney
Copy link
Contributor

  • rename (Re)AcquireNoPoint to (Re)AcquireVolatileTip
  • add new messages for ImmutableTip
  • add client functions for acquiring volatile/immutable tip
  • change Acquire callback signature for immutable trip

Fixes #766

@agaffney agaffney requested a review from a team as a code owner December 27, 2024 20:11
wolf31o2
wolf31o2 previously approved these changes Dec 28, 2024
type AcquirePoint struct {
Point *common.Point
Volatile bool
Immutable bool
Copy link
Member

Choose a reason for hiding this comment

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

Can it ever be neither or both? Are these completely independent from each other?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It can only be one of them at a time. It might make a little more sense to have a "type" field to make it a bit more explicit which one it is, or even separate types for each with an interface type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I switch this to 4 separate types, one for each acquire target type, and an interface that covers all of them for convenience.

* rename (Re)AcquireNoPoint to (Re)AcquireVolatileTip
* add new messages for ImmutableTip
* add client functions for acquiring volatile/immutable tip
* change Acquire callback signature for immutable trip

Fixes #766
@agaffney agaffney merged commit c0455cb into main Dec 28, 2024
8 checks passed
@agaffney agaffney deleted the feat/localstatequery-immutable-tip branch December 28, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for additional local-state-query Re/Acquire messages
2 participants