mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-03 10:12:28 +02:00
Htlcswitch: rename Deobfuscator and Obfuscator interfaces
This commit renames the Deobfuscator interface to ErrorDecrypter and the Obfuscator interface to ErrorEncrypter. With this rename, the purpose of these two interfaces are a bit clearer. Additionally, DecryptError (which was formerly Deobfuscate) now directly returns an ForwardingError type instead of the lnwire.FailureMessage.
This commit is contained in:
@@ -352,7 +352,7 @@ func TestSwitchSendPayment(t *testing.T) {
|
||||
// back. This request should be forwarded back to alice channel link.
|
||||
obfuscator := newMockObfuscator()
|
||||
failure := lnwire.FailIncorrectPaymentAmount{}
|
||||
reason, err := obfuscator.InitialObfuscate(failure)
|
||||
reason, err := obfuscator.EncryptFirstHop(failure)
|
||||
if err != nil {
|
||||
t.Fatalf("unable obfuscate failure: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user