multi: fixing it's/its typos in comments
This commit is contained in:
1 parent
bbc2ecd580
commit
8543497dcc
26 files changed
+40
-40
No files matched your search
@@ -33,7 +33,7 @@ var (
|
||||
openChannelBucket = []byte("open-chan-bucket")
|
||||
|
||||
// chanInfoKey can be accessed within the bucket for a channel
|
||||
// (identified by it's chanPoint). This key stores all the static
|
||||
// (identified by its chanPoint). This key stores all the static
|
||||
// information for a channel which is decided at the end of the
|
||||
// funding flow.
|
||||
chanInfoKey = []byte("chan-info-key")
|
||||
|
||||
@@ -496,7 +496,7 @@ func TestChannelStateTransition(t *testing.T) {
|
||||
t.Fatalf("expected ErrNoPendingCommit, instead got %v", err)
|
||||
}
|
||||
|
||||
// We should be able to fetch the channel delta created above by it's
|
||||
// We should be able to fetch the channel delta created above by its
|
||||
// update number with all the state properly reconstructed.
|
||||
diskPrevCommit, err := channel.FindPreviousState(
|
||||
oldRemoteCommit.CommitHeight,
|
||||
|
||||
+1
-1
@@ -473,7 +473,7 @@ func (d *DB) FetchClosedChannel(chanID *wire.OutPoint) (*ChannelCloseSummary, er
|
||||
|
||||
// MarkChanFullyClosed marks a channel as fully closed within the database. A
|
||||
// channel should be marked as fully closed if the channel was initially
|
||||
// cooperatively closed and it's reach a single confirmation, or after all the
|
||||
// cooperatively closed and it's reached a single confirmation, or after all the
|
||||
// pending funds in a channel that has been forcibly closed have been swept.
|
||||
func (d *DB) MarkChanFullyClosed(chanPoint *wire.OutPoint) error {
|
||||
return d.Update(func(tx *bolt.Tx) error {
|
||||
|
||||
+3
-3
@@ -38,7 +38,7 @@ var (
|
||||
sourceKey = []byte("source")
|
||||
|
||||
// aliasIndexBucket is a sub-bucket that's nested within the main
|
||||
// nodeBucket. This bucket maps the public key of a node to it's
|
||||
// nodeBucket. This bucket maps the public key of a node to its
|
||||
// current alias. This bucket is provided as it can be used within a
|
||||
// future UI layer to add an additional degree of confirmation.
|
||||
aliasIndexBucket = []byte("alias")
|
||||
@@ -529,7 +529,7 @@ func (c *ChannelGraph) HasChannelEdge(chanID uint64) (time.Time, time.Time, bool
|
||||
}
|
||||
|
||||
// UpdateChannelEdge retrieves and update edge of the graph database. Method
|
||||
// only reserved for updating an edge info after it's already been created.
|
||||
// only reserved for updating an edge info after its already been created.
|
||||
// In order to maintain this constraints, we return an error in the scenario
|
||||
// that an edge info hasn't yet been created yet, but someone attempts to update
|
||||
// it.
|
||||
@@ -806,7 +806,7 @@ func (c *ChannelGraph) PruneTip() (*chainhash.Hash, uint32, error) {
|
||||
return &tipHash, tipHeight, nil
|
||||
}
|
||||
|
||||
// DeleteChannelEdge removes an edge from the database as identified by it's
|
||||
// DeleteChannelEdge removes an edge from the database as identified by its
|
||||
// funding outpoint. If the edge does not exist within the database, then
|
||||
// ErrEdgeNotFound will be returned.
|
||||
func (c *ChannelGraph) DeleteChannelEdge(chanPoint *wire.OutPoint) error {
|
||||
|
||||
@@ -174,8 +174,8 @@ func (d *DB) AddInvoice(i *Invoice) error {
|
||||
})
|
||||
}
|
||||
|
||||
// LookupInvoice attempts to look up an invoice according to it's 32 byte
|
||||
// payment hash. In an invoice which can settle the HTLC identified by the
|
||||
// LookupInvoice attempts to look up an invoice according to its 32 byte
|
||||
// payment hash. If an invoice which can settle the HTLC identified by the
|
||||
// passed payment hash isn't found, then an error is returned. Otherwise, the
|
||||
// full invoice is returned. Before setting the incoming HTLC, the values
|
||||
// SHOULD be checked to ensure the payer meets the agreed upon contractual
|
||||
|
||||
Reference in new issue
Block a user