pytest: make sure to use old_hsmsecret on downgrade tests.
We only support downgrade if you upgraded, so your hsm_secret will be old. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -32,7 +32,8 @@ def downgrade_cmdline(node):
|
||||
|
||||
|
||||
def test_downgrade(node_factory, executor):
|
||||
l1, l2 = node_factory.line_graph(2, opts={'may_reconnect': True}, wait_for_announce=True)
|
||||
# To downgrade before 25.12, we need old-style hsm_secret.
|
||||
l1, l2 = node_factory.line_graph(2, opts={'may_reconnect': True, 'old_hsmsecret': True}, wait_for_announce=True)
|
||||
|
||||
bias_scidd = f"{first_scid(l1, l2)}/0"
|
||||
# Create a bias for this channel.
|
||||
@@ -99,7 +100,7 @@ def test_downgrade(node_factory, executor):
|
||||
|
||||
def test_downgrade_bias(node_factory, executor):
|
||||
"""If we have created as node bias, we *can* downgrade this version."""
|
||||
l1, l2 = node_factory.line_graph(2, opts={'may_reconnect': True}, wait_for_announce=True)
|
||||
l1, l2 = node_factory.line_graph(2, opts={'may_reconnect': True, 'old_hsmsecret': True}, wait_for_announce=True)
|
||||
|
||||
l1.rpc.askrene_bias_node('xpay', l2.info['id'], 'in', 1)
|
||||
cmd_line = downgrade_cmdline(l1)
|
||||
|
||||
Reference in New Issue
Block a user