mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
sphinx: Remove annoying warning when MACs do not match
This was printing to stderr during the tests. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
f2d67f88c0
commit
a9f02a8985
@@ -420,7 +420,7 @@ struct route_step *process_onionpacket(
|
||||
compute_packet_hmac(msg, assocdata, assocdatalen, keys.mu, hmac);
|
||||
|
||||
if (memcmp(msg->mac, hmac, sizeof(hmac)) != 0) {
|
||||
warnx("Computed MAC does not match expected MAC, the message was modified.");
|
||||
/* Computed MAC does not match expected MAC, the message was modified. */
|
||||
return tal_free(step);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user