Skip to content

Commit

Permalink
Allow feature flag 149 for optional trampoline routing
Browse files Browse the repository at this point in the history
  • Loading branch information
lnproxy authored May 30, 2023
1 parent 5049a36 commit ac94e37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lnproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ func (ms *MaybeString) UnmarshalJSON(data []byte) error {
func Wrap(r RelayParameters, x ProxyParameters, p DecodedInvoice) (*InvoiceParameters, uint64, error) {
for flag, feature := range p.Features {
switch flag {
case "8", "9", "14", "15", "16", "17", "25", "48", "49":
case "8", "9", "14", "15", "16", "17", "25", "48", "49", "149":
// 25 is route blinding
// 48/49 is payment metadata
// 148/149 is trampoline routing
default:
log.Printf("unhandled feature flag: %s\n\t%v\n", flag, feature)
return nil, 0, fmt.Errorf("unknown feature flag: %s", flag)
Expand Down

0 comments on commit ac94e37

Please sign in to comment.