mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
Merge pull request #7408 from carlaKC/bugfix-updatenodeanncli
bugfix/trivial: fix update node announcement feature bit add /remove
This commit is contained in:
commit
93b7821df3
2 changed files with 6 additions and 2 deletions
|
@ -126,7 +126,7 @@ func updateNodeAnnouncement(ctx *cli.Context) error {
|
||||||
|
|
||||||
if ctx.IsSet("feature_bit_add") {
|
if ctx.IsSet("feature_bit_add") {
|
||||||
change = true
|
change = true
|
||||||
for _, feature := range ctx.IntSlice("feature_bit_add") {
|
for _, feature := range ctx.Int64Slice("feature_bit_add") {
|
||||||
action := &peersrpc.UpdateFeatureAction{
|
action := &peersrpc.UpdateFeatureAction{
|
||||||
Action: peersrpc.UpdateAction_ADD,
|
Action: peersrpc.UpdateAction_ADD,
|
||||||
FeatureBit: lnrpc.FeatureBit(feature),
|
FeatureBit: lnrpc.FeatureBit(feature),
|
||||||
|
@ -137,7 +137,7 @@ func updateNodeAnnouncement(ctx *cli.Context) error {
|
||||||
|
|
||||||
if ctx.IsSet("feature_bit_remove") {
|
if ctx.IsSet("feature_bit_remove") {
|
||||||
change = true
|
change = true
|
||||||
for _, feature := range ctx.IntSlice("feature_bit_remove") {
|
for _, feature := range ctx.Int64Slice("feature_bit_remove") {
|
||||||
action := &peersrpc.UpdateFeatureAction{
|
action := &peersrpc.UpdateFeatureAction{
|
||||||
Action: peersrpc.UpdateAction_REMOVE,
|
Action: peersrpc.UpdateAction_REMOVE,
|
||||||
FeatureBit: lnrpc.FeatureBit(feature),
|
FeatureBit: lnrpc.FeatureBit(feature),
|
||||||
|
|
|
@ -130,6 +130,10 @@ current gossip sync query status.
|
||||||
* [A bug has been fixed which could cause `lnd` to crash when parsing a
|
* [A bug has been fixed which could cause `lnd` to crash when parsing a
|
||||||
malformed HTLC intercept message](https://github.com/lightningnetwork/lnd/pull/7392).
|
malformed HTLC intercept message](https://github.com/lightningnetwork/lnd/pull/7392).
|
||||||
|
|
||||||
|
* [A bug](https://github.com/lightningnetwork/lnd/pull/7408) in the
|
||||||
|
`updatenodeannouncement` peers cli which did not allow setting/
|
||||||
|
unsetting of feature bits also has been fixed.
|
||||||
|
|
||||||
## Wallet
|
## Wallet
|
||||||
|
|
||||||
* [Allows Taproot public keys and tap scripts to be imported as watch-only
|
* [Allows Taproot public keys and tap scripts to be imported as watch-only
|
||||||
|
|
Loading…
Add table
Reference in a new issue