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",
|
||||
"CLightningFragment": null,
|
||||
"LNDFragment": null,
|
||||
"EclairFragment": null
|
||||
"EclairFragment": null,
|
||||
"PhoenixdFragment": null
|
||||
},
|
||||
{
|
||||
"Crypto": "btc",
|
||||
"CryptoFragment": "bitcoin",
|
||||
"CLightningFragment": "bitcoin-clightning",
|
||||
"LNDFragment": "bitcoin-lnd",
|
||||
"EclairFragment": "bitcoin-eclair"
|
||||
"EclairFragment": "bitcoin-eclair",
|
||||
"PhoenixdFragment": "phoenixd"
|
||||
},
|
||||
{
|
||||
"Crypto": "btx",
|
||||
"CryptoFragment": "bitcore",
|
||||
"CLightningFragment": null,
|
||||
"LNDFragment": null,
|
||||
"EclairFragment": null
|
||||
"EclairFragment": null,
|
||||
"PhoenixdFragment": null
|
||||
},
|
||||
{
|
||||
"Crypto": "btg",
|
||||
"CryptoFragment": "bgold",
|
||||
"CLightningFragment": null,
|
||||
"LNDFragment": "bgold-lnd",
|
||||
"EclairFragment": null
|
||||
"EclairFragment": null,
|
||||
"PhoenixdFragment": null
|
||||
},
|
||||
{
|
||||
"Crypto": "ftc",
|
||||
"CryptoFragment": "feathercoin",
|
||||
"CLightningFragment": null,
|
||||
"LNDFragment": null,
|
||||
"EclairFragment": null
|
||||
"EclairFragment": null,
|
||||
"PhoenixdFragment": null
|
||||
},
|
||||
{
|
||||
"Crypto": "grs",
|
||||
"CryptoFragment": "groestlcoin",
|
||||
"CLightningFragment": "groestlcoin-clightning",
|
||||
"LNDFragment": "groestlcoin-lnd",
|
||||
"EclairFragment": "groestlcoin-eclair"
|
||||
"EclairFragment": "groestlcoin-eclair",
|
||||
"PhoenixdFragment": null
|
||||
},
|
||||
{
|
||||
"Crypto": "via",
|
||||
"CryptoFragment": "viacoin",
|
||||
"CLightningFragment": null,
|
||||
"LNDFragment": null,
|
||||
"EclairFragment": null
|
||||
"EclairFragment": null,
|
||||
"PhoenixdFragment": null
|
||||
},
|
||||
{
|
||||
"Crypto": "dash",
|
||||
"CryptoFragment": "dash",
|
||||
"CLightningFragment": null,
|
||||
"LNDFragment": null,
|
||||
"EclairFragment": null
|
||||
"EclairFragment": null,
|
||||
"PhoenixdFragment": null
|
||||
},
|
||||
{
|
||||
"Crypto": "doge",
|
||||
"CryptoFragment": "dogecoin",
|
||||
"CLightningFragment": null,
|
||||
"LNDFragment": null,
|
||||
"EclairFragment": null
|
||||
"EclairFragment": null,
|
||||
"PhoenixdFragment": null
|
||||
},
|
||||
{
|
||||
"Crypto": "mona",
|
||||
"CryptoFragment": "monacoin",
|
||||
"CLightningFragment": null,
|
||||
"LNDFragment": null,
|
||||
"EclairFragment": null
|
||||
"EclairFragment": null,
|
||||
"PhoenixdFragment": null
|
||||
},
|
||||
{
|
||||
"Crypto": "xmr",
|
||||
"CryptoFragment": "monero",
|
||||
"CLightningFragment": null,
|
||||
"LNDFragment": null,
|
||||
"EclairFragment": null
|
||||
"EclairFragment": null,
|
||||
"PhoenixdFragment": null
|
||||
},
|
||||
{
|
||||
"Crypto": "lbtc",
|
||||
"CryptoFragment": "liquid",
|
||||
"CLightningFragment": 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 LNDFragment { get; set; }
|
||||
public string EclairFragment { get; set; }
|
||||
public string PhoenixdFragment { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -81,6 +81,10 @@ namespace DockerGenerator
|
||||
{
|
||||
fragments.Add(crypto.EclairFragment);
|
||||
}
|
||||
if (composition.SelectedLN == "phoenixd" && crypto.PhoenixdFragment != null)
|
||||
{
|
||||
fragments.Add(crypto.PhoenixdFragment);
|
||||
}
|
||||
}
|
||||
|
||||
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