fix previous commit
This commit is contained in:
@@ -1043,12 +1043,12 @@ class Peer(PrintError):
|
|||||||
self.print_error("UPDATE_FAIL_HTLC", repr(code), data)
|
self.print_error("UPDATE_FAIL_HTLC", repr(code), data)
|
||||||
# handle some specific error codes
|
# handle some specific error codes
|
||||||
failure_codes = {
|
failure_codes = {
|
||||||
OnionFailureCode.TEMPORARY_CHANNEL_FAILURE: 2
|
OnionFailureCode.TEMPORARY_CHANNEL_FAILURE: 2,
|
||||||
OnionFailureCode.AMOUNT_BELOW_MINIMUM: 10
|
OnionFailureCode.AMOUNT_BELOW_MINIMUM: 10,
|
||||||
OnionFailureCode.FEE_INSUFFICIENT: 10
|
OnionFailureCode.FEE_INSUFFICIENT: 10,
|
||||||
OnionFailureCode.INCORRECT_CLTV_EXPIRY: 6
|
OnionFailureCode.INCORRECT_CLTV_EXPIRY: 6,
|
||||||
OnionFailureCode.EXPIRY_TOO_SOON: 2
|
OnionFailureCode.EXPIRY_TOO_SOON: 2,
|
||||||
OnionFailureCode.CHANNEL_DISABLED: 4
|
OnionFailureCode.CHANNEL_DISABLED: 4,
|
||||||
}
|
}
|
||||||
offset = failure_codes.get(code)
|
offset = failure_codes.get(code)
|
||||||
if offset:
|
if offset:
|
||||||
|
|||||||
Reference in New Issue
Block a user