rgb-cln/bitcoin
Rusty Russell 391da2f440 lightningd: don't let them fundpsbt below emergency reserve.
This is the simple version which always tries to keep some sats if we
have an anchor channel.  Turns out that we need something more
sophisticated for multifundchannel, so that's next.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: JSON-RPC: `withdraw` will refuse to spend funds below `min-emergency-msat` if we have any anchor channels (and `all` will be reduced appropriately).
Changelog-Changed: JSON-RPC: `fundpsbt` and `utxopsbt` will refuse to spend funds below `min-emergency-msat` if we have any anchor channels.
2023-06-29 11:28:47 -04:00
..
test bitcoin/psbt: handle anchor spends. 2023-06-29 11:28:47 -04:00
Makefile bitcoin: add to check-source-bolt, and (minor) quotes fixup. 2022-06-18 13:45:09 +09:30
README
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: fix header order for make check-source. 2022-06-18 13:45:09 +09:30
block.h bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
chainparams.c chainparams/dual-open: set max_supply; use for max on wumbo channels 2022-10-20 13:42:41 +02:00
chainparams.h chainparams/dual-open: set max_supply; use for max on wumbo channels 2022-10-20 13:42:41 +02:00
feerate.c lightningd: clarify uses of dynamic (mempool) feerate floor, and static. 2023-04-10 07:31:12 +09:30
feerate.h lightningd: clarify uses of dynamic (mempool) feerate floor, and static. 2023-04-10 07:31:12 +09: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
preimage.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
preimage.h
privkey.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
privkey.h
psbt.c bitcoin/psbt: handle anchor spends. 2023-06-29 11:28:47 -04:00
psbt.h Update libwally to 0.8.8, support PSBTv2 2023-03-23 16:10:55 +10:30
pubkey.c Remove point32. 2022-10-26 11:29:06 +10:30
pubkey.h Remove point32. 2022-10-26 11:29:06 +10:30
script.c global: thread zero fee option everywhere. 2023-06-29 11:28:47 -04:00
script.h global: thread zero fee option everywhere. 2023-06-29 11:28:47 -04:00
shadouble.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
shadouble.h
short_channel_id.c bitcoin: remove unused functions, or make static. 2021-12-06 10:05:39 +10:30
short_channel_id.h lightningd: Add RPC for populating DB with stub channels and set an error on reconnecting 2022-07-14 12:24:48 -05:00
signature.c bitcoin: add routine to check a Schnorr sig given a 33-byte pubkey. 2022-09-29 16:10:57 +09:30
signature.h bitcoin: add routine to check a Schnorr sig given a 33-byte pubkey. 2022-09-29 16:10:57 +09:30
tx.c lightningd: don't let them fundpsbt below emergency reserve. 2023-06-29 11:28:47 -04:00
tx.h lightningd: don't let them fundpsbt below emergency reserve. 2023-06-29 11:28:47 -04:00
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
varint.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
varint.h

README

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.