core-lightning/bitcoin
Rusty Russell 65be18d355 memleak: handle libwally allocations better.
Things allocated by libwally all get the tal_name "wally_tal",
which cost me a few hours trying to find a leak.

In the case where we're making one of the allocations the parent
of the others (e.g. a wally_psbt), we can do better: supply a name
for the tal_wally_end().

So I add a new tal_wally_end_onto() which does the standard
tal_steal() trick, and also changes the (typechecked!) name.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-03-21 10:19:50 +10:30
..
test JSON-RPC: getinfo, add field our_features 2022-03-01 09:38:40 +10:30
address.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
base58.c memleak: handle libwally allocations better. 2022-03-21 10:19:50 +10:30
base58.h bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
block.c bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
block.h bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
chainparams.c bitcoin/chainparams.h: Split BIP173 name into onchain and Lightning HRPs. 2021-12-14 11:21:35 +10:30
chainparams.h bitcoin/chainparams.h: Split BIP173 name into onchain and Lightning HRPs. 2021-12-14 11:21:35 +10:30
feerate.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
feerate.h feerate: remove duplicate method 2020-10-20 14:27:19 +10:30
locktime.c bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
locktime.h bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
Makefile Makefile: make check-includes check all the non-generated files. 2020-10-22 12:14:34 +10:30
preimage.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
preimage.h wire: move towire/fromwire_preimage out to bitcoin/preimage.c. 2020-05-18 14:51:12 +02:00
privkey.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
privkey.h wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
psbt.c memleak: handle libwally allocations better. 2022-03-21 10:19:50 +10:30
psbt.h bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
pubkey.c bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
pubkey.h bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
README Fix typo. 2015-06-25 13:48:05 +09:30
script.c bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
script.h bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
shadouble.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
shadouble.h wire: move remaining bitcoin functions out to bitcoin/ files. 2020-05-18 14:51:12 +02:00
short_channel_id.c bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
short_channel_id.h bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
signature.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
signature.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
tx_parts.c memleak: handle libwally allocations better. 2022-03-21 10:19:50 +10:30
tx_parts.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
tx.c memleak: handle libwally allocations better. 2022-03-21 10:19:50 +10:30
tx.h bitcoin: Comment typo fix 2022-03-03 11:22:19 +10:30
varint.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
varint.h varint: Add helper function for getting varlen size 2019-10-10 05:57:45 +00:00

These are standard bitcoin manipulation routines which should be
provided by any normal bitcoin library in whatever language you choose.

The ones here are standalone ones taken from bitcoin core and some I
wrote, many taken from bitcoin-iterate and pasted in here.