mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
df-tests: test_peerinfo
This commit is contained in:
parent
135cd178f7
commit
96c42262ab
@ -2068,8 +2068,14 @@ def test_forget_channel(node_factory):
|
|||||||
|
|
||||||
def test_peerinfo(node_factory, bitcoind):
|
def test_peerinfo(node_factory, bitcoind):
|
||||||
l1, l2 = node_factory.line_graph(2, fundchannel=False, opts={'may_reconnect': True})
|
l1, l2 = node_factory.line_graph(2, fundchannel=False, opts={'may_reconnect': True})
|
||||||
lfeatures = expected_peer_features()
|
|
||||||
nfeatures = expected_node_features()
|
if l1.config('experimental-dual-fund'):
|
||||||
|
lfeatures = expected_peer_features(extra=[223])
|
||||||
|
nfeatures = expected_node_features(extra=[223])
|
||||||
|
else:
|
||||||
|
lfeatures = expected_peer_features()
|
||||||
|
nfeatures = expected_node_features()
|
||||||
|
|
||||||
# Gossiping but no node announcement yet
|
# Gossiping but no node announcement yet
|
||||||
assert l1.rpc.getpeer(l2.info['id'])['connected']
|
assert l1.rpc.getpeer(l2.info['id'])['connected']
|
||||||
assert len(l1.rpc.getpeer(l2.info['id'])['channels']) == 0
|
assert len(l1.rpc.getpeer(l2.info['id'])['channels']) == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user