channeld: handle unexpected messages better.

In particular, decode error messages correctly and do the right thing with
messages about other channels.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-01-30 11:14:06 +10:30
parent 1a297a7010
commit dd044f826b
2 changed files with 73 additions and 23 deletions

View File

@@ -917,7 +917,7 @@ class LightningDTests(BaseLightningDTests):
closetxid = l1.bitcoin.rpc.getrawmempool(False)[0]
# "Internal error" in hex
l1.daemon.wait_for_log('WIRE_ERROR.*496e7465726e616c206572726f72')
l1.daemon.wait_for_log(r'ERROR.*Internal error')
# l2 will send out tx (l1 considers it a transient error)
bitcoind.generate_block(1)