From a44f893838ccd48ee18aa108f13e3c7bc228e5fb Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 5 Sep 2017 16:33:19 -0700 Subject: [PATCH] sphinx: Switch to version 0x00 like the spec says We were using the wrong version, oops. Signed-off-by: Christian Decker --- common/sphinx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/sphinx.c b/common/sphinx.c index 66e361a51..61e4c58fc 100644 --- a/common/sphinx.c +++ b/common/sphinx.c @@ -92,7 +92,7 @@ struct onionpacket *parse_onionpacket( m = talz(ctx, struct onionpacket); read_buffer(&m->version, src, 1, &p); - if (m->version != 0x01) { + if (m->version != 0x00) { // FIXME add logging return tal_free(m); } @@ -357,7 +357,7 @@ struct onionpacket *create_onionpacket( if (!params) return NULL; - packet->version = 1; + packet->version = 0; memset(nexthmac, 0, SECURITY_PARAMETER); memset(packet->routinginfo, 0, ROUTING_INFO_SIZE);