mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 06:55:13 +01:00
test: fix thinko in gossipd/test/run-bench-find_route.c
Reported-by: @cdecker Fixes: #2440 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
624ec6da27
commit
00f3a84af2
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ static struct pubkey nodeid(size_t n)
|
||||||
struct secret s;
|
struct secret s;
|
||||||
|
|
||||||
memset(&s, 0xFF, sizeof(s));
|
memset(&s, 0xFF, sizeof(s));
|
||||||
memcpy(&s, &n, sizeof(s) / sizeof(n));
|
memcpy(&s, &n, sizeof(n));
|
||||||
pubkey_from_secret(&s, &id);
|
pubkey_from_secret(&s, &id);
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue