Skip to content

Commit 8f0a518

Browse files
committed
common: remove tal_check() call on libwally allocations.
We call it once at the end, but calling on each allocation is excessive, and it shows when dealing with large PSBTS. Testing a 700-input PSBT was unusably slow without this: after this the entire test ran in 9 seconds. Changelog-Fixed: JSON-RPC: Dealing with giant PSBTs (700 inputs!) is now much faster. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 82fff3c commit 8f0a518

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

common/setup.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
static void *cln_wally_tal(size_t size)
1212
{
1313
assert(wally_tal_ctx);
14-
assert(tal_check(wally_tal_ctx, "cln_wally_tal ctx check"));
1514
return tal_arr_label(wally_tal_ctx, u8, size, "cln_wally_tal");
1615
}
1716

0 commit comments

Comments
 (0)