From bc7acf4a38c1bbced7dbb5c1631ae49e9f843551 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 16 Jul 2018 17:03:42 +0900 Subject: [PATCH] Viacoin support --- .../docker-fragments/viacoin.yml | 33 +++++++++++++++++++ .../src/CryptoDefinition.cs | 5 +++ viacoin-cli.ps1 | 1 + viacoin-cli.sh | 3 ++ 4 files changed, 42 insertions(+) create mode 100644 docker-compose-generator/docker-fragments/viacoin.yml create mode 100755 viacoin-cli.ps1 create mode 100755 viacoin-cli.sh diff --git a/docker-compose-generator/docker-fragments/viacoin.yml b/docker-compose-generator/docker-fragments/viacoin.yml new file mode 100644 index 0000000..ef3daa9 --- /dev/null +++ b/docker-compose-generator/docker-fragments/viacoin.yml @@ -0,0 +1,33 @@ +version: "3" + +services: + viacoind: + restart: unless-stopped + container_name: btcpayserver_viacoind + image: romanornr/docker-viacoin:0.15.1 + environment: + BITCOIN_EXTRA_ARGS: | + rpcport=43782 + ${NBITCOIN_NETWORK:-regtest}=1 + port=39388 + whitelist=0.0.0.0/0 + expose: + - "43782" + - "39388" + volumes: + - "viacoin_datadir:/data" + nbxplorer: + environment: + NBXPLORER_CHAINS: "via" + NBXPLORER_VIARPCURL: http://viacoind:43782/ + NBXPLORER_VIANODEENDPOINT: viacoind:39388 + links: + - viacoind + volumes: + - "viacoin_datadir:/root/.viacoin" + btcpayserver: + environment: + BTCPAY_CHAINS: "via" + BTCPAY_VIAEXPLORERURL: http://nbxplorer:32838/ +volumes: + viacoin_datadir: diff --git a/docker-compose-generator/src/CryptoDefinition.cs b/docker-compose-generator/src/CryptoDefinition.cs index 879c17b..3f3d73f 100644 --- a/docker-compose-generator/src/CryptoDefinition.cs +++ b/docker-compose-generator/src/CryptoDefinition.cs @@ -59,6 +59,11 @@ namespace DockerGenerator { Crypto = "grs", CryptoFragment = "groestlcoin" + }, + new CryptoDefinition() + { + Crypto = "via", + CryptoFragment = "viacoin" } }; } diff --git a/viacoin-cli.ps1 b/viacoin-cli.ps1 new file mode 100755 index 0000000..78b1fad --- /dev/null +++ b/viacoin-cli.ps1 @@ -0,0 +1 @@ +docker exec -ti btcpayserver_viacoind viacoin-cli -datadir="/data" $args diff --git a/viacoin-cli.sh b/viacoin-cli.sh new file mode 100755 index 0000000..695f9f6 --- /dev/null +++ b/viacoin-cli.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker exec -ti btcpayserver_viacoind viacoin-cli -datadir="/data" "$@"