cashubtc / nutshell

Chaumian ecash wallet and mint for Bitcoin
https://docs.cashu.space
MIT License
379 stars 95 forks source link

Removing support for msat and usd after enabling #593

Closed mariaa144 closed 3 months ago

mariaa144 commented 4 months ago

I set support for msat and usd on my mint but now I want to turn it off. Is that possible?

I used the following to try and enable only sat but msat and usd are still enabled.

  MINT_DERIVATION_PATH="m/0'/0'/0'"
  MINT_DERIVATION_PATH_LIST = ["m/0'/0'/0'"]
mariaa144 commented 4 months ago

As a workaround hack I opened up the mint.sqlite3 in sqlitebrowser and deleted the extra keysets I had which were never used.

For some reason cashu.me likes to remember that the mint supported extra units though, even though the mint currently doesn't.

callebtc commented 3 months ago

As a workaround hack I opened up the mint.sqlite3 in sqlitebrowser and deleted the extra keysets I had which were never used.

You're right. Unfortunately, there is no other way to remove existing keysets other than editing the db yourself.

For some reason cashu.me likes to remember that the mint supported extra units though, even though the mint currently doesn't.

That's true, Cashu.me updates only new keysets. What you could do is to remove the mint and re-add it. The proofs won't be deleted there.