synonymdev / beignet

An instant, self-custodial Bitcoin wallet for JS devs.
MIT License
22 stars 6 forks source link

fix: remove cycle dependency during wallet refresh #75

Closed limpbrains closed 3 months ago

limpbrains commented 3 months ago

Refresh wallet never completes if the wallet has a Ghost transaction. This happens because of a cycle dependency:

The problem arises because refreshWallet is safeguarded by a Promise, hindering concurrent execution. To resolve this, I am introducing a force parameter to circumvent this restriction.