William Casarin
3d98ebbd7f
build: fix maybe-uninitialized error on some gcc versions
...
on gcc (GCC) 7.4.0
devtools/create-gossipstore.c: In function ‘main’:
devtools/create-gossipstore.c:107:9: error: ‘infd’ may be used uninitialized ..
while (read_all(infd, &be_inlen, sizeof(be_inlen))) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: William Casarin <jb55@jb55.com >
2019-04-08 23:09:53 +02:00
William Casarin
8a4ff05a40
nit: remove end-of-line whitespace
...
Signed-off-by: William Casarin <jb55@jb55.com >
2019-04-08 23:09:53 +02:00
Rusty Russell
fbb494fba3
devtools/create-gossipstore: clean up enough to pass check-source.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2019-04-08 04:41:43 +00:00
Rusty Russell
6dd1dacb9c
devtools/create-gossipstore: add --max option to create reduced testsets.
...
eg. for running under valgrind.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2019-04-08 04:41:43 +00:00
Rusty Russell
b017caaadf
devtools/create-gossipstore: don't pollute output with message.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2019-04-08 04:41:43 +00:00
Joe Netti
294394215e
create-gossipstore.c can read scid -> satoshis csv file. The csv is in the format scid ,satoshis where there is a black space after scid. Made a header file that contains a struct. Modified makefile. Added cmdline arg --scidfile /path/to/csv and made the constant capacity command optional. create-gossipstore prints stats at the end.
2019-04-08 04:41:43 +00:00
Rusty Russell
3d8c1f0c02
devtools/create-gossipstore: tool to create a gossip_store file from stream of gossip.
...
The gossip is expected to be in format:
16-bit-big-endian-length
[gossip message]
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2019-04-08 04:41:43 +00:00