Skip to content

[wallet] Consider having a higher-level method for syncing #1153

@danielabrozzoni

Description

@danielabrozzoni

Looking at wallet_esplora or wallet_electrum, syncing takes quite a bit of code, and I suppose than 99% of users will just want to update the whole wallet in one big batch, without any fancy optimization. We should consider having a higher level method similar to the old wallet.sync() to reduce the amount of code copy-pasted from our examples.

Maybe we could have sync_esplora, sync_electrum, sync_bitcoind and all of them need a wallet passed in?

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions