mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-19 21:14:38 +01:00
feerate: add a 'common_weight' calculation for a tx
The bits of a transaction that are paid by the opener!
This commit is contained in:
@@ -34,6 +34,11 @@
|
||||
*/
|
||||
#define FEERATE_FLOOR 253
|
||||
|
||||
/*
|
||||
* This is the net common weight of a transaction.
|
||||
*/
|
||||
size_t common_weight(size_t num_inputs, size_t num_outputs);
|
||||
|
||||
enum feerate_style {
|
||||
FEERATE_PER_KSIPA,
|
||||
FEERATE_PER_KBYTE
|
||||
|
||||
Reference in New Issue
Block a user