docs: fix broadcast misspelling
This commit is contained in:
6 files changed
+12
-8
No files matched your search
@@ -45,7 +45,7 @@ var updateNodeAnnouncementCommand = cli.Command{
|
|||||||
Add or remove addresses where your node can be reached at, change the
|
Add or remove addresses where your node can be reached at, change the
|
||||||
alias/color of the node or enable/disable supported feature bits without
|
alias/color of the node or enable/disable supported feature bits without
|
||||||
restarting the node. A node announcement with the new information will
|
restarting the node. A node announcement with the new information will
|
||||||
be created and brodcasted to the network.`,
|
be created and broadcast to the network.`,
|
||||||
ArgsUsage: "[--address_add=] [--address_remove=] [--alias=] " +
|
ArgsUsage: "[--address_add=] [--address_remove=] [--alias=] " +
|
||||||
"[--color=] [--feature_bit_add=] [--feature_bit_remove=]",
|
"[--color=] [--feature_bit_add=] [--feature_bit_remove=]",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
|
|||||||
@@ -3996,7 +3996,7 @@ func TestIgnoreOwnAnnouncement(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Now do the local channelannouncement, node announcement, and channel
|
// Now do the local channelannouncement, node announcement, and channel
|
||||||
// update. No messages should be brodcasted yet, since we don't have
|
// update. No messages should be broadcast yet, since we don't have
|
||||||
// the announcement signatures.
|
// the announcement signatures.
|
||||||
select {
|
select {
|
||||||
case err = <-ctx.gossiper.ProcessLocalAnnouncement(batch.chanAnn):
|
case err = <-ctx.gossiper.ProcessLocalAnnouncement(batch.chanAnn):
|
||||||
|
|||||||
@@ -194,6 +194,10 @@ The underlying functionality between those two options remain the same.
|
|||||||
by replacing the word `argument` with `input` in the command description,
|
by replacing the word `argument` with `input` in the command description,
|
||||||
clarifying that the command requires interactive inputs rather than arguments.
|
clarifying that the command requires interactive inputs rather than arguments.
|
||||||
|
|
||||||
|
- [Fixed a few misspellings](https://github.com/lightningnetwork/lnd/pull/9290)
|
||||||
|
of "broadcast" in the code base, specifically the `lncli peers updatenodeannouncement`
|
||||||
|
command documentation.
|
||||||
|
|
||||||
# Contributors (Alphabetical Order)
|
# Contributors (Alphabetical Order)
|
||||||
|
|
||||||
* Animesh Bilthare
|
* Animesh Bilthare
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ func testNodeAnnouncement(ht *lntest.HarnessTest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// testUpdateNodeAnnouncement ensures that the RPC endpoint validates
|
// testUpdateNodeAnnouncement ensures that the RPC endpoint validates
|
||||||
// the requests correctly and that the new node announcement is brodcasted
|
// the requests correctly and that the new node announcement is broadcast
|
||||||
// with the right information after updating our node.
|
// with the right information after updating our node.
|
||||||
func testUpdateNodeAnnouncement(ht *lntest.HarnessTest) {
|
func testUpdateNodeAnnouncement(ht *lntest.HarnessTest) {
|
||||||
alice, bob := ht.Alice, ht.Bob
|
alice, bob := ht.Alice, ht.Bob
|
||||||
@@ -477,7 +477,7 @@ func testUpdateNodeAnnouncement(ht *lntest.HarnessTest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get dave default information so we can compare it lately with the
|
// Get dave default information so we can compare it lately with the
|
||||||
// brodcasted updates.
|
// broadcast updates.
|
||||||
resp := dave.RPC.GetInfo()
|
resp := dave.RPC.GetInfo()
|
||||||
defaultAddrs := make([]*lnrpc.NodeAddress, 0, len(resp.Uris))
|
defaultAddrs := make([]*lnrpc.NodeAddress, 0, len(resp.Uris))
|
||||||
for _, uri := range resp.GetUris() {
|
for _, uri := range resp.GetUris() {
|
||||||
|
|||||||
+1
-1
@@ -787,7 +787,7 @@ func (r *rpcServer) addDeps(s *server, macService *macaroons.Service,
|
|||||||
routerBackend, s.nodeSigner, s.graphDB, s.chanStateDB,
|
routerBackend, s.nodeSigner, s.graphDB, s.chanStateDB,
|
||||||
s.sweeper, tower, s.towerClientMgr, r.cfg.net.ResolveTCPAddr,
|
s.sweeper, tower, s.towerClientMgr, r.cfg.net.ResolveTCPAddr,
|
||||||
genInvoiceFeatures, genAmpInvoiceFeatures,
|
genInvoiceFeatures, genAmpInvoiceFeatures,
|
||||||
s.getNodeAnnouncement, s.updateAndBrodcastSelfNode, parseAddr,
|
s.getNodeAnnouncement, s.updateAndBroadcastSelfNode, parseAddr,
|
||||||
rpcsLog, s.aliasMgr, r.implCfg.AuxDataParser,
|
rpcsLog, s.aliasMgr, r.implCfg.AuxDataParser,
|
||||||
invoiceHtlcModifier,
|
invoiceHtlcModifier,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3250,11 +3250,11 @@ func (s *server) genNodeAnnouncement(features *lnwire.RawFeatureVector,
|
|||||||
return *s.currentNodeAnn, nil
|
return *s.currentNodeAnn, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// updateAndBrodcastSelfNode generates a new node announcement
|
// updateAndBroadcastSelfNode generates a new node announcement
|
||||||
// applying the giving modifiers and updating the time stamp
|
// applying the giving modifiers and updating the time stamp
|
||||||
// to ensure it propagates through the network. Then it brodcasts
|
// to ensure it propagates through the network. Then it broadcasts
|
||||||
// it to the network.
|
// it to the network.
|
||||||
func (s *server) updateAndBrodcastSelfNode(features *lnwire.RawFeatureVector,
|
func (s *server) updateAndBroadcastSelfNode(features *lnwire.RawFeatureVector,
|
||||||
modifiers ...netann.NodeAnnModifier) error {
|
modifiers ...netann.NodeAnnModifier) error {
|
||||||
|
|
||||||
newNodeAnn, err := s.genNodeAnnouncement(features, modifiers...)
|
newNodeAnn, err := s.genNodeAnnouncement(features, modifiers...)
|
||||||
|
|||||||
Reference in new issue
Block a user