Files
lightning/bitcoin
Rusty Russell d26be323b6 measure_tx_cost: determine the BIP141 cost of a transaction.
BIP141 indicates that the rule for block size has changed: witness
bytes effectively count for 1, and non-witness bytes count for 4, but
the maximum total has increased to 4,000,000.

This means that fee estimates should use the witness cost (divided by
4), not the raw txlen.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-04-24 19:53:35 +09:30
..
2016-04-12 13:07:03 +09:30
2016-04-24 19:33:13 +09:30
2016-04-11 16:34:29 +09:30
2016-04-11 16:42:53 +09:30
2015-06-25 13:48:05 +09:30
2016-04-24 19:33:13 +09:30
2016-04-24 19:33:13 +09:30
2016-04-12 13:07:03 +09:30
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.