-
Notifications
You must be signed in to change notification settings - Fork 962
Giant tx fix #8639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Giant tx fix #8639
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1875,6 +1875,21 @@ def test_bitcoin_backend(node_factory, bitcoind): | |
| " bitcoind") | ||
|
|
||
|
|
||
| def test_bitcoin_backend_gianttx(node_factory, bitcoind): | ||
| """Test that a giant tx doesn't crash bcli""" | ||
| l1 = node_factory.get_node(start=False) | ||
| # With memleak we spend far too much time gathering backtraces. | ||
| del l1.daemon.env["LIGHTNINGD_DEV_MEMLEAK"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this line is causing your test to fail. It seems like the LIGHTNINGD_DEV_MEMLEAK key does not exist under valgrind? You can use .pop() instead of del, that way the key will be removed only if it exists. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have no idea why the liquid test fails like this though: It seems like l1 is a liquid node, and we're trying to withdraw to a correct liquid address? |
||
| l1.start() | ||
| addrs = {addr: 0.00200000 for addr in [l1.rpc.newaddr('bech32')['bech32'] for _ in range(700)]} | ||
| bitcoind.rpc.sendmany("", addrs) | ||
| bitcoind.generate_block(1, wait_for_mempool=1) | ||
| sync_blockheight(bitcoind, [l1]) | ||
|
|
||
| l1.rpc.withdraw(bitcoind.rpc.getnewaddress(), 'all') | ||
| bitcoind.generate_block(1, wait_for_mempool=1) | ||
|
|
||
|
|
||
| def test_bitcoin_bad_estimatefee(node_factory, bitcoind): | ||
| """ | ||
| This tests that we don't crash if bitcoind backend gives bad estimatefees. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this check enough if stdinargs is allocated but empty?