Wallet: add CLI flag --force-swap flag and force swapping all inactive keysets (#580)

* Wallet: add flag --force-swap to send command

* Reame split to swap across codebase

* rename remaining splits to swap

* fix restore index with multiple keysets

* fix wallet api restore
This commit is contained in:
callebtc
2024-07-11 23:08:36 +02:00
committed by GitHub
parent 77697c52ee
commit 3077ca4c7d
26 changed files with 226 additions and 170 deletions

View File

@@ -422,7 +422,7 @@ async def test_melt_external(ledger: Ledger, wallet: Wallet):
assert quote.amount == 62
assert quote.fee_reserve == 2
keep, send = await wallet.split_to_send(wallet.proofs, 64)
keep, send = await wallet.swap_to_send(wallet.proofs, 64)
inputs_payload = [p.to_dict() for p in send]
# outputs for change