mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
lightningd: use the async mechanism for channel_update access.
Instead of saving a stripped_update, we use the new local_fail_in_htlc_needs_update. One minor change: we return the more correct towire_temporary_channel_failure when the node is still syncing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -184,8 +184,11 @@ def test_lightningd_still_loading(node_factory, bitcoind, executor):
|
||||
assert 'warning_bitcoind_sync' not in l1.rpc.getinfo()
|
||||
assert 'warning_lightningd_sync' in l1.rpc.getinfo()
|
||||
|
||||
# Make sure it's connected to l2 (otherwise we get TEMPORARY_CHANNEL_FAILURE)
|
||||
wait_for(lambda: only_one(l1.rpc.listpeers(l2.info['id'])['peers'])['connected'])
|
||||
|
||||
# Payments will fail. FIXME: More informative msg?
|
||||
with pytest.raises(RpcError, match=r'TEMPORARY_CHANNEL_FAILURE'):
|
||||
with pytest.raises(RpcError, match=r'TEMPORARY_NODE_FAILURE'):
|
||||
l1.pay(l2, 1000)
|
||||
|
||||
# Can't fund a new channel.
|
||||
|
||||
Reference in New Issue
Block a user