mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
sphinx: Switch to version 0x00 like the spec says
We were using the wrong version, oops. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
d75733f7fb
commit
a44f893838
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue