LtbLightning / bdk-rn

Bitcoin Development Kit - React Native Module
MIT License
50 stars 15 forks source link

Prevent listUnspent from blocking the UI thread #62

Closed Czino closed 1 year ago

Czino commented 1 year ago

I found that using listUnspent is blocking the UI thread.

Wrapping it in a Thread block solves the issue.

At this point I am wondering which other methods would benefit from moving the execution into a separate thread. Maybe all of them?

BitcoinZavior commented 1 year ago

At this point I am wondering which other methods would benefit from moving the execution into a separate thread. Maybe > all of them?

Yeah, possibly.

BitcoinZavior commented 1 year ago

Created an issue to track this: https://github.com/LtbLightning/bdk-rn/issues/63