core-lightning/bitcoin
darosior 273029f244 wallet: set nLockTime to the tip for withdrawal transactions
This sets the nLockTime to the tip (and accordingly each input's nSequence to
0xfffffffe) for withdrawal transactions.

Even if the anti fee-sniping argument might not be valid until some time yet,
this makes our regular wallet transactions far less distinguishable from
bitcoind's ones since it now defaults to using native Segwit transactions
(like us). Moreover other wallets are likely to implement this (if they
haven't already).

Changelog-Added: wallet: withdrawal transactions now sets nlocktime to the current tip.
2020-02-03 00:45:27 +00:00
..
test elements: Add amount_asset to support more than just plain satoshis 2019-10-03 04:32:57 +00:00
address.h
base58.c wallet: Pass chainparams to address serialization 2019-05-10 23:07:49 +00:00
base58.h wallet: Pass chainparams to address serialization 2019-05-10 23:07:49 +00:00
block.c cleanup: Remove block header fields we don't use 2020-01-28 20:03:55 +01:00
block.h cleanup: Remove block header fields we don't use 2020-01-28 20:03:55 +01:00
chainparams.c bitcoin/chainparams: add an utility to retrieve chainparams for all networks 2019-11-29 21:17:08 +01:00
chainparams.h bitcoin/chainparams: add an utility to retrieve chainparams for all networks 2019-11-29 21:17:08 +01:00
feerate.h
locktime.c
locktime.h
Makefile secret_eq: remove in favor of constant time variant. 2018-08-23 14:46:22 +02:00
preimage.h Update ccan/structeq. 2018-07-04 23:57:00 +02:00
privkey.c secret_eq: remove in favor of constant time variant. 2018-08-23 14:46:22 +02:00
privkey.h devtools: Minor cleanup of the onion command line tool 2019-07-30 02:14:49 +00:00
pubkey.c pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 2019-04-09 12:37:16 -07:00
pubkey.h pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 2019-04-09 12:37:16 -07:00
pullpush.c Makefile: check for direct amount_sat/amount_msat access. 2019-02-21 08:01:37 +00:00
pullpush.h bitcoin: use amount_sat/amount_msat. 2019-02-21 08:01:37 +00:00
README
script.c script: add helper for checking if a 'known type' 2019-10-10 05:57:45 +00:00
script.h script: add helper for checking if a 'known type' 2019-10-10 05:57:45 +00:00
shadouble.c
shadouble.h
short_channel_id.c JSON: remove handling of pre-Adelaide (B:T:N) short_channel_ids. 2019-09-06 14:19:14 +02:00
short_channel_id.h bitcoin: implement is_scid_depth_announceable helper. 2019-09-25 04:01:56 +00:00
signature.c devtools: add privkey+hash printing to mkcommit/mkgossip 2019-11-21 01:17:33 +00:00
signature.h devtools: add privkey+hash printing to mkcommit/mkgossip 2019-11-21 01:17:33 +00:00
tx.c wallet: set nLockTime to the tip for withdrawal transactions 2020-02-03 00:45:27 +00:00
tx.h wallet: set nLockTime to the tip for withdrawal transactions 2020-02-03 00:45:27 +00:00
varint.c varint: Add helper function for getting varlen size 2019-10-10 05:57:45 +00:00
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.