barkd: fix wallet deletion and create flow

  • check or remove this line after you've added a CHANGELOG entry or if your PR doesn't need one (they should go into CHANGELOG/unreleased/)

After a wallet delete, daemon tasks that outlived the wipe re-created wallet files and blocked the next create. And when no wallet was loaded but wallet files remained (after a failed create, or a restart following a partial wipe), the delete endpoint answered "No wallet to delete" and left them in place.

  • Note for bark-web: retry the DELETE on 500 and treat any 200 as completion. A delete removes config.toml, so the create/restore request must send ark_server and chain_source.

Cc @Psycarlo

Edited by luca

Merge request reports

Loading
Loading