Merge pull request #2507 from mempool/nymkappa/feature/cltv
When using clightning, use listchannels.delay as cltv_delta
This commit is contained in:
commit
6d75a2284e
@ -124,7 +124,7 @@ async function buildIncompleteChannel(clChannel: any): Promise<ILightningApi.Cha
|
|||||||
*/
|
*/
|
||||||
function convertPolicy(clChannel: any): ILightningApi.RoutingPolicy {
|
function convertPolicy(clChannel: any): ILightningApi.RoutingPolicy {
|
||||||
return {
|
return {
|
||||||
time_lock_delta: 0, // TODO
|
time_lock_delta: clChannel.delay,
|
||||||
min_htlc: clChannel.htlc_minimum_msat.slice(0, -4),
|
min_htlc: clChannel.htlc_minimum_msat.slice(0, -4),
|
||||||
max_htlc_msat: clChannel.htlc_maximum_msat.slice(0, -4),
|
max_htlc_msat: clChannel.htlc_maximum_msat.slice(0, -4),
|
||||||
fee_base_msat: clChannel.base_fee_millisatoshi,
|
fee_base_msat: clChannel.base_fee_millisatoshi,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user