multi: fix canceled spelling

This commit is contained in:
Joost Jager committed 2019-10-03 17:27:36 +02:00
1 parent 989de44a69
commit b58dbb2d70
31 files changed
+603 -603

No files matched your search

+2 -2
View File
@@ -325,12 +325,12 @@ type PaymentDescriptor struct {
// NOTE: Populated only in payment descriptor with MalformedFail type.
ShaOnionBlob [sha256.Size]byte
// FailReason stores the reason why a particular payment was cancelled.
// FailReason stores the reason why a particular payment was canceled.
//
// NOTE: Populate only in fail payment descriptor entry types.
FailReason []byte
// FailCode stores the code why a particular payment was cancelled.
// FailCode stores the code why a particular payment was canceled.
//
// NOTE: Populated only in payment descriptor with MalformedFail type.
FailCode lnwire.FailCode
+1 -1
View File
@@ -707,7 +707,7 @@ func testCancelNonExistentReservation(miner *rpctest.Harness,
// Attempt to cancel this reservation. This should fail, we know
// nothing of it.
if err := res.Cancel(); err == nil {
t.Fatalf("cancelled non-existent reservation")
t.Fatalf("canceled non-existent reservation")
}
}
+1 -1
View File
@@ -56,7 +56,7 @@ func (c *ChannelContribution) toChanConfig() channeldb.ChannelConfig {
// reservation workflow, resources consumed by a contribution are "locked"
// themselves. This prevents a number of race conditions such as two funding
// transactions double-spending the same input. A reservation can also be
// cancelled, which removes the resources from limbo, allowing another
// canceled, which removes the resources from limbo, allowing another
// reservation to claim them.
//
// The reservation workflow consists of the following three steps:
+2 -2
View File
@@ -363,7 +363,7 @@ func (l *LightningWallet) ResetReservations() {
}
// ActiveReservations returns a slice of all the currently active
// (non-cancelled) reservations.
// (non-canceled) reservations.
func (l *LightningWallet) ActiveReservations() []*ChannelReservation {
reservations := make([]*ChannelReservation, 0, len(l.fundingLimbo))
for _, reservation := range l.fundingLimbo {
@@ -520,7 +520,7 @@ func (l *LightningWallet) handleFundingReserveRequest(req *InitFundingReserveMsg
// Funding reservation request successfully handled. The funding inputs
// will be marked as unavailable until the reservation is either
// completed, or cancelled.
// completed, or canceled.
req.resp <- reservation
req.err <- nil
}