mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
pytest: Migrate payment related tests to use modern fixtures
This commit is contained in:
committed by
Rusty Russell
parent
de99ccca81
commit
2e26d4fc42
@@ -660,10 +660,10 @@ class NodeFactory(object):
|
||||
node.info = node.rpc.getinfo()
|
||||
return node
|
||||
|
||||
def line_graph(self, num_nodes, fundchannel=True, fundamount=10**6, announce=False):
|
||||
def line_graph(self, num_nodes, fundchannel=True, fundamount=10**6, announce=False, opts=None):
|
||||
""" Create nodes, connect them and optionally fund channels.
|
||||
"""
|
||||
nodes = self.get_nodes(num_nodes)
|
||||
nodes = self.get_nodes(num_nodes, opts=opts)
|
||||
bitcoin = nodes[0].bitcoin
|
||||
connections = [(nodes[i], nodes[i+1]) for i in range(0, num_nodes-1)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user