Open darioAnongba opened 2 days ago
I think it is also related to bitcoindevkit/rust-esplora-client#102
@darioAnongba Is it possible to test syncing in bdk-wasm
with this branch of bdk based on a proposed change to rust-esplora-client that makes the async client generic over the sleep implementation? https://github.com/ValuedMammal/bdk/tree/deps/esplora-client-103
Describe the bug
The retry mechanism
get_with_retry
does not work on the browser (wasm32-unknown-unknown
) and fails with the following error:The reason is that WebAssembly in browsers doesn’t have direct support for timing mechanisms like
std::time::Instant
orstd::thread::sleep
.To Reproduce
Can run the tests on this repo for
sync
: https://github.com/darioAnongba/bdk-wasmExpected behavior
Build environment
Additional context
Using
gloo-timers
instead ?or 2 functions