Skip to content

Commit

Permalink
tests: Remove test that is no longer applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Jun 4, 2024
1 parent fbb6ab9 commit 5803c12
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions libs/gl-testing/tests/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,41 @@ def test_node_reconnect(clients, scheduler, node_factory, bitcoind):
assert peer['id'] == l1.info['id']


def test_vls_crash_repro(
clients: Clients,
scheduler: Scheduler,
node_factory,
bitcoind) -> None:
"""Reproduce an overflow panic in VLS v0.10.0. """
l1, = node_factory.line_graph(1, opts={'experimental-anchors': None})
assert(l1.rpc.getinfo()['version'] == 'v23.08gl1')

c = clients.new()
c.register(configure=True)
s = c.signer().run_in_thread()
gl1 = c.node()

gl1.connect_peer(l1.info['id'], f'127.0.0.1:{l1.daemon.port}')

l1.fundwallet(10**7)
l1.rpc.fundchannel(c.node_id.hex(), 'all')
bitcoind.generate_block(1, wait_for_mempool=1)

wait_for(lambda: l1.rpc.listpeerchannels()['channels'][0]['state'] == 'CHANNELD_NORMAL')

# Roei reports that the issue can be triggered by sending n from
# l1 to n1 and then (n-1)msat back to l1

inv = gl1.invoice(
amount_msat=clnpb.AmountOrAny(amount=clnpb.Amount(msat=2500000)),
description="desc",
label="lbl"
).bolt11

l1.rpc.pay(inv)
inv = l1.rpc.invoice(amount_msat=2499000, label="lbl", description="desc")


def test_sendpay_signer(
clients: Clients,
scheduler: Scheduler,
Expand Down

0 comments on commit 5803c12

Please sign in to comment.