Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Fix trigger of StateDiffApplied event before commitment is stored #536

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

muXxer
Copy link
Collaborator

@muXxer muXxer commented Nov 20, 2023

This PR removes the Ledger.StateDiffApplied event, and instead publishes the info about created and consumed outputs via Notarization.SlotCommited event.

This way the inx ListenToLedgerUpdates propagates the info to the clients after the commitment was successfully stored in the node.

Copy link
Member

@alexsporn alexsporn left a comment

Choose a reason for hiding this comment

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

Don't completely like this being part of SlotCommitted, but don't see another solution right now.

@muXxer muXxer merged commit 2dc7db9 into develop Nov 20, 2023
4 checks passed
@muXxer muXxer deleted the fix/ledger-updates-before-commitment branch November 20, 2023 18:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants