Skip to content

Commit

Permalink
fix missing column in open_channel_htlc
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Mar 7, 2024
1 parent 2ee709b commit b55a3e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interceptor/intercept_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE public.open_channel_htlcs
DROP COLUMN incoming_amt_msat;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE public.open_channel_htlcs
ADD COLUMN incoming_amt_msat bigint NOT NULL;

0 comments on commit b55a3e8

Please sign in to comment.