fedimint / fedimint

Federated E-Cash Mint
https://fedimint.org/
MIT License
583 stars 225 forks source link

Gateway should return a proper error on too big withdraws #3905

Open douglaz opened 11 months ago

douglaz commented 11 months ago
$ gateway-lnd withdraw --federation-id cb08e438ac751ec9274cadd78628ec49a56a3a910cc9980ffc54e8e5e4e3443e --amount 10btc --address bcrt1pcq88r65m7c00e85d9flf7u5wxpmq62gs30fr7g9u3tj
lcls8uysqp96zs2                                                                                                     
Error: Bad status returned 500 Internal Server Error

gatewayd error:

ERROR withdraw: ln_gateway::rpc::rpc_server: error=Other: Federation didn't return peg-out fees

federation warning:

WARN fedimint_wallet_server: Error returning peg-out fees Not enough SpendableUTXO
justinmoon commented 11 months ago

Related to https://github.com/fedimint/fedimint/issues/3966