MCPcopy Create free account
hub / github.com/ElementsProject/lightning / has_gossip

Function has_gossip

tests/test_pay.py:1918–1929  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1916 mine_funding_to_announce(bitcoind, [l1, l2, l3, l4])
1917
1918 def has_gossip():
1919 channels = l1.rpc.listchannels()['channels']
1920 if len(channels) != 4 * 2:
1921 return False
1922
1923 if sum(1 for c in channels if c['fee_per_millionth'] == 1) != 2:
1924 return False
1925
1926 if sum(1 for c in channels if c['fee_per_millionth'] == 2000) != 1:
1927 return False
1928
1929 return True
1930
1931 wait_for(has_gossip)
1932

Callers

nothing calls this directly

Calls 1

listchannelsMethod · 0.45

Tested by

no test coverage detected