cashubtc / eNuts

A Cashu wallet for Android and iOS 🥜🐿️
https://enuts.cash
GNU General Public License v3.0
189 stars 25 forks source link

not enough inputs provided for melt. Provided: 30263, needed: 30414 #332

Open marimes opened 7 months ago

marimes commented 7 months ago

payment_overview not_enough_input_for_melt Describe the bug I attempted to pay a lightning invoice with eNuts and got the above error message; I had plenty of on the selected mint.

To Reproduce Steps to reproduce the behavior:

  1. go to https://dergigi.com/support/
  2. click on 21$
  3. open eNuts and scan the invoice (iPhone 8; eNuts v 0.3.1)
  4. select mint https://mint.mountainlake.io (see: screenshot payment_overview.jpg)
  5. swipe Cash out (see error message not_enough_input_for_melt.jpg)

Expected behavior A clear and concise description of what you expected to happen.

Screenshots payment_overview.jpg not_enough_input_for_melt.jpg

Smartphone (please complete the following information):

Additional context To make sure there is nothing wrong with the mint I then attempted to pay the same invoice in nutshell which succeded with the following log:

cashu@mlbb2:~/nutshell$ cashu pay lnbc301120n1pnq4xytpp5gpyfxyhuxj2tkm2ddekednmp4ganlzf4ueplfguqej247zp6craqdpa2pskjepqw3hjqer9wfnkjemf9e3k7mfq9p8hyer9wgsyj3p6yptrg43dxgcjjcqzzsxqyrmp0sp5a2k3gc8slag9495redd5wcn6zt4ps6lvv63uwvc9meqgs5278d9s9qyyssqfaeazv24agc29g062nvj824gp0eprm8k297pqkqm0fprz420lhfzl7gzl6x4yq4eelrmtrv693p9l5mhz3tcz5z24ugwk5husqjjwsgp9rweu6
2024-04-01 11:25:03.99 | DEBUG | cashu.wallet.wallet:__init__:738 | Wallet initialized
2024-04-01 11:25:03.99 | DEBUG | cashu.wallet.wallet:__init__:739 | Mint URL: https://mint.mountainlake.io
2024-04-01 11:25:03.99 | DEBUG | cashu.wallet.wallet:__init__:740 | Database: /home/cashu/.cashu/wallet
2024-04-01 11:25:04.00 | DEBUG | cashu.wallet.wallet:__init__:741 | Unit: sat
2024-04-01 11:25:04.00 | DEBUG | cashu.wallet.wallet:__init__:738 | Wallet initialized
2024-04-01 11:25:04.00 | DEBUG | cashu.wallet.wallet:__init__:739 | Mint URL: https://mint.mountainlake.io
2024-04-01 11:25:04.00 | DEBUG | cashu.wallet.wallet:__init__:740 | Database: /home/cashu/.cashu/wallet
2024-04-01 11:25:04.00 | DEBUG | cashu.wallet.wallet:__init__:741 | Unit: sat
You have balances in 2 mints:

Mint 1: Balance: 2 sat (pending: 0 sat) URL: https://mint.minibits.cash/Bitcoin
Mint 2: Balance: 56707 sat (pending: 104257 sat) URL: https://mint.mountainlake.io

Select mint [1-2] or press enter for mint with largest balance (Mint 2): 
2024-04-01 11:25:08.22 | DEBUG | cashu.wallet.wallet:__init__:738 | Wallet initialized
2024-04-01 11:25:08.22 | DEBUG | cashu.wallet.wallet:__init__:739 | Mint URL: https://mint.mountainlake.io
2024-04-01 11:25:08.22 | DEBUG | cashu.wallet.wallet:__init__:740 | Database: /home/cashu/.cashu/wallet
2024-04-01 11:25:08.22 | DEBUG | cashu.wallet.wallet:__init__:741 | Unit: sat
2024-04-01 11:25:08.30 | DEBUG | cashu.wallet.wallet:_get_keys:336 | Received 2 keysets from mint: 00dc6c1e9c585014 (sat) XrM6z3KfoFTz (sat).
2024-04-01 11:25:08.30 | DEBUG | cashu.wallet.wallet:_load_mint_keys:248 | Current mint keyset: 00dc6c1e9c585014
2024-04-01 11:25:08.32 | DEBUG | cashu.wallet.wallet:_load_mint_keysets:269 | Mint keysets: ['00dc6c1e9c585014', 'XrM6z3KfoFTz']
2024-04-01 11:25:08.34 | DEBUG | cashu.wallet.wallet:_load_mint_info:275 | Mint info: name='Mountainlake Mint M5' pubkey='03e0c5805f33c3310571b8ecdd732ecf319c58849ef1acf07edaa15c0d8a76ca95' version='Nutshell/0.15.2' description="Marius' Mint For Bitcoiners, Friends, and Family" description_long='I am a dedicated Bitcoiner determined to play my small part in supporting the adoption of Bitcoin with education and services such as this mint.' contact=[['email', 'marius@mountainlake.io'], ['nostr', 'npub18kmu5s4gaq7qf02je6pk4xqckm5s2t5782596gkzk0r3tufpl9hs3gxwnr']] motd='Stay humble, stack sats' nuts={4: {'methods': [{'method': 'bolt11', 'unit': 'sat'}], 'disabled': False}, 5: {'methods': [{'method': 'bolt11', 'unit': 'sat'}], 'disabled': False}, 7: {'supported': True}, 8: {'supported': True}, 9: {'supported': True}, 10: {'supported': True}, 11: {'supported': True}, 12: {'supported': True}}
Balance: 56709 sat
2024-04-01 11:25:08.44 | DEBUG | cashu.wallet.wallet:get_pay_amount_with_fees:1529 | Mint wants 302 sat as fee reserve.
2024-04-01 11:25:08.44 | DEBUG | cashu.wallet.cli.cli:pay:189 | Quote: quote='y5_DWf7slNhb7P-iwpUO0sJ_s-8DbwVVEgg3pQLZ' amount=30112 fee_reserve=302 paid=False expiry=1712096442
Pay 30112 sat (30414 sat with potential fees)? [Y/n]: 
Paying Lightning invoice ...2024-04-01 11:25:10.33 | DEBUG | cashu.wallet.wallet:split:613 | Calling split. POST /v1/swap
2024-04-01 11:25:10.40 | DEBUG | cashu.wallet.wallet:verify_proofs_dleq:1103 | Verified incoming DLEQ proofs.
2024-04-01 11:25:13.54 | DEBUG | cashu.wallet.wallet:verify_proofs_dleq:1103 | Verified incoming DLEQ proofs.
2024-04-01 11:25:13.55 | DEBUG | cashu.wallet.wallet:pay_lightning:1071 | Received change: 270 sat
 Invoice paid (Preimage: ef984ea1ce60c0c59d36977737ae4e21c42e7f2f005ee1eea62045b32fb1ec75).
Balance: 26565 sat
cashu@mlbb2:~/nutshell$