Skip to content

Commit

Permalink
test: run-gossmap update test store instructions
Browse files Browse the repository at this point in the history
Changelog-None
  • Loading branch information
m-schmoock authored and niftynei committed Jul 12, 2022
1 parent b3177e9 commit f67ab2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion common/test/run-gossmap_canned.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ void towire_channel_id(u8 **pptr UNNEEDED, const struct channel_id *channel_id U
{ fprintf(stderr, "towire_channel_id called!\n"); abort(); }
/* AUTOGENERATED MOCKS END */

/* Canned gossmap, taken from od -tx1 -Anone -v < /tmp/ltests-rtchpzh1/test_peers_1/lightning-2/regtest/gossip_store | sed 's/ / 0x/g'| cut -c2- | sed -e 's/ /, /' -e 's/$/,/' */
/* Canned gossmap, taken from tests/test_gossip.py
* $> od -tx1 -Anone -v < /tmp/ltests-rtchpzh1/test_peers_1/lightning-2/regtest/gossip_store | sed 's/ / 0x/g'| cut -c2- | sed -e 's/ /, /g' -e 's/$/,/'
*/
static u8 canned_map[] = {
0x0a,0x00,0x00,0x01,0xbc,0x4a,0xe8,0x33,0xa0,0x00,0x00,0x00,0x00,0x10,0x08,0x00,
0x00,0x00,0x00,0x00,0x0f,0x42,0x40,0x01,0xb0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
Expand Down
4 changes: 2 additions & 2 deletions common/test/run-gossmap_local.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ void towire_channel_id(u8 **pptr UNNEEDED, const struct channel_id *channel_id U
{ fprintf(stderr, "towire_channel_id called!\n"); abort(); }
/* AUTOGENERATED MOCKS END */

/* Canned gossmap, taken from tests/test_gossip.py's
* setup_gossip_store_test via od -v -Anone -tx1 < /tmp/ltests-kaf30pn0/test_gossip_store_compact_noappend_1/lightning-2/regtest/gossip_store
/* Canned gossmap, taken from tests/test_gossip.py::test_gossip_store_compact_noappend
* $> od -v -Anone -tx1 < /tmp/ltests-kaf30pn0/test_gossip_store_compact_noappend_1/lightning-2/regtest/gossip_store | sed 's/ / 0x/g'| cut -c2- | sed -e 's/ /, /g' -e 's/$/,/'
*/
static u8 canned_map[] = {
0x0a, 0x80, 0x00, 0x01, 0xbc, 0x09, 0x8b, 0x67, 0xe6, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x00
Expand Down

0 comments on commit f67ab2a

Please sign in to comment.