mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
check-bolt: check that comments in code match the specs.
And fix the mistakes! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -8,10 +8,9 @@ uint64_t fee_by_feerate(size_t txsize, uint32_t fee_rate)
|
||||
{
|
||||
/* BOLT #2:
|
||||
*
|
||||
* The fee for a commitment transaction MUST be calculated by
|
||||
* the multiplying this bytescount by the fee rate, dividing
|
||||
* by 1000 and truncating (rounding down) the result to an
|
||||
* even number of satoshis.
|
||||
* The fee for a transaction MUST be calculated by multiplying this
|
||||
* bytecount by the fee rate, dividing by 1000 and truncating
|
||||
* (rounding down) the result to an even number of satoshis.
|
||||
*/
|
||||
return txsize * fee_rate / 2000 * 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user