multi: fix some recently introduced typos
This commit is contained in:
parent
7abdd30a87
commit
b8e1351cf3
@ -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 ||
|
||||
|
@ -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())
|
||||
|
@ -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`.
|
||||
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
||||
|
4
peer.go
4
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(
|
||||
|
Loading…
Reference in New Issue
Block a user