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
|
// ChannelAuthProof is the authentication proof (the signature portion) for a
|
||||||
// channel. Using the four signatures contained in the struct, and some
|
// 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
|
// on the network are able to validate the authenticity and existence of a
|
||||||
// channel. Each of these signatures signs the following digest: chanID ||
|
// channel. Each of these signatures signs the following digest: chanID ||
|
||||||
// nodeID1 || nodeID2 || bitcoinKey1|| bitcoinKey2 || 2-byte-feature-len ||
|
// nodeID1 || nodeID2 || bitcoinKey1|| bitcoinKey2 || 2-byte-feature-len ||
|
||||||
|
@ -1590,7 +1590,7 @@ func (d *AuthenticatedGossiper) processNetworkAnnouncement(nMsg *networkMsg) []n
|
|||||||
// verify message signature.
|
// verify message signature.
|
||||||
//
|
//
|
||||||
// We make sure to obtain the mutex for this channel ID
|
// 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
|
// we read from the database has not changed between this
|
||||||
// point and when we call UpdateEdge() later.
|
// point and when we call UpdateEdge() later.
|
||||||
d.channelMtx.Lock(msg.ShortChannelID.ToUint64())
|
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
|
### 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`.
|
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
|
// UpdateShortChanID updates the short channel ID for a link. This may
|
||||||
// be required in the event that a link is created before the short
|
// 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
|
// 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)
|
UpdateShortChanID(lnwire.ShortChannelID)
|
||||||
|
|
||||||
// UpdateForwardingPolicy updates the forwarding policy for the target
|
// UpdateForwardingPolicy updates the forwarding policy for the target
|
||||||
|
@ -1558,7 +1558,7 @@ func handleStateUpdate(link *channelLink,
|
|||||||
}
|
}
|
||||||
_, err = remoteChannel.ReceiveRevocation(revoke)
|
_, err = remoteChannel.ReceiveRevocation(revoke)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("unable to recieve "+
|
return fmt.Errorf("unable to receive "+
|
||||||
"revocation: %v", err)
|
"revocation: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1579,7 +1579,7 @@ func updateState(batchTick chan time.Time, link *channelLink,
|
|||||||
select {
|
select {
|
||||||
case batchTick <- time.Now():
|
case batchTick <- time.Now():
|
||||||
case <-link.quit:
|
case <-link.quit:
|
||||||
return fmt.Errorf("link shuttin down")
|
return fmt.Errorf("link shutting down")
|
||||||
}
|
}
|
||||||
return handleStateUpdate(link, remoteChannel)
|
return handleStateUpdate(link, remoteChannel)
|
||||||
}
|
}
|
||||||
@ -1612,7 +1612,7 @@ func updateState(batchTick chan time.Time, link *channelLink,
|
|||||||
}
|
}
|
||||||
_, err = remoteChannel.ReceiveRevocation(revoke)
|
_, err = remoteChannel.ReceiveRevocation(revoke)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("unable to recieve "+
|
return fmt.Errorf("unable to receive "+
|
||||||
"revocation: %v", err)
|
"revocation: %v", err)
|
||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
@ -1827,7 +1827,7 @@ func TestChannelLinkBandwidthConsistency(t *testing.T) {
|
|||||||
t.Fatalf("unable to update state: %v", err)
|
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)
|
assertLinkBandwidth(t, aliceLink, aliceStartingBandwidth-htlcAmt)
|
||||||
|
|
||||||
// Moving along, we'll now receive a new HTLC from the remote peer,
|
// Moving along, we'll now receive a new HTLC from the remote peer,
|
||||||
|
@ -2024,7 +2024,7 @@
|
|||||||
"amount": {
|
"amount": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "int64",
|
"format": "int64",
|
||||||
"title": "/ The transaction ammount, denominated in satoshis"
|
"title": "/ The transaction amount, denominated in satoshis"
|
||||||
},
|
},
|
||||||
"num_confirmations": {
|
"num_confirmations": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
type Sig [64]byte
|
type Sig [64]byte
|
||||||
|
|
||||||
// NewSigFromRawSignature returns a Sig from a Bitcoin raw signature encoded in
|
// 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) {
|
func NewSigFromRawSignature(sig []byte) (Sig, error) {
|
||||||
var b Sig
|
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
|
// Before we create the chan closer, we'll start a new
|
||||||
// cooperative channel closure transaction from the chain arb.
|
// 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
|
// if *any* of the transactions we sign off on are ever
|
||||||
// broadcast.
|
// broadcast.
|
||||||
closeCtx, err := p.server.chainArb.BeginCoopChanClose(
|
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
|
// Before we create the chan closer, we'll start a new
|
||||||
// cooperative channel closure transaction from the chain arb.
|
// 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
|
// if *any* of the transactions we sign off on are ever
|
||||||
// broadcast.
|
// broadcast.
|
||||||
closeCtx, err := p.server.chainArb.BeginCoopChanClose(
|
closeCtx, err := p.server.chainArb.BeginCoopChanClose(
|
||||||
|
Loading…
Reference in New Issue
Block a user