Module lightning_signer::util::transaction_utils
source · Expand description
Transaction utilities
Constants
- The maximum value of an input or output in milli satoshi
- The minimum value of the dust limit in satoshis - for segwit in general This is also the minimum negotiated dust limit
- The minimum value of the dust limit in satoshis - for p2wsh outputs (such as anchors)
Functions
- Possibly adds a change output to the given transaction, always doing so if there are excess funds available beyond the requested feerate. Assumes at least one input will have a witness (ie spends a segwit output). Returns an Err(()) if the requested feerate cannot be met.