sphinx: explain why parse_onionpacket fails.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-01-08 10:51:50 +10:30
committed by Christian Decker
parent 66de6b84be
commit 59febcb968
7 changed files with 31 additions and 24 deletions

View File

@@ -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",