1
0

lnpeer: better error handling when processing onion packets

This commit is contained in:
SomberNight
2020-03-24 17:48:06 +01:00
parent 30bf32b34b
commit d424487814
2 changed files with 26 additions and 5 deletions

View File

@@ -484,6 +484,7 @@ class OnionFailureCode(IntEnum):
FINAL_INCORRECT_HTLC_AMOUNT = 19
CHANNEL_DISABLED = UPDATE | 20
EXPIRY_TOO_FAR = 21
INVALID_ONION_PAYLOAD = PERM | 22
# don't use these elsewhere, the names are ambiguous without context