core-lightning/bitcoin
Rusty Russell 02faadfb93 amount: make it work with gcc-4.8.
```
In file included from bitcoin/chainparams.h:7:0,from bitcoin/chainparams.c:1:
./common/amount.h:36:11: error: initializer element is not constant
((struct amount_sat){(constant) + AMOUNT_MUST_BE_CONST(constant)})
^
bitcoin/chainparams.c:20:21: note: in expansion of macro ‘AMOUNT_SAT’
.max_funding = AMOUNT_SAT((1 << 24) - 1),
^
./common/amount.h:36:11: error: (near initialization for ‘networks[0].max_funding’)
((struct amount_sat){(constant) + AMOUNT_MUST_BE_CONST(constant)})
^
bitcoin/chainparams.c:20:21: note: in expansion of macro ‘AMOUNT_SAT’
.max_funding = AMOUNT_SAT((1 << 24) - 1),
```

Fixes: #2404
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-02-27 23:12:50 +00:00
..
test secret_eq: remove in favor of constant time variant. 2018-08-23 14:46:22 +02:00
address.h Makefile: generalize whitespace check. 2017-01-04 14:09:20 +10:30
base58.c Remove unused functions not covered by unit tests 2018-03-26 23:35:56 +00:00
base58.h Remove unused functions not covered by unit tests 2018-03-26 23:35:56 +00:00
block.c bitcoin: add formatting hook for printing bitcoin blockids 2017-12-25 12:33:22 +01:00
block.h Update ccan/structeq. 2018-07-04 23:57:00 +02:00
chainparams.c amount: make it work with gcc-4.8. 2019-02-27 23:12:50 +00:00
chainparams.h bitcoin/chainparams: use amount_sat / amount_msat 2019-02-21 08:01:37 +00:00
feerate.h bitcoin: expose feerate_floor. 2018-06-21 13:43:32 +02:00
locktime.c Remove unused functions not covered by unit tests 2018-03-26 23:35:56 +00:00
locktime.h Remove unused functions not covered by unit tests 2018-03-26 23:35:56 +00:00
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 secret_eq: remove in favor of constant time variant. 2018-08-23 14:46:22 +02:00
pubkey.c secret_eq: remove in favor of constant time variant. 2018-08-23 14:46:22 +02:00
pubkey.h waitsendpay: indicate which channel direction the error was. 2019-01-15 12:01:38 +01: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 Fix typo. 2015-06-25 13:48:05 +09:30
script.c signature: wrap almost all signatures in struct bitcoin_signature. 2018-12-06 23:11:51 +01:00
script.h signature: wrap almost all signatures in struct bitcoin_signature. 2018-12-06 23:11:51 +01:00
shadouble.c type_to_string: support sha256_double. 2018-03-13 16:34:55 +01:00
shadouble.h header cleanup: sort include lines into alpha order, after config.h 2016-01-22 06:38:08 +10:30
short_channel_id.c wire: move short_channel formatting functions into bitcoin/short_channel_id 2019-02-21 00:44:57 +00:00
short_channel_id.h short_channel_id: don't accept :-separated in JSON if --allow-deprecated-apis=false 2019-02-08 16:52:30 -08:00
signature.c bitcoin/signature: implement SIGHASH_SINGLE|SIGHASH_ANYONECANPAY for segwit. 2018-12-06 23:11:51 +01:00
signature.h bitcoin/signature: implement SIGHASH_SINGLE|SIGHASH_ANYONECANPAY for segwit. 2018-12-06 23:11:51 +01:00
tx.c Makefile: check for direct amount_sat/amount_msat access. 2019-02-21 08:01:37 +00:00
tx.h bitcoin: use amount_sat/amount_msat. 2019-02-21 08:01:37 +00:00
varint.c bitcoin/varint: fix varint reading for multibyte varints. 2016-07-07 11:55:32 +09:30
varint.h varint: new file. 2016-04-12 13:07:03 +09:30

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.