Skip to content

Fallback to scanner to fetch confirmation info for external txs#82

Merged
altafan merged 2 commits intovulpemventures:masterfrom
altafan:fix-get-transaction
Feb 8, 2024
Merged

Fallback to scanner to fetch confirmation info for external txs#82
altafan merged 2 commits intovulpemventures:masterfrom
altafan:fix-get-transaction

Conversation

@altafan
Copy link
Collaborator

@altafan altafan commented Feb 2, 2024

This adds fallback strategy to fetch confirmation info of tx external to the wallet, ie not stored in the storage but fetched via blockchain scanner.

Unfortunately, there's no way we can use electrum's apis to get such info, so we have to fallback to esplora. For this, the usage of ESPLORA_URL env var has been revamped like follows:

By default, the esplora URL is derived from the network, but it can be customized at will by specifying it with OCEAN_ESPLORA_URL. This way, ocean can be served in a dockerized env, like for example nigiri where the esplora URL becomes <container_name>:3001 instead of localhost.

The blockchain scanner now returns tx confirmation info also for external txs.

Please @louisinger review.

@altafan altafan requested a review from louisinger February 2, 2024 14:45
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.

tACK

@altafan altafan changed the title Fallback to esplora to fetch confirmation info for external txs Fallback to scanner to fetch confirmation info for external txs Feb 5, 2024
@altafan altafan requested a review from louisinger February 5, 2024 14:29
@tiero
Copy link
Member

tiero commented Feb 6, 2024

utACK

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

3 participants