core-lightning/wallet/test
Rusty Russell 8e976150ad json_fundchannel: fix release vs connect/nongossip race.
The new connect code revealed an existing race: we tell gossipd to
release the peer, but at the same time it connects in.  gossipd fails
the release because the peer is remote, and json_fundchannel fails.

Instead, we catch this race when we get peer_connected() and we were
trying to open a channel.  It means keeping a list of fundchannels which
are awaiting a gossipd response though.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-04-23 20:18:15 +00:00
..
.gitignore wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00
Makefile wallet/test: fix Makefile so test correctly depend on wallet files. 2018-04-04 02:31:41 +00:00
run-db.c wallet: use json_escaped for invoice label. 2018-03-26 00:20:53 +00:00
run-wallet.c json_fundchannel: fix release vs connect/nongossip race. 2018-04-23 20:18:15 +00:00
test_utils.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00