commit b91039da73c5df5cc4842c5ea9143c74497528c0
parent 513fa3ee34e631fa1e483b0e76ec5df5b19f1bd5
Author: Joel-Haeberli <haebu@rubigen.ch>
Date: Wed, 8 May 2024 15:25:42 +0200
fix: encode reserve pub key
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/c2ec/api-bank-integration.go b/c2ec/api-bank-integration.go
@@ -312,7 +312,7 @@ func writeWithdrawalOrError(wopid []byte, res http.ResponseWriter) {
Amount: *amount,
SenderWire: fmt.Sprintf("payto://%s/%d", operator.PaytoTargetType, withdrawal.ProviderTransactionId),
WireTypes: []string{operator.PaytoTargetType},
- ReservePubKey: EddsaPublicKey((withdrawal.ReservePubKey)),
+ ReservePubKey: EddsaPublicKey((encodeCrock(withdrawal.ReservePubKey))),
})
if err != nil {
LogError("bank-integration-api", err)
diff --git a/c2ec/db/0001-c2ec_schema.sql b/c2ec/db/0001-c2ec_schema.sql
@@ -84,7 +84,7 @@ CREATE TABLE IF NOT EXISTS withdrawal (
suggested_amount taler_amount_currency,
terminal_fees taler_amount_currency,
withdrawal_status withdrawal_operation_status NOT NULL DEFAULT 'pending',
- terminal_id INT8 REFERENCES terminal(terminal_id),
+ terminal_id INT8 NOT NULL REFERENCES terminal(terminal_id),
provider_transaction_id TEXT,
last_retry_ts INT8,
retry_counter INT4 NOT NULL DEFAULT 0,