lnwire: add constructor for FinalExpiryTooSoon failure message

This commit is contained in:
Joost Jager 2019-02-08 10:00:59 +01:00
parent 10a655b6b1
commit 652ebb1652
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -409,6 +409,11 @@ func (f FailFinalExpiryTooSoon) Error() string {
return f.Code().String() return f.Code().String()
} }
// NewFinalExpiryTooSoon creates new instance of the FailFinalExpiryTooSoon.
func NewFinalExpiryTooSoon() *FailFinalExpiryTooSoon {
return &FailFinalExpiryTooSoon{}
}
// FailInvalidOnionVersion is returned if the onion version byte is unknown. // FailInvalidOnionVersion is returned if the onion version byte is unknown.
// //
// NOTE: May be returned only by intermediate nodes. // NOTE: May be returned only by intermediate nodes.