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

Custodian emits a new asset receive event commencement notification #773

Closed
wants to merge 6 commits into from

Conversation

ffranr
Copy link
Contributor

@ffranr ffranr commented Jan 29, 2024

Closes #739

This PR changes the custodian component such that it emits a new asset receive event commencement notification to subscribers.

@ffranr ffranr self-assigned this Jan 29, 2024
In this commit the custodian is extended such that it emits an asset
"receive" process start event notification to its events status
subscribers.
This commit extends the asset receive events notification subscription
RPC endpoint such that it can handle the new "receive start" event type.
In this commit the custodian is extended such that it keeps a limited
runtime log of existing status notification events which can be
optionally delivered to a new notification subscriber.
In this commit the asset receive status events subscription RPC endpoint
is extended such that it will optionally deliver existing events to a
new subscriber.
This commit extends an existing asset send/receive test to assert that
the receiving node publishes the newly created asset receive start
notification event.
@ffranr ffranr marked this pull request as ready for review January 30, 2024 13:10
@ffranr ffranr requested review from guggero and jharveyb January 30, 2024 13:10
@@ -865,6 +870,9 @@ func (c *Custodian) setReceiveCompleted(event *address.Event,
Index: lastProof.InclusionProof.OutputIndex,
}

// TODO(ffranr): Remove event from local cache after
// AddrBook.CompleteEvent call.

Copy link
Contributor Author

@ffranr ffranr Feb 1, 2024

Choose a reason for hiding this comment

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

We should only publish the "receive complete" status notification to subscribers after the call to c.cfg.AddrBook.CompleteEvent. This ensures that notification is sent only if nothing fails beforehand.

@guggero guggero removed their request for review February 13, 2024 19:38
@lightninglabs-deploy
Copy link

@jharveyb: review reminder

@guggero
Copy link
Member

guggero commented Mar 14, 2024

Replaced by #836.

@guggero guggero closed this Mar 14, 2024
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.

[feature]: Custodian should emit an RPC notification status event when the recieve process starts
3 participants