mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
lightningd: remove some "single active channel" assumptions.
Generally this means converting a lazy "peer_active_channel(peer)" call into an explicit iteration. 1. notify_feerate_change: call all channels (ignores non-active ones anyway). 2. peer_get_owning_subd remove unused function. 3. peer_connected hook: don't save channel, do lookup and iterate channels. 4. In json_setchannelfee "all" remove useless call to peer_active_channel since we check state anyway, and iterate. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -935,7 +935,7 @@ def test_channel_state_changed_unilateral(node_factory, bitcoind):
|
||||
assert(l2.rpc.listpeers()['peers'][0]['channels'][0]['closer'] == 'local')
|
||||
if EXPERIMENTAL_DUAL_FUND:
|
||||
l1.daemon.wait_for_log(r'Peer has reconnected, state')
|
||||
l2.daemon.wait_for_log(r'Peer has reconnected, state')
|
||||
l2.daemon.wait_for_log(r'Telling connectd to send error')
|
||||
|
||||
# l1 will receive error, and go into AWAITING_UNILATERAL
|
||||
# FIXME: l2 should re-xmit shutdown, but it doesn't until it's mined :(
|
||||
|
||||
Reference in New Issue
Block a user