routing: add new error for failed funding tx validation

In this commit we add a new error for when we fail to validate the
funding transaction (invalid script, etc) and mark it as a zombie like
the other failed validation cases.
This commit is contained in:
Olaoluwa Osuntokun committed 2021-05-03 19:06:59 -07:00
1 parent 92c47983cb
commit e0ce384f02
3 files changed
+59 -32

No files matched your search

+4
View File
@@ -24,6 +24,10 @@ const (
// ErrNoFundingTransaction is returned when we are unable to find the
// funding transaction described by the short channel ID on chain.
ErrNoFundingTransaction
// ErrInvalidFundingOutput is returned if the channle funding output
// fails validation.
ErrInvalidFundingOutput
)
// routerError is a structure that represent the error inside the routing package,