mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 06:54:30 +01:00
sphinx: explain why parse_onionpacket fails.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
66de6b84be
commit
59febcb968
@@ -648,7 +648,8 @@ static bool peer_accepted_htlc(struct channel *channel,
|
||||
|
||||
/* channeld tests this, so it should pass. */
|
||||
op = parse_onionpacket(tmpctx, hin->onion_routing_packet,
|
||||
sizeof(hin->onion_routing_packet));
|
||||
sizeof(hin->onion_routing_packet),
|
||||
failcode);
|
||||
if (!op) {
|
||||
channel_internal_error(channel,
|
||||
"bad onion in got_revoke: %s",
|
||||
|
||||
Reference in New Issue
Block a user