lightningd: don't make htlc_timeout_satoshis/htlc_success_satoshis zero if we support anchors.

It depends on whether we negotiated anchors: just document that this
field doesn't apply for anchors (it becomes zero by the end of this
patch series, which is weird).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-06-26 08:32:21 +09:30
parent 47fd31e8b4
commit e47e51edf2
3 changed files with 7 additions and 14 deletions

View File

@@ -199,11 +199,11 @@
},
"htlc_timeout_satoshis": {
"type": "u64",
"description": "Estimated cost of typical HTLC timeout transaction"
"description": "Estimated cost of typical HTLC timeout transaction (non-anchors)"
},
"htlc_success_satoshis": {
"type": "u64",
"description": "Estimated cost of typical HTLC fulfillment transaction"
"description": "Estimated cost of typical HTLC fulfillment transaction (non-anchors)"
}
}
}