multi: fix several typos in godoc comments
This commit is contained in:
1 parent
b74a281b57
commit
adf0d98194
37 files changed
+70
-70
No files matched your search
+1
-1
@@ -392,7 +392,7 @@ func fetchChannels(d *DB, pendingOnly bool) ([]*OpenChannel, error) {
|
||||
|
||||
// FetchClosedChannels attempts to fetch all closed channels from the database.
|
||||
// The pendingOnly bool toggles if channels that aren't yet fully closed should
|
||||
// be returned int he response or not. When a channel was cooperatively closed,
|
||||
// be returned in the response or not. When a channel was cooperatively closed,
|
||||
// it becomes fully closed after a single confirmation. When a channel was
|
||||
// forcibly closed, it will become fully closed after _all_ the pending funds
|
||||
// (if any) have been swept.
|
||||
|
||||
+3
-3
@@ -344,7 +344,7 @@ func (c *ChannelGraph) SetSourceNode(node *LightningNode) error {
|
||||
// in the database from before, this will add a new, unconnected one to the
|
||||
// graph. If it is present from before, this will update that node's
|
||||
// information. Note that this method is expected to only be called to update
|
||||
// an already present node from a node annoucement, or to insert a node found
|
||||
// an already present node from a node announcement, or to insert a node found
|
||||
// in a channel update.
|
||||
//
|
||||
// TODO(roasbeef): also need sig of announcement
|
||||
@@ -939,7 +939,7 @@ func delChannelByEdge(edges *bolt.Bucket, edgeIndex *bolt.Bucket,
|
||||
// the ChannelEdgePolicy determines which of the directed edges are being
|
||||
// updated. If the flag is 1, then the first node's information is being
|
||||
// updated, otherwise it's the second node's information. The node ordering is
|
||||
// determined tby the lexicographical ordering of the identity public keys of
|
||||
// determined by the lexicographical ordering of the identity public keys of
|
||||
// the nodes on either side of the channel.
|
||||
func (c *ChannelGraph) UpdateEdgePolicy(edge *ChannelEdgePolicy) error {
|
||||
return c.db.Update(func(tx *bolt.Tx) error {
|
||||
@@ -990,7 +990,7 @@ type LightningNode struct {
|
||||
// used to authenticated any advertisements/updates sent by the node.
|
||||
PubKey *btcec.PublicKey
|
||||
|
||||
// HaveNodeAnnouncement indicates whether we received a node annoucement
|
||||
// HaveNodeAnnouncement indicates whether we received a node announcement
|
||||
// for this particular node. If true, the remaining fields will be set,
|
||||
// if false only the PubKey is known for this node.
|
||||
HaveNodeAnnouncement bool
|
||||
|
||||
@@ -32,7 +32,7 @@ type OutgoingPayment struct {
|
||||
// from the second-to-last hop to the destination.
|
||||
TimeLockLength uint32
|
||||
|
||||
// Path encodes the path the payment took throuhg the network. The path
|
||||
// Path encodes the path the payment took through the network. The path
|
||||
// excludes the outgoing node and consists of the hex-encoded
|
||||
// compressed public key of each of the nodes involved in the payment.
|
||||
Path [][33]byte
|
||||
|
||||
Reference in new issue
Block a user