From 6c7c5a8a809407931b05c7df2de1d85ee1509664 Mon Sep 17 00:00:00 2001 From: smk762 <35845239+smk762@users.noreply.github.com> Date: Sun, 14 May 2023 16:11:48 +0800 Subject: [PATCH 1/3] add configs for lightning --- coins | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/coins b/coins index a346e3667..13cb50458 100644 --- a/coins +++ b/coins @@ -1,4 +1,57 @@ [ + { + "coin": "BTC-lightning", + "mm2": 1, + "decimals": 11, + "channel_options": { + "announced_channel": false + }, + "our_channels_config": { + "inbound_channels_confirmations": 3, + "max_inbound_in_flight_htlc_percent": 90 + }, + "counterparty_channel_config_limits": { + "outbound_channels_confirmations": 3, + "force_announced_channel_preference": false + }, + "protocol": { + "type": "LIGHTNING", + "protocol_data":{ + "platform": "BTC-segwit", + "network": "mainnet", + "confirmation_targets": { + "background": 12, + "normal": 6, + "high_priority": 1 + } + } + } + }, + { + "coin": "tBTC-lightning", + "mm2": 1, + "decimals": 11, + "our_channels_configs": { + "inbound_channels_confirmations": 3, + "max_inbound_in_flight_htlc_percent": 90, + "their_channel_reserve_sats": 1000 + }, + "counterparty_channel_config_limits": { + "outbound_channels_confirmations": 3 + }, + "protocol": { + "type": "LIGHTNING", + "protocol_data":{ + "platform": "tBTC-segwit", + "network": "testnet", + "confirmation_targets": { + "background": 12, + "normal": 6, + "high_priority": 1 + } + } + } + }, { "coin": "1INCH-AVX20", "name": "1inch_avx20", From ccb2d883d87862b6f8c7f208797ec3b22f308787 Mon Sep 17 00:00:00 2001 From: smk762 <35845239+smk762@users.noreply.github.com> Date: Sun, 14 May 2023 18:07:21 +0800 Subject: [PATCH 2/3] add avg blocktime for BTC/tBTC --- coins | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coins b/coins index 13cb50458..eea67f8a5 100644 --- a/coins +++ b/coins @@ -1968,6 +1968,7 @@ "wiftype": 128, "segwit": true, "bech32_hrp": "bc", + "avg_blocktime": 600, "address_format": { "format": "segwit" }, @@ -10319,6 +10320,7 @@ "wiftype": 239, "segwit": true, "bech32_hrp": "tb", + "avg_blocktime": 600, "address_format": { "format": "segwit" }, From c25e3fee56499739ab81bf7e9bd1225e21374bbc Mon Sep 17 00:00:00 2001 From: smk762 <35845239+smk762@users.noreply.github.com> Date: Sun, 14 May 2023 18:13:13 +0800 Subject: [PATCH 3/3] rm duplicate ave_blocktime for BTC --- coins | 1 - 1 file changed, 1 deletion(-) diff --git a/coins b/coins index eea67f8a5..1b5d890df 100644 --- a/coins +++ b/coins @@ -1968,7 +1968,6 @@ "wiftype": 128, "segwit": true, "bech32_hrp": "bc", - "avg_blocktime": 600, "address_format": { "format": "segwit" },