cashless2ecash

cashless2ecash: pay with cards for digital cash (experimental)
Log | Files | Refs | README

commit a5a1e4a80eeb156accdc5c6acdab52a2395c4e89
parent 07637459789c0e3e9071c870562c50daee3c63e1
Author: Joel-Haeberli <haebu@rubigen.ch>
Date:   Sat,  1 Jun 2024 10:29:05 +0200

fix: enhance wire-gateway api

Diffstat:
Mc2ec/api-wire-gateway.go | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/c2ec/api-wire-gateway.go b/c2ec/api-wire-gateway.go @@ -363,6 +363,10 @@ func historyIncoming(res http.ResponseWriter, req *http.Request) { LogInfo("wire-gateway-api", "ignoring zero amount withdrawal") continue } + if w.ReservePubKey == nil || len(w.ReservePubKey) == 0 { + LogWarn("wire-gateway-api", "ignoring confirmed withdrawal with no reserve public key (probably a test transaction)") + continue + } transaction := NewIncomingReserveTransaction(w) if transaction != nil { transactions = append(transactions, *transaction)