mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 09:04:22 +01:00
lightningd: fix up BOLT references.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
ce4eef6943
commit
e549bc6ecf
@@ -180,9 +180,10 @@ u32 feerate_min(struct lightningd *ld)
|
||||
|
||||
/* BOLT #2:
|
||||
*
|
||||
* Given the variance in fees, and the fact that the transaction may
|
||||
* be spent in the future, it's a good idea for the fee payer to keep
|
||||
* a good margin, say 10x the expected fee requirement */
|
||||
* Given the variance in fees, and the fact that the transaction may be
|
||||
* spent in the future, it's a good idea for the fee payer to keep a good
|
||||
* margin (say 5x the expected fee requirement)
|
||||
*/
|
||||
u32 feerate_max(struct lightningd *ld)
|
||||
{
|
||||
if (ld->config.ignore_fee_limits)
|
||||
@@ -648,9 +649,14 @@ static enum watch_result funding_lockin_cb(struct channel *channel,
|
||||
|
||||
/* BOLT #7:
|
||||
*
|
||||
* If the `open_channel` message had the `announce_channel` bit set,
|
||||
* then both nodes must send the `announcement_signatures` message,
|
||||
* otherwise they MUST NOT.
|
||||
* A node:
|
||||
* - if the `open_channel` message has the `announce_channel` bit set:
|
||||
* - MUST send the `announcement_signatures` message.
|
||||
* - MUST NOT send `announcement_signatures` messages until
|
||||
* `funding_locked` has been sent AND the funding transaction has
|
||||
* at least six confirmations.
|
||||
* - otherwise:
|
||||
* - MUST NOT send the `announcement_signatures` message.
|
||||
*/
|
||||
if (!(channel->channel_flags & CHANNEL_FLAGS_ANNOUNCE_CHANNEL))
|
||||
return DELETE_WATCH;
|
||||
|
||||
Reference in New Issue
Block a user