lnwire: rename ErrorCode -> FundingError

To make it clear that these errors are not part of the spec, rename them
to FundingError.
This commit is contained in:
Johan T. Halseth committed 2019-09-20 10:55:21 +02:00
1 parent 33fe09482b
commit e4301d3a8f
2 files changed
+13 -25

No files matched your search

+2 -2
View File
@@ -857,7 +857,7 @@ func (f *fundingManager) failFundingFlow(peer lnpeer.Peer, tempChanID [32]byte,
}
// We only send the exact error if it is part of out whitelisted set of
// errors (lnwire.ErrorCode or lnwallet.ReservationError).
// errors (lnwire.FundingError or lnwallet.ReservationError).
var msg lnwire.ErrorData
switch e := fundingErr.(type) {
@@ -865,7 +865,7 @@ func (f *fundingManager) failFundingFlow(peer lnpeer.Peer, tempChanID [32]byte,
// whitelisted types.
case lnwallet.ReservationError:
msg = lnwire.ErrorData(e.Error())
case lnwire.ErrorCode:
case lnwire.FundingError:
msg = lnwire.ErrorData(e.Error())
// For all other error types we just send a generic error.