mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-08 22:42:50 +02:00
htlcswitch: use distinct error for unreadable failures
This commit is contained in:
@@ -965,3 +965,18 @@ func (m *mockCircuitMap) NumPending() int {
|
||||
func (m *mockCircuitMap) NumOpen() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
type mockOnionErrorDecryptor struct {
|
||||
sourceIdx int
|
||||
message []byte
|
||||
err error
|
||||
}
|
||||
|
||||
func (m *mockOnionErrorDecryptor) DecryptError(encryptedData []byte) (
|
||||
*sphinx.DecryptedError, error) {
|
||||
|
||||
return &sphinx.DecryptedError{
|
||||
SenderIdx: m.sourceIdx,
|
||||
Message: m.message,
|
||||
}, m.err
|
||||
}
|
||||
|
Reference in New Issue
Block a user