Skip to content

Notify for utxos spent with and without confirmation#80

Merged
altafan merged 4 commits intovulpemventures:masterfrom
altafan:fix-notifications
Feb 1, 2024
Merged

Notify for utxos spent with and without confirmation#80
altafan merged 4 commits intovulpemventures:masterfrom
altafan:fix-notifications

Conversation

@altafan
Copy link
Collaborator

@altafan altafan commented Feb 1, 2024

Before this, ocean was notifiyng clients about spent utxos only once they were confirmed in blockchain.

With the tiny refactor introduced with this, clients are notified about:

  • spent utxos without confirmation when the related txs are in mempool
  • spent utxos with confirmation once the related txs are included in blockchain

@louisinger please review this.

Copy link
Contributor

@louisinger louisinger left a comment

Choose a reason for hiding this comment

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

the utxos array is always transformed into utxo[0]: if I'm not wrong, I would drop the slice type if we always expect 1 element

@altafan altafan merged commit 8f3f6d2 into vulpemventures:master Feb 1, 2024
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.

2 participants