From b55a3e8c6b7ac8a31baed7315dbc91dd29dcb7fb Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Thu, 7 Mar 2024 10:25:36 +0100 Subject: [PATCH] fix missing column in open_channel_htlc --- interceptor/intercept_handler.go | 3 ++- .../migrations/000017_open_channel_htlc_incoming.down.sql | 2 ++ postgresql/migrations/000017_open_channel_htlc_incoming.up.sql | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 postgresql/migrations/000017_open_channel_htlc_incoming.down.sql create mode 100644 postgresql/migrations/000017_open_channel_htlc_incoming.up.sql diff --git a/interceptor/intercept_handler.go b/interceptor/intercept_handler.go index df538518..6f2dd602 100644 --- a/interceptor/intercept_handler.go +++ b/interceptor/intercept_handler.go @@ -271,11 +271,12 @@ func (i *Interceptor) Intercept(req common.InterceptRequest) common.InterceptRes // Don't break here, this is not critical. log.Printf( "paymentHash: %s, failed to insert htlc used for channel open in history store: channel: %v,"+ - " original amount: %v, forward amount: %v", + " original amount: %v, forward amount: %v, error: %v", reqPaymentHashStr, channelPoint.String(), req.OutgoingAmountMsat, amt, + err, ) } diff --git a/postgresql/migrations/000017_open_channel_htlc_incoming.down.sql b/postgresql/migrations/000017_open_channel_htlc_incoming.down.sql new file mode 100644 index 00000000..0dc7c18a --- /dev/null +++ b/postgresql/migrations/000017_open_channel_htlc_incoming.down.sql @@ -0,0 +1,2 @@ +ALTER TABLE public.open_channel_htlcs +DROP COLUMN incoming_amt_msat; \ No newline at end of file diff --git a/postgresql/migrations/000017_open_channel_htlc_incoming.up.sql b/postgresql/migrations/000017_open_channel_htlc_incoming.up.sql new file mode 100644 index 00000000..748ee85c --- /dev/null +++ b/postgresql/migrations/000017_open_channel_htlc_incoming.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE public.open_channel_htlcs +ADD COLUMN incoming_amt_msat bigint NOT NULL; \ No newline at end of file