Merge pull request #9143 from ellemouton/rb-set-bit-required
feature+rpcserver: add SetBit helper to set dependent bits
This commit is contained in:
4 files changed
+237
-2
No files matched your search
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user