mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-03 21:24:22 +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:
committed by
Christian Decker
parent
624ec6da27
commit
00f3a84af2
@@ -162,7 +162,7 @@ static struct pubkey nodeid(size_t n)
|
||||
struct secret s;
|
||||
|
||||
memset(&s, 0xFF, sizeof(s));
|
||||
memcpy(&s, &n, sizeof(s) / sizeof(n));
|
||||
memcpy(&s, &n, sizeof(n));
|
||||
pubkey_from_secret(&s, &id);
|
||||
return id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user