Merge pull request #9143 from ellemouton/rb-set-bit-required

feature+rpcserver: add SetBit helper to set dependent bits
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2024-10-04 19:16:34 -07:00
commit e9fbbe2528
4 files changed
+237 -2

No files matched your search

+3 -2
View File
@@ -6082,8 +6082,9 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
// understand the new BOLT 11 tagged field
// containing the blinded path, so we switch
// the bit to required.
v.Unset(lnwire.Bolt11BlindedPathsOptional)
v.Set(lnwire.Bolt11BlindedPathsRequired)
v = feature.SetBit(
v, lnwire.Bolt11BlindedPathsRequired,
)
}
return v