BoltzExchange / boltz-backend

Boltz Backend
https://boltz.exchange
GNU Affero General Public License v3.0
121 stars 46 forks source link

Fail /swap/submarine calls with short invoice expiries #490

Closed kilrau closed 9 months ago

kilrau commented 9 months ago

For integrations we can't be sure about client-side checks like https://github.com/BoltzExchange/boltz-web-app/issues/359, so backend should return an error and fail the swap creation if amount above 0-conf threshold and invoice expiry <2 block times, e.g.

michael1011 commented 9 months ago

Closed by https://github.com/BoltzExchange/boltz-backend/pull/498