diff --git a/lnwire/onion_error.go b/lnwire/onion_error.go index ffefb5e4e..dbc20777b 100644 --- a/lnwire/onion_error.go +++ b/lnwire/onion_error.go @@ -409,6 +409,11 @@ func (f FailFinalExpiryTooSoon) Error() 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. // // NOTE: May be returned only by intermediate nodes.