Browse Source
We also make the logic a bit nicer to read. The failure was due to more than one status message being present if we look at the wrong time: ``` arr = ['CLOSINGD_SIGEXCHANGE:We agreed on a closing fee of 20334 satoshi for tx:17f1e9d377840edf79d8b6f1ed0faba59bb307463461...9b98', 'CLOSINGD_SIGEXCHANGE:Waiting for another closing fee offer: ours was 20334 satoshi, theirs was 20332 satoshi,'] │ def only_one(arr): """Many JSON RPC calls return an array; often we only expect a single entry """ > assert len(arr) == 1 E AssertionError ```master
Christian Decker
4 years ago
committed by
Rusty Russell
1 changed files with 5 additions and 1 deletions
Loading…
Reference in new issue