diff --git a/channeldb/graph.go b/channeldb/graph.go index e32bfa3a..809a1f7e 100644 --- a/channeldb/graph.go +++ b/channeldb/graph.go @@ -1398,7 +1398,7 @@ func (c *ChannelEdgeInfo) BitcoinKey2() (*btcec.PublicKey, error) { // ChannelAuthProof is the authentication proof (the signature portion) for a // channel. Using the four signatures contained in the struct, and some -// auxillary knowledge (the funding script, node identities, and outpoint) nodes +// auxiliary knowledge (the funding script, node identities, and outpoint) nodes // on the network are able to validate the authenticity and existence of a // channel. Each of these signatures signs the following digest: chanID || // nodeID1 || nodeID2 || bitcoinKey1|| bitcoinKey2 || 2-byte-feature-len || diff --git a/discovery/gossiper.go b/discovery/gossiper.go index 64dee356..cf629ad7 100644 --- a/discovery/gossiper.go +++ b/discovery/gossiper.go @@ -1590,7 +1590,7 @@ func (d *AuthenticatedGossiper) processNetworkAnnouncement(nMsg *networkMsg) []n // verify message signature. // // We make sure to obtain the mutex for this channel ID - // before we acces the database. This ensures the state + // before we access the database. This ensures the state // we read from the database has not changed between this // point and when we call UpdateEdge() later. d.channelMtx.Lock(msg.ShortChannelID.ToUint64()) diff --git a/docs/grpc/ruby.md b/docs/grpc/ruby.md index a3c87015..742c2a4d 100644 --- a/docs/grpc/ruby.md +++ b/docs/grpc/ruby.md @@ -44,7 +44,7 @@ Two files will be generated in the current directory: ### Example - Simple client to display wallet balance -Everytime you use the Ruby gRPC you need to require the `rpc_services_pb` file. +Every time you use the Ruby gRPC you need to require the `rpc_services_pb` file. We assume that `lnd` runs on the default `localhost:10009`. diff --git a/htlcswitch/interfaces.go b/htlcswitch/interfaces.go index f966a6fd..7e62e505 100644 --- a/htlcswitch/interfaces.go +++ b/htlcswitch/interfaces.go @@ -68,7 +68,7 @@ type ChannelLink interface { // UpdateShortChanID updates the short channel ID for a link. This may // be required in the event that a link is created before the short // chan ID for it is known, or a re-org occurs, and the funding - // transacton changes location within the chain. + // transaction changes location within the chain. UpdateShortChanID(lnwire.ShortChannelID) // UpdateForwardingPolicy updates the forwarding policy for the target diff --git a/htlcswitch/link_test.go b/htlcswitch/link_test.go index ce1491c1..aa6ade23 100644 --- a/htlcswitch/link_test.go +++ b/htlcswitch/link_test.go @@ -1558,7 +1558,7 @@ func handleStateUpdate(link *channelLink, } _, err = remoteChannel.ReceiveRevocation(revoke) if err != nil { - return fmt.Errorf("unable to recieve "+ + return fmt.Errorf("unable to receive "+ "revocation: %v", err) } @@ -1579,7 +1579,7 @@ func updateState(batchTick chan time.Time, link *channelLink, select { case batchTick <- time.Now(): case <-link.quit: - return fmt.Errorf("link shuttin down") + return fmt.Errorf("link shutting down") } return handleStateUpdate(link, remoteChannel) } @@ -1612,7 +1612,7 @@ func updateState(batchTick chan time.Time, link *channelLink, } _, err = remoteChannel.ReceiveRevocation(revoke) if err != nil { - return fmt.Errorf("unable to recieve "+ + return fmt.Errorf("unable to receive "+ "revocation: %v", err) } select { @@ -1827,7 +1827,7 @@ func TestChannelLinkBandwidthConsistency(t *testing.T) { t.Fatalf("unable to update state: %v", err) } - // Now the bancdwidth should reflect the failed HTLC. + // Now the bandwidth should reflect the failed HTLC. assertLinkBandwidth(t, aliceLink, aliceStartingBandwidth-htlcAmt) // Moving along, we'll now receive a new HTLC from the remote peer, diff --git a/lnrpc/rpc.swagger.json b/lnrpc/rpc.swagger.json index a73257f5..fa262c3e 100644 --- a/lnrpc/rpc.swagger.json +++ b/lnrpc/rpc.swagger.json @@ -2024,7 +2024,7 @@ "amount": { "type": "string", "format": "int64", - "title": "/ The transaction ammount, denominated in satoshis" + "title": "/ The transaction amount, denominated in satoshis" }, "num_confirmations": { "type": "integer", diff --git a/lnwire/signature.go b/lnwire/signature.go index 0bc2b832..accacac8 100644 --- a/lnwire/signature.go +++ b/lnwire/signature.go @@ -13,7 +13,7 @@ import ( type Sig [64]byte // NewSigFromRawSignature returns a Sig from a Bitcoin raw signature encoded in -// the cannonical DER encoding. +// the canonical DER encoding. func NewSigFromRawSignature(sig []byte) (Sig, error) { var b Sig diff --git a/peer.go b/peer.go index ae2bf40f..eb7d7e3a 100644 --- a/peer.go +++ b/peer.go @@ -1435,7 +1435,7 @@ func (p *peer) fetchActiveChanCloser(chanID lnwire.ChannelID) (*channelCloser, e // Before we create the chan closer, we'll start a new // cooperative channel closure transaction from the chain arb. - // Wtih this context, we'll ensure that we're able to respond + // With this context, we'll ensure that we're able to respond // if *any* of the transactions we sign off on are ever // broadcast. closeCtx, err := p.server.chainArb.BeginCoopChanClose( @@ -1501,7 +1501,7 @@ func (p *peer) handleLocalCloseReq(req *htlcswitch.ChanClose) { // Before we create the chan closer, we'll start a new // cooperative channel closure transaction from the chain arb. - // Wtih this context, we'll ensure that we're able to respond + // With this context, we'll ensure that we're able to respond // if *any* of the transactions we sign off on are ever // broadcast. closeCtx, err := p.server.chainArb.BeginCoopChanClose(