spacesprotocol / spaced

Bitcoin spaces protocol daemon
https://spacesprotocol.org
3 stars 5 forks source link

space-cli doesn't honor the -w option when multiple loaded wallets are available #7

Open andrewlunde opened 3 weeks ago

andrewlunde commented 3 weeks ago

In my system I have a "default" wallet and a "phaedrus" wallet both were "loaded".
Note: spaces is an alias for space-cli --chain testnet4

$ spaces exportwallet {"descriptor":"wpkh(tprv8Z...o6zp/84'/1'/0'/0/)","spaces_descriptor":"tr(tprv8Z...o6zp/200'/86'/1'/0'/0/)","blockheight":41529,"label":"default"}

$ spaces exportwallet -w phaedrus {"descriptor":"wpkh(tprv8Z...o6zp/84'/1'/0'/0/)","spaces_descriptor":"tr(tprv8Z...o6zp/200'/86'/1'/0'/0/)","blockheight":41529,"label":"default"}

This should have been the output below...

$ cat /data/wallets/phaedrus/wallet.json {"descriptor":"wpkh(tprv8Z...AFzf/84'/1'/0'/0/)","spaces_descriptor":"tr(tprv8Z...AFzf/200'/86'/1'/0'/0/)","blockheight":42839,"label":"phaedrus"}