Add Phoenixd support (#987)
* add phoenixd fragment * define phoenixd as lightning implementation * add btcpayserver section and hardcoded api password * set correct phoenix datadir * remove phoenixd->btcpayserver dependency * use phoenixd 0.6.0 * added phoenix-cli scripts
This commit is contained in:
@@ -4,83 +4,95 @@
|
|||||||
"CryptoFragment": "litecoin",
|
"CryptoFragment": "litecoin",
|
||||||
"CLightningFragment": null,
|
"CLightningFragment": null,
|
||||||
"LNDFragment": null,
|
"LNDFragment": null,
|
||||||
"EclairFragment": null
|
"EclairFragment": null,
|
||||||
|
"PhoenixdFragment": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Crypto": "btc",
|
"Crypto": "btc",
|
||||||
"CryptoFragment": "bitcoin",
|
"CryptoFragment": "bitcoin",
|
||||||
"CLightningFragment": "bitcoin-clightning",
|
"CLightningFragment": "bitcoin-clightning",
|
||||||
"LNDFragment": "bitcoin-lnd",
|
"LNDFragment": "bitcoin-lnd",
|
||||||
"EclairFragment": "bitcoin-eclair"
|
"EclairFragment": "bitcoin-eclair",
|
||||||
|
"PhoenixdFragment": "phoenixd"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Crypto": "btx",
|
"Crypto": "btx",
|
||||||
"CryptoFragment": "bitcore",
|
"CryptoFragment": "bitcore",
|
||||||
"CLightningFragment": null,
|
"CLightningFragment": null,
|
||||||
"LNDFragment": null,
|
"LNDFragment": null,
|
||||||
"EclairFragment": null
|
"EclairFragment": null,
|
||||||
|
"PhoenixdFragment": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Crypto": "btg",
|
"Crypto": "btg",
|
||||||
"CryptoFragment": "bgold",
|
"CryptoFragment": "bgold",
|
||||||
"CLightningFragment": null,
|
"CLightningFragment": null,
|
||||||
"LNDFragment": "bgold-lnd",
|
"LNDFragment": "bgold-lnd",
|
||||||
"EclairFragment": null
|
"EclairFragment": null,
|
||||||
|
"PhoenixdFragment": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Crypto": "ftc",
|
"Crypto": "ftc",
|
||||||
"CryptoFragment": "feathercoin",
|
"CryptoFragment": "feathercoin",
|
||||||
"CLightningFragment": null,
|
"CLightningFragment": null,
|
||||||
"LNDFragment": null,
|
"LNDFragment": null,
|
||||||
"EclairFragment": null
|
"EclairFragment": null,
|
||||||
|
"PhoenixdFragment": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Crypto": "grs",
|
"Crypto": "grs",
|
||||||
"CryptoFragment": "groestlcoin",
|
"CryptoFragment": "groestlcoin",
|
||||||
"CLightningFragment": "groestlcoin-clightning",
|
"CLightningFragment": "groestlcoin-clightning",
|
||||||
"LNDFragment": "groestlcoin-lnd",
|
"LNDFragment": "groestlcoin-lnd",
|
||||||
"EclairFragment": "groestlcoin-eclair"
|
"EclairFragment": "groestlcoin-eclair",
|
||||||
|
"PhoenixdFragment": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Crypto": "via",
|
"Crypto": "via",
|
||||||
"CryptoFragment": "viacoin",
|
"CryptoFragment": "viacoin",
|
||||||
"CLightningFragment": null,
|
"CLightningFragment": null,
|
||||||
"LNDFragment": null,
|
"LNDFragment": null,
|
||||||
"EclairFragment": null
|
"EclairFragment": null,
|
||||||
|
"PhoenixdFragment": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Crypto": "dash",
|
"Crypto": "dash",
|
||||||
"CryptoFragment": "dash",
|
"CryptoFragment": "dash",
|
||||||
"CLightningFragment": null,
|
"CLightningFragment": null,
|
||||||
"LNDFragment": null,
|
"LNDFragment": null,
|
||||||
"EclairFragment": null
|
"EclairFragment": null,
|
||||||
|
"PhoenixdFragment": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Crypto": "doge",
|
"Crypto": "doge",
|
||||||
"CryptoFragment": "dogecoin",
|
"CryptoFragment": "dogecoin",
|
||||||
"CLightningFragment": null,
|
"CLightningFragment": null,
|
||||||
"LNDFragment": null,
|
"LNDFragment": null,
|
||||||
"EclairFragment": null
|
"EclairFragment": null,
|
||||||
|
"PhoenixdFragment": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Crypto": "mona",
|
"Crypto": "mona",
|
||||||
"CryptoFragment": "monacoin",
|
"CryptoFragment": "monacoin",
|
||||||
"CLightningFragment": null,
|
"CLightningFragment": null,
|
||||||
"LNDFragment": null,
|
"LNDFragment": null,
|
||||||
"EclairFragment": null
|
"EclairFragment": null,
|
||||||
|
"PhoenixdFragment": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Crypto": "xmr",
|
"Crypto": "xmr",
|
||||||
"CryptoFragment": "monero",
|
"CryptoFragment": "monero",
|
||||||
"CLightningFragment": null,
|
"CLightningFragment": null,
|
||||||
"LNDFragment": null,
|
"LNDFragment": null,
|
||||||
"EclairFragment": null
|
"EclairFragment": null,
|
||||||
|
"PhoenixdFragment": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Crypto": "lbtc",
|
"Crypto": "lbtc",
|
||||||
"CryptoFragment": "liquid",
|
"CryptoFragment": "liquid",
|
||||||
"CLightningFragment": null,
|
"CLightningFragment": null,
|
||||||
"LNDFragment": null,
|
"LNDFragment": null,
|
||||||
"EclairFragment": null
|
"EclairFragment": null,
|
||||||
|
"PhoenixdFragment": null
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
31
docker-compose-generator/docker-fragments/phoenixd.yml
Normal file
31
docker-compose-generator/docker-fragments/phoenixd.yml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
phoenixd:
|
||||||
|
image: acinq/phoenixd:0.6.0
|
||||||
|
container_name: phoenixd
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
command: [
|
||||||
|
"--chain=${NBITCOIN_NETWORK:-regtest}",
|
||||||
|
"--http-password=ca2e61de4dbab98a0c0ed9a8713ec95b"
|
||||||
|
]
|
||||||
|
expose:
|
||||||
|
- "9740"
|
||||||
|
volumes:
|
||||||
|
- "phoenixd_datadir:/phoenix/.phoenix"
|
||||||
|
|
||||||
|
btcpayserver:
|
||||||
|
environment:
|
||||||
|
BTCPAY_BTCLIGHTNING: "type=phoenixd;server=http://phoenixd:9740;password=ca2e61de4dbab98a0c0ed9a8713ec95b"
|
||||||
|
volumes:
|
||||||
|
- "phoenixd_datadir:/etc/phoenix"
|
||||||
|
links:
|
||||||
|
- phoenixd
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
phoenixd_datadir:
|
||||||
|
|
||||||
|
exclusive:
|
||||||
|
- lightning
|
||||||
@@ -7,5 +7,6 @@
|
|||||||
public string CLightningFragment { get; set; }
|
public string CLightningFragment { get; set; }
|
||||||
public string LNDFragment { get; set; }
|
public string LNDFragment { get; set; }
|
||||||
public string EclairFragment { get; set; }
|
public string EclairFragment { get; set; }
|
||||||
|
public string PhoenixdFragment { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -81,6 +81,10 @@ namespace DockerGenerator
|
|||||||
{
|
{
|
||||||
fragments.Add(crypto.EclairFragment);
|
fragments.Add(crypto.EclairFragment);
|
||||||
}
|
}
|
||||||
|
if (composition.SelectedLN == "phoenixd" && crypto.PhoenixdFragment != null)
|
||||||
|
{
|
||||||
|
fragments.Add(crypto.PhoenixdFragment);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var fragment in composition.AdditionalFragments)
|
foreach (var fragment in composition.AdditionalFragments)
|
||||||
|
|||||||
1
phoenix-cli.ps1
Executable file
1
phoenix-cli.ps1
Executable file
@@ -0,0 +1 @@
|
|||||||
|
docker exec phoenixd /phoenix/phoenix-cli --http-password ca2e61de4dbab98a0c0ed9a8713ec95b "$@" $args
|
||||||
3
phoenix-cli.sh
Executable file
3
phoenix-cli.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker exec phoenixd /phoenix/phoenix-cli --http-password ca2e61de4dbab98a0c0ed9a8713ec95b "$@"
|
||||||
Reference in New Issue
Block a user