From 1a83d00f3e9232993f14b55264ce1258d603a1b1 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Fri, 20 Jul 2018 15:51:27 +0200 Subject: [PATCH 01/11] Add parameters to coin json to support generation of debian packages --- configs/bitcoin_testnet.json | 48 +++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 9 deletions(-) diff --git a/configs/bitcoin_testnet.json b/configs/bitcoin_testnet.json index 0bb00bb4..41e9cd2a 100644 --- a/configs/bitcoin_testnet.json +++ b/configs/bitcoin_testnet.json @@ -1,12 +1,42 @@ { "coin_name": "Testnet", - "rpcURL": "http://localhost:18030", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:48330", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 + "coin_shortcut": "TEST", + "coin_folder": "bitcoin_testnet", + "ports": { + "backendRPC": 18030, + "backendMessageQueue": 48330, + "blockbookInternal": 19030, + "blockbookPublic": 19130 + }, + "rpc": { + "rpcURLTemplate": "http://localhost:{{.ports.backendRPC}}", + "rpcUser": "rpc", + "rpcPass": "rpc", + "rpcTimeout": 25, + "parse": true, + "messageQueueBindingTemplate": "tcp://127.0.0.1:{{.ports.backendMessageQueue}}", + "mempoolWorkers": 8, + "mempoolSubWorkers": 2, + "blockAddressesToKeep": 300 + }, + "backend": { + "package_name": "backend-bitcoin-testnet", + "system_user": "bitcoin", + "version": "0.16.1", + "binaryURL": "https://bitcoin.org/bin/bitcoin-core-0.16.1/bitcoin-0.16.1-x86_64-linux-gnu.tar.gz", + "verificationType": "asc/sha256/...", + "verificationSourceURL": "https://bitcoin.org/bin/bitcoin-core-0.16.1/SHA256SUMS.asc", + "verificationSignature": "eccf8b61ba0549f6839e586c7dc6fc4bf6d7591ac432aaea8a7df0266b113d27", + "executableTemplate": "{{.env.BackendInstallPath}}/bin/bitcoind -datadir={{.env.BackendDataPath}}/{{.coin.coin_folder}}/backend -conf={{.env.BackendInstallPath}}/{{.coin.coin_folder}}/{{.coin.coin_folder}}.conf -pid=/run/{{.coin.coin_folder}}/{{.coin.coin_folder}}.pid", + "postinstScriptTemplate": "HOME=/opt/coins/data/{{.coin.coin_folder}}/backend /opt/coins/nodes/zcash_testnet/bin/zcash-fetch-params --testnet", + "serviceType": "forking/simple", + "hardeningMemory": true, + "coin_specific_config_template reminder": null + }, + "blockbook": { + "package_name": "blockbook-bitcoin-testnet", + "system_user": "blockbook-bitcoin", + "explorer": "/explorer", + "additional_params": "-resyncindexperiod=30011 -resyncmempoolperiod=2011", + } } \ No newline at end of file From d2a83351f036b731ed19d967bdc76d0c07f0e591 Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Tue, 24 Jul 2018 16:16:09 +0200 Subject: [PATCH 02/11] Added templates for backend package --- build/templates/backend/Makefile | 29 +++ build/templates/backend/config/bitcoin.conf | 30 +++ build/templates/backend/debian/changelog | 7 + build/templates/backend/debian/compat | 3 + build/templates/backend/debian/conffiles | 3 + build/templates/backend/debian/control | 13 + build/templates/backend/debian/dirs | 3 + build/templates/backend/debian/install | 5 + build/templates/backend/debian/logrotate | 11 + build/templates/backend/debian/postinst | 27 ++ build/templates/backend/debian/rules | 16 ++ build/templates/backend/debian/service | 46 ++++ build/templates/generate.go | 257 ++++++++++++++++++++ configs/bcash.json | 14 -- configs/bcash_testnet.json | 14 -- configs/bgold.json | 13 - configs/bitcoin.json | 12 - configs/bitcoin_testnet.json | 42 ---- configs/coins/bcash.json | 55 +++++ configs/coins/bcash_testnet.json | 55 +++++ configs/coins/bgold.json | 249 +++++++++++++++++++ configs/coins/bitcoin.json | 56 +++++ configs/coins/bitcoin_testnet.json | 56 +++++ configs/coins/dash.json | 57 +++++ configs/coins/dash_testnet.json | 57 +++++ configs/coins/dogecoin.json | 57 +++++ configs/coins/ethereum.json | 51 ++++ configs/coins/ethereum_testnet_ropsten.json | 51 ++++ configs/coins/litecoin.json | 56 +++++ configs/coins/litecoin_testnet.json | 56 +++++ configs/coins/namecoin.json | 63 +++++ configs/coins/vertcoin.json | 54 ++++ configs/coins/vertcoin_testnet.json | 54 ++++ configs/coins/zcash.json | 56 +++++ configs/coins/zcash_testnet.json | 56 +++++ configs/dash.json | 13 - configs/dash_testnet.json | 13 - configs/dogecoin.json | 12 - configs/environ.json | 7 + configs/ethereum.json | 5 - configs/ethereum_testnet_ropsten.json | 5 - configs/litecoin.json | 12 - configs/litecoin_testnet.json | 12 - configs/namecoin.json | 12 - configs/vertcoin.json | 12 - configs/vertcoin_testnet.json | 12 - configs/zcash.json | 12 - configs/zcash_testnet.json | 12 - 48 files changed, 1596 insertions(+), 227 deletions(-) create mode 100644 build/templates/backend/Makefile create mode 100644 build/templates/backend/config/bitcoin.conf create mode 100644 build/templates/backend/debian/changelog create mode 100644 build/templates/backend/debian/compat create mode 100644 build/templates/backend/debian/conffiles create mode 100644 build/templates/backend/debian/control create mode 100644 build/templates/backend/debian/dirs create mode 100755 build/templates/backend/debian/install create mode 100644 build/templates/backend/debian/logrotate create mode 100644 build/templates/backend/debian/postinst create mode 100755 build/templates/backend/debian/rules create mode 100644 build/templates/backend/debian/service create mode 100644 build/templates/generate.go delete mode 100644 configs/bcash.json delete mode 100644 configs/bcash_testnet.json delete mode 100644 configs/bgold.json delete mode 100644 configs/bitcoin.json delete mode 100644 configs/bitcoin_testnet.json create mode 100644 configs/coins/bcash.json create mode 100644 configs/coins/bcash_testnet.json create mode 100644 configs/coins/bgold.json create mode 100644 configs/coins/bitcoin.json create mode 100644 configs/coins/bitcoin_testnet.json create mode 100644 configs/coins/dash.json create mode 100644 configs/coins/dash_testnet.json create mode 100644 configs/coins/dogecoin.json create mode 100644 configs/coins/ethereum.json create mode 100644 configs/coins/ethereum_testnet_ropsten.json create mode 100644 configs/coins/litecoin.json create mode 100644 configs/coins/litecoin_testnet.json create mode 100644 configs/coins/namecoin.json create mode 100644 configs/coins/vertcoin.json create mode 100644 configs/coins/vertcoin_testnet.json create mode 100644 configs/coins/zcash.json create mode 100644 configs/coins/zcash_testnet.json delete mode 100644 configs/dash.json delete mode 100644 configs/dash_testnet.json delete mode 100644 configs/dogecoin.json create mode 100644 configs/environ.json delete mode 100644 configs/ethereum.json delete mode 100644 configs/ethereum_testnet_ropsten.json delete mode 100644 configs/litecoin.json delete mode 100644 configs/litecoin_testnet.json delete mode 100644 configs/namecoin.json delete mode 100644 configs/vertcoin.json delete mode 100644 configs/vertcoin_testnet.json delete mode 100644 configs/zcash.json delete mode 100644 configs/zcash_testnet.json diff --git a/build/templates/backend/Makefile b/build/templates/backend/Makefile new file mode 100644 index 00000000..5b9e0bd4 --- /dev/null +++ b/build/templates/backend/Makefile @@ -0,0 +1,29 @@ +{{define "main" -}} +ARCHIVE := $(shell basename {{.Backend.BinaryURL}}) + +all: + wget {{.Backend.BinaryURL}} +{{- if eq .Backend.VerificationType "gpg"}} + wget {{.Backend.VerificationSource}} -O checksum + gpg --verify checksum ${ARCHIVE} +{{- else if eq .Backend.VerificationType "gpg-sha256"}} + wget {{.Backend.VerificationSource}} -O checksum + gpg --verify checksum + sha256sum -c --ignore-missing checksum +{{- else if eq .Backend.VerificationType "sha256"}} + [ "$$(sha256sum ${ARCHIVE} | cut -d ' ' -f 1)" = "{{.Backend.VerificationSource}}" ] +{{- end}} + mkdir backend + {{.Backend.ExtractCommand}} ${ARCHIVE} +{{- if .Backend.ExcludeFiles}} + # generated from exclude_files +{{- range $index, $name := .Backend.ExcludeFiles}} + rm backend/{{$name}} +{{- end}} +{{- end}} + +clean: + rm -rf backend + rm -f ${ARCHIVE} + rm -f checksum +{{end}} diff --git a/build/templates/backend/config/bitcoin.conf b/build/templates/backend/config/bitcoin.conf new file mode 100644 index 00000000..e3877184 --- /dev/null +++ b/build/templates/backend/config/bitcoin.conf @@ -0,0 +1,30 @@ +{{define "main" -}} +daemon=1 +server=1 +{{if .Backend.Mainnet}}mainnet=1{{else}}testnet=1{{end}} +nolisten=1 +rpcuser={{.RPC.RPCUser}} +rpcpassword={{.RPC.RPCPass}} +rpcport={{.Ports.BackendRPC}} +txindex=1 + +zmqpubhashtx={{template "MessageQueueBindingTemplate" .}} +zmqpubhashblock={{template "MessageQueueBindingTemplate" .}} + +rpcworkqueue=1100 +maxmempool=2000 +dbcache=1000 + +{{- if .Backend.AdditionalParams}} +# generated from additional_params +{{- range $name, $value := .Backend.AdditionalParams}} +{{- if eq $name "addnode"}} +{{- range $index, $node := $value}} +addnode={{$node}} +{{- end}} +{{- else}} +{{$name}}={{$value}} +{{- end}} +{{- end}} +{{- end}} +{{end}} diff --git a/build/templates/backend/debian/changelog b/build/templates/backend/debian/changelog new file mode 100644 index 00000000..c467b795 --- /dev/null +++ b/build/templates/backend/debian/changelog @@ -0,0 +1,7 @@ +{{define "main" -}} +backend ({{.Backend.Version}}{{if .Backend.PackageRevision}}-{{.Backend.PackageRevision}}{{end}}) unstable; urgency=medium + + * {{.Coin.Name}} backend daemon version {{.Backend.Version}} + + -- {{.Backend.PackageMaintainer}} <{{.Backend.PackageMaintainerEmail}}> {{.Meta.BuildDatetime}} +{{end}} diff --git a/build/templates/backend/debian/compat b/build/templates/backend/debian/compat new file mode 100644 index 00000000..2bbd4a85 --- /dev/null +++ b/build/templates/backend/debian/compat @@ -0,0 +1,3 @@ +{{define "main" -}} +9 +{{end}} diff --git a/build/templates/backend/debian/conffiles b/build/templates/backend/debian/conffiles new file mode 100644 index 00000000..d1d3266b --- /dev/null +++ b/build/templates/backend/debian/conffiles @@ -0,0 +1,3 @@ +{{define "main" -}} +{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf +{{end}} diff --git a/build/templates/backend/debian/control b/build/templates/backend/debian/control new file mode 100644 index 00000000..7034a8e8 --- /dev/null +++ b/build/templates/backend/debian/control @@ -0,0 +1,13 @@ +{{define "main" -}} +Source: backend +Section: satoshilabs +Priority: optional +Maintainer: {{.Backend.PackageMaintainerEmail}} +Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec +Standards-Version: 3.9.5 + +Package: {{.Backend.PackageName}} +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate +Description: {{.Coin.Name}} backend daemon +{{end}} diff --git a/build/templates/backend/debian/dirs b/build/templates/backend/debian/dirs new file mode 100644 index 00000000..32632c87 --- /dev/null +++ b/build/templates/backend/debian/dirs @@ -0,0 +1,3 @@ +{{define "main" -}} +{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend +{{end}} diff --git a/build/templates/backend/debian/install b/build/templates/backend/debian/install new file mode 100755 index 00000000..e163234c --- /dev/null +++ b/build/templates/backend/debian/install @@ -0,0 +1,5 @@ +{{define "main" -}} +#!/usr/bin/dh-exec +backend/* {{.Env.BackendInstallPath}}/{{.Coin.Alias}} +backend.conf => {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf +{{end}} diff --git a/build/templates/backend/debian/logrotate b/build/templates/backend/debian/logrotate new file mode 100644 index 00000000..a1987fa3 --- /dev/null +++ b/build/templates/backend/debian/logrotate @@ -0,0 +1,11 @@ +{{define "main" -}} +{{template "LogrotateFilesTemplate" .}} +{ + rotate 7 + daily + compress + missingok + notifempty + copytruncate +} +{{end}} diff --git a/build/templates/backend/debian/postinst b/build/templates/backend/debian/postinst new file mode 100644 index 00000000..81e51070 --- /dev/null +++ b/build/templates/backend/debian/postinst @@ -0,0 +1,27 @@ +{{define "main" -}} +#!/bin/bash +set -e + +case "$1" in + + configure) + if ! id -u {{.Backend.SystemUser}} &> /dev/null + then + useradd --system -M -U {{.Backend.SystemUser}} -s /bin/false + fi + + if [ "$(stat -c '%U' {{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend)" != "{{.Backend.SystemUser}}" ] + then + chown -R {{.Backend.SystemUser}}:{{.Backend.SystemUser}} {{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend + fi + +{{if .Backend.PostinstScriptTemplate}} + # generated from postinst_template + {{template "PostinstScriptTemplate" .}} +{{end}} + ;; + +esac + +#DEBHELPER# +{{end}} diff --git a/build/templates/backend/debian/rules b/build/templates/backend/debian/rules new file mode 100755 index 00000000..2b091547 --- /dev/null +++ b/build/templates/backend/debian/rules @@ -0,0 +1,16 @@ +{{define "main" -}} +#!/usr/bin/make -f + +DH_VERBOSE = 1 + +%: + dh $@ --with=systemd + +override_dh_systemd_start: + dh_systemd_start --no-start + +override_dh_installinit: + +override_dh_strip: + dh_strip --no-automatic-dbgsym +{{end}} diff --git a/build/templates/backend/debian/service b/build/templates/backend/debian/service new file mode 100644 index 00000000..cdcb905f --- /dev/null +++ b/build/templates/backend/debian/service @@ -0,0 +1,46 @@ +{{define "main" -}} +[Unit] +Description={{.Coin.Name}} backend daemon +After=network.target + +[Service] +ExecStart={{template "ExecCommandTemplate" .}} +User={{.Backend.SystemUser}} +Restart=on-failure +WorkingDirectory={{.Env.BackendInstallPath}}/{{.Coin.Alias}} +{{if eq .Backend.ServiceType "forking" -}} +Type=forking +RuntimeDirectory={{.Coin.Alias}} +PIDFile=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid +{{else -}} +Type=simple +{{end}} + +# Resource limits +LimitNOFILE=500000 + +# Hardening measures +#################### + +# Provide a private /tmp and /var/tmp. +PrivateTmp=true + +# Mount /usr, /boot/ and /etc read-only for the process. +ProtectSystem=full + +# Disallow the process and all of its children to gain +# new privileges through execve(). +NoNewPrivileges=true + +# Use a new /dev namespace only populated with API pseudo devices +# such as /dev/null, /dev/zero and /dev/random. +PrivateDevices=true + +{{if .Backend.ProtectMemory -}} +# Deny the creation of writable and executable memory mappings. +MemoryDenyWriteExecute=true +{{end}} + +[Install] +WantedBy=multi-user.target +{{end}} diff --git a/build/templates/generate.go b/build/templates/generate.go new file mode 100644 index 00000000..39bd6584 --- /dev/null +++ b/build/templates/generate.go @@ -0,0 +1,257 @@ +package main + +import ( + "encoding/json" + "fmt" + "io" + "os" + "path/filepath" + "text/template" + "time" +) + +const ( + inputDir = "build/templates" + outputDir = "build/pkg-defs" +) + +type Config struct { + Meta struct { + BuildDatetime string + } + Env struct { + Version string `json:"version"` + BackendInstallPath string `json:"backend_install_path"` + BackendDataPath string `json:"backend_data_path"` + BlockbookInstallPath string `json:"blockbook_install_path"` + BlockbookDataPath string `json:"blockbook_data_path"` + } `json:"env"` + Coin struct { + Name string `json:"name"` + Shortcut string `json:"shortcut"` + Label string `json:"label"` + Alias string `json:"alias"` + } `json:"coin"` + Ports struct { + BackendRPC int `json:"backend_rpc"` + BackendMessageQueue int `json:"backend_message_queue"` + BlockbookInternal int `json:"blockbook_internal"` + BlockbookPublic int `json:"blockbook_public"` + } `json:"ports"` + RPC struct { + RPCURLTemplate string `json:"rpc_url_template"` + RPCUser string `json:"rpc_user"` + RPCPass string `json:"rpc_pass"` + RPCTimeout int `json:"rpc_timeout"` + Parse bool `json:"parse"` + MessageQueueBindingTemplate string `json:"message_queue_binding_template"` + Subversion string `json:"subversion"` + AddressFormat string `json:"address_format"` + MempoolWorkers int `json:"mempool_workers"` + MempoolSubWorkers int `json:"mempool_sub_workers"` + BlockAddressesToKeep int `json:"block_addresses_to_keep"` + } `json:"rpc"` + Backend struct { + PackageName string `json:"package_name"` + PackageRevision string `json:"package_revision"` + PackageMaintainer string `json:"package_maintainer"` + PackageMaintainerEmail string `json:"package_maintainer_email"` + SystemUser string `json:"system_user"` + Version string `json:"version"` + BinaryURL string `json:"binary_url"` + VerificationType string `json:"verification_type"` + VerificationSource string `json:"verification_source"` + ExtractCommand string `json:"extract_command"` + ExcludeFiles []string `json:"exclude_files"` + ExecCommandTemplate string `json:"exec_command_template"` + LogrotateFilesTemplate string `json:"logrotate_files_template"` + PostinstScriptTemplate string `json:"postinst_script_template"` + ServiceType string `json:"service_type"` + ProtectMemory bool `json:"protect_memory"` + Mainnet bool `json:"mainnet"` + ConfigFile string `json:"config_file"` + AdditionalParams interface{} `json:"additional_params"` + } `json:"backend"` + Blockbook struct { + PackageName string `json:"package_name"` + SystemUser string `json:"system_user"` + Explorer string `json:"explorer"` + AdditionalParams string `json:"additional_params"` + } `json:"blockbook"` +} + +func (c *Config) ParseTemplate() *template.Template { + templates := map[string]string{ + "RPCURLTemplate": c.RPC.RPCURLTemplate, + "MessageQueueBindingTemplate": c.RPC.MessageQueueBindingTemplate, + "ExecCommandTemplate": c.Backend.ExecCommandTemplate, + "LogrotateFilesTemplate": c.Backend.LogrotateFilesTemplate, + "PostinstScriptTemplate": c.Backend.PostinstScriptTemplate, + } + + t := template.New("") + + for name, def := range templates { + t = template.Must(t.Parse(fmt.Sprintf(`{{define "%s"}}%s{{end}}`, name, def))) + } + + return t +} + +func main() { + if len(os.Args) < 2 { + fmt.Fprintf(os.Stderr, "Usage: %s coin_alias [...]\n", filepath.Base(os.Args[0])) + os.Exit(1) + } + + for _, coin := range os.Args[1:] { + config := loadConfig(coin) + generatePackageDefinitions(config) + } +} + +func loadConfig(coin string) *Config { + dir := "configs" + config := new(Config) + + f, err := os.Open(filepath.Join(dir, "coins", coin+".json")) + if err != nil { + panic(err) + } + d := json.NewDecoder(f) + err = d.Decode(config) + if err != nil { + panic(err) + } + + f, err = os.Open(filepath.Join(dir, "environ.json")) + if err != nil { + panic(err) + } + d = json.NewDecoder(f) + err = d.Decode(&config.Env) + if err != nil { + panic(err) + } + + config.Meta.BuildDatetime = time.Now().Format("Mon, 02 Jan 2006 15:04:05 -0700") + + switch config.Backend.ServiceType { + case "forking": + case "simple": + default: + panic("Invalid service type: " + config.Backend.ServiceType) + } + + switch config.Backend.VerificationType { + case "": + case "gpg": + case "sha256": + case "gpg-sha256": + default: + panic("Invalid verification type: " + config.Backend.VerificationType) + } + + return config +} + +func generatePackageDefinitions(config *Config) { + templ := config.ParseTemplate() + + makeOutputDir(outputDir) + + for _, subdir := range []string{"backend"} { + root := filepath.Join(inputDir, subdir) + + err := os.Mkdir(filepath.Join(outputDir, subdir), 0755) + if err != nil { + panic(err) + } + + err = filepath.Walk(root, func(path string, info os.FileInfo, err error) error { + if err != nil { + return fmt.Errorf("%s: %s", path, err) + } + + if path == root { + return nil + } + if filepath.Base(path)[0] == '.' { + return nil + } + + subpath := path[len(root)-len(subdir):] + + if info.IsDir() { + err = os.Mkdir(filepath.Join(outputDir, subpath), info.Mode()) + if err != nil { + return fmt.Errorf("%s: %s", path, err) + } + return nil + } + + t := template.Must(templ.Clone()) + t = template.Must(t.ParseFiles(path)) + + err = writeTemplate(filepath.Join(outputDir, subpath), info, t, config) + if err != nil { + return fmt.Errorf("%s: %s", path, err) + } + + return nil + }) + if err != nil { + panic(err) + } + } + + writeBackendConfigFile(config) +} + +func makeOutputDir(path string) { + err := os.RemoveAll(path) + if err == nil { + err = os.Mkdir(path, 0755) + } + if err != nil { + panic(err) + } +} + +func writeTemplate(path string, info os.FileInfo, templ *template.Template, config *Config) error { + f, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY, info.Mode()) + if err != nil { + return err + } + defer f.Close() + + err = templ.ExecuteTemplate(f, "main", config) + if err != nil { + return err + } + + return nil +} + +func writeBackendConfigFile(config *Config) { + out, err := os.OpenFile(filepath.Join(outputDir, "backend/backend.conf"), os.O_CREATE|os.O_WRONLY, 0644) + if err != nil { + panic(err) + } + defer out.Close() + + if config.Backend.ConfigFile == "" { + return + } else { + in, err := os.Open(filepath.Join(outputDir, "backend/config", config.Backend.ConfigFile)) + if err != nil { + panic(err) + } + defer in.Close() + + _, err = io.Copy(out, in) + if err != nil { + panic(err) + } + } +} diff --git a/configs/bcash.json b/configs/bcash.json deleted file mode 100644 index 7782bb76..00000000 --- a/configs/bcash.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "coin_name": "Bcash", - "rpcURL": "http://127.0.0.1:8031", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38331", - "subversion": "/Bitcoin ABC:0.17.1/", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300, - "addressFormat": "legacy" -} \ No newline at end of file diff --git a/configs/bcash_testnet.json b/configs/bcash_testnet.json deleted file mode 100644 index ebe41a9d..00000000 --- a/configs/bcash_testnet.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "coin_name": "Bcash Testnet", - "rpcURL": "http://localhost:18031", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:48331", - "subversion": "/Bitcoin ABC:0.17.1/", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300, - "addressFormat": "legacy" -} \ No newline at end of file diff --git a/configs/bgold.json b/configs/bgold.json deleted file mode 100644 index b77bd7e0..00000000 --- a/configs/bgold.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Bgold", - "rpcURL": "http://127.0.0.1:8035", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38335", - "subversion": "/Bitcoin Gold:0.15.1/", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} diff --git a/configs/bitcoin.json b/configs/bitcoin.json deleted file mode 100644 index 97534f9c..00000000 --- a/configs/bitcoin.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "coin_name": "Bitcoin", - "rpcURL": "http://127.0.0.1:8030", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38330", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/bitcoin_testnet.json b/configs/bitcoin_testnet.json deleted file mode 100644 index 41e9cd2a..00000000 --- a/configs/bitcoin_testnet.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "coin_name": "Testnet", - "coin_shortcut": "TEST", - "coin_folder": "bitcoin_testnet", - "ports": { - "backendRPC": 18030, - "backendMessageQueue": 48330, - "blockbookInternal": 19030, - "blockbookPublic": 19130 - }, - "rpc": { - "rpcURLTemplate": "http://localhost:{{.ports.backendRPC}}", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "messageQueueBindingTemplate": "tcp://127.0.0.1:{{.ports.backendMessageQueue}}", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 - }, - "backend": { - "package_name": "backend-bitcoin-testnet", - "system_user": "bitcoin", - "version": "0.16.1", - "binaryURL": "https://bitcoin.org/bin/bitcoin-core-0.16.1/bitcoin-0.16.1-x86_64-linux-gnu.tar.gz", - "verificationType": "asc/sha256/...", - "verificationSourceURL": "https://bitcoin.org/bin/bitcoin-core-0.16.1/SHA256SUMS.asc", - "verificationSignature": "eccf8b61ba0549f6839e586c7dc6fc4bf6d7591ac432aaea8a7df0266b113d27", - "executableTemplate": "{{.env.BackendInstallPath}}/bin/bitcoind -datadir={{.env.BackendDataPath}}/{{.coin.coin_folder}}/backend -conf={{.env.BackendInstallPath}}/{{.coin.coin_folder}}/{{.coin.coin_folder}}.conf -pid=/run/{{.coin.coin_folder}}/{{.coin.coin_folder}}.pid", - "postinstScriptTemplate": "HOME=/opt/coins/data/{{.coin.coin_folder}}/backend /opt/coins/nodes/zcash_testnet/bin/zcash-fetch-params --testnet", - "serviceType": "forking/simple", - "hardeningMemory": true, - "coin_specific_config_template reminder": null - }, - "blockbook": { - "package_name": "blockbook-bitcoin-testnet", - "system_user": "blockbook-bitcoin", - "explorer": "/explorer", - "additional_params": "-resyncindexperiod=30011 -resyncmempoolperiod=2011", - } -} \ No newline at end of file diff --git a/configs/coins/bcash.json b/configs/coins/bcash.json new file mode 100644 index 00000000..c497eb6f --- /dev/null +++ b/configs/coins/bcash.json @@ -0,0 +1,55 @@ +{ + "coin": { + "name": "Bcash", + "shortcut": "BCH", + "label": "Bitcoin Cash", + "alias": "bcash" + }, + "ports": { + "backend_rpc": 8031, + "backend_message_queue": 38331, + "blockbook_internal": 9031, + "blockbook_public": 9131 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "subversion": "/Bitcoin ABC:0.17.1/", + "address_format": "legacy", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-bcash", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "bcash", + "version": "0.17.1", + "binary_url": "https://download.bitcoinabc.org/0.17.1/linux/bitcoin-abc-0.17.1-x86_64-linux-gnu.tar.gz", + "verification_type": "sha256", + "verification_source": "eccf8b61ba0549f6839e586c7dc6fc4bf6d7591ac432aaea8a7df0266b113d27", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/bitcoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/bitcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf" + }, + "blockbook": { + "package_name": "blockbook-bcash", + "system_user": "blockbook-bcash", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/bcash_testnet.json b/configs/coins/bcash_testnet.json new file mode 100644 index 00000000..6adf78ed --- /dev/null +++ b/configs/coins/bcash_testnet.json @@ -0,0 +1,55 @@ +{ + "coin": { + "name": "Bcash Testnet", + "shortcut": "TBCH", + "label": "Bitcoin Cash Testnet", + "alias": "bcash_testnet" + }, + "ports": { + "backend_rpc": 18031, + "backend_message_queue": 48331, + "blockbook_internal": 19031, + "blockbook_public": 19131 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "subversion": "/Bitcoin ABC:0.17.1/", + "address_format": "legacy", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-bcash-testnet", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "bcash", + "version": "0.17.1", + "binary_url": "https://download.bitcoinabc.org/0.17.1/linux/bitcoin-abc-0.17.1-x86_64-linux-gnu.tar.gz", + "verification_type": "sha256", + "verification_source": "eccf8b61ba0549f6839e586c7dc6fc4bf6d7591ac432aaea8a7df0266b113d27", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/bitcoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/bitcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": false, + "config_file": "bitcoin.conf" + }, + "blockbook": { + "package_name": "blockbook-bcash-testnet", + "system_user": "blockbook-bcash", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/bgold.json b/configs/coins/bgold.json new file mode 100644 index 00000000..c49eaea4 --- /dev/null +++ b/configs/coins/bgold.json @@ -0,0 +1,249 @@ +{ + "coin": { + "name": "Bgold", + "shortcut": "BTG", + "label": "Bitcoin Gold", + "alias": "bgold" + }, + "ports": { + "backend_rpc": 18035, + "backend_message_queue": 38335, + "blockbook_internal": 9035, + "blockbook_public": 9135 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "subversion": "/Bitcoin Gold:0.15.1/", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-bgold", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "bgold", + "version": "0.15.1", + "binary_url": "https://github.com/BTCGPU/BTCGPU/releases/download/v0.15.1/bitcoin-gold-0.15.1-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://github.com/BTCGPU/BTCGPU/releases/download/v0.15.1/SHA256SUMS.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/bitcoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/bgoldd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "mempoolexpiry": 72, + "timeout": 768, + "maxconnections": 250, + "addnode": [ + "188.126.0.134", + "45.56.84.44", + "109.201.133.93:8338", + "178.63.11.246:8338", + "188.120.223.153:8338", + "79.137.64.158:8338", + "78.193.221.106:8338", + "139.59.151.13:8338", + "76.16.12.81:8338", + "172.104.157.62:8338", + "43.207.67.209:8338", + "178.63.11.246:8338", + "79.137.64.158:8338", + "78.193.221.106:8338", + "139.59.151.13:8338", + "172.104.157.62:8338", + "178.158.247.119:8338", + "109.201.133.93:8338", + "178.63.11.246:8338", + "139.59.151.13:8338", + "172.104.157.62:8338", + "188.120.223.153:8338", + "178.158.247.119:8338", + "78.193.221.106:8338", + "79.137.64.158:8338", + "76.16.12.81:8338", + "176.12.32.153:8338", + "178.158.247.122:8338", + "81.37.147.185:8338", + "176.12.32.153:8338", + "79.137.64.158:8338", + "178.158.247.122:8338", + "66.70.247.151:8338", + "89.18.27.165:8338", + "178.63.11.246:8338", + "91.222.17.86:8338", + "37.59.50.143:8338", + "91.50.219.221:8338", + "154.16.63.17:8338", + "213.136.76.42:8338", + "176.99.4.140:8338", + "176.9.48.36:8338", + "78.193.221.106:8338", + "34.236.228.99:8338", + "213.154.230.107:8338", + "111.231.66.252:8338", + "188.120.223.153:8338", + "219.89.122.82:8338", + "109.192.23.101:8338", + "98.114.91.222:8338", + "217.66.156.41:8338", + "172.104.157.62:8338", + "114.44.222.73:8338", + "91.224.140.216:8338", + "149.154.71.96:8338", + "107.181.183.242:8338", + "36.78.96.92:8338", + "46.22.7.74:8338", + "89.110.53.186:8338", + "73.243.220.85:8338", + "109.86.137.8:8338", + "77.78.12.89:8338", + "87.92.116.26:8338", + "93.78.122.48:8338", + "35.195.83.0:8338", + "46.147.75.220:8338", + "212.47.236.104:8338", + "95.220.100.230:8338", + "178.70.142.247:8338", + "45.76.136.149:8338", + "94.155.74.206:8338", + "178.70.142.247:8338", + "128.199.228.97:8338", + "77.171.144.207:8338", + "159.89.192.119:8338", + "136.63.238.170:8338", + "31.27.193.105:8338", + "176.107.192.240:8338", + "94.140.241.96:8338", + "66.108.15.5:8338", + "81.177.127.204:8338", + "88.18.69.174:8338", + "178.70.130.94:8338", + "78.98.162.140:8338", + "95.133.156.224:8338", + "46.188.16.96:8338", + "94.247.16.21:8338", + "eunode.pool.gold:8338", + "asianode.pool.gold:8338", + "45.56.84.44:8338", + "176.9.48.36:8338", + "93.57.253.121:8338", + "172.104.157.62:8338", + "176.12.32.153:8338", + "pool.serverpower.net:8338", + "213.154.229.126:8338", + "213.154.230.106:8338", + "213.154.230.107:8338", + "213.154.229.50:8338", + "145.239.0.50:8338", + "107.181.183.242:8338", + "109.201.133.93:8338", + "120.41.190.109:8338", + "120.41.191.224:8338", + "138.68.249.79:8338", + "13.95.223.202:8338", + "145.239.0.50:8338", + "149.56.95.26:8338", + "158.69.103.228:8338", + "159.89.192.119:8338", + "164.132.207.143:8338", + "171.100.141.106:8338", + "172.104.157.62:8338", + "173.176.95.92:8338", + "176.12.32.153:8338", + "178.239.54.250:8338", + "178.63.11.246:8338", + "185.139.2.140:8338", + "188.120.223.153:8338", + "190.46.2.92:8338", + "192.99.194.113:8338", + "199.229.248.218:8338", + "213.154.229.126:8338", + "213.154.229.50:8338", + "213.154.230.106:8338", + "213.154.230.107:8338", + "217.182.199.21", + "35.189.127.200:8338", + "35.195.83.0:8338", + "35.197.197.166:8338", + "35.200.168.155:8338", + "35.203.167.11:8338", + "37.59.50.143:8338", + "45.27.161.195:8338", + "45.32.234.160:8338", + "45.56.84.44:8338", + "46.188.16.96:8338", + "46.251.19.171:8338", + "5.157.119.109:8338", + "52.28.162.48:8338", + "54.153.140.202:8338", + "54.68.81.2:83388338", + "62.195.190.190:8338", + "62.216.5.136:8338", + "65.110.125.175:8338", + "67.68.226.130:8338", + "73.243.220.85:8338", + "77.78.12.89:8338", + "78.193.221.106:8338", + "78.98.162.140:8338", + "79.137.64.158:8338", + "84.144.177.238:8338", + "87.92.116.26:8338", + "89.115.139.117:8338", + "89.18.27.165:8338", + "91.50.219.221:8338", + "93.88.74.26", + "93.88.74.26:8338", + "94.155.74.206:8338", + "95.154.201.132:8338", + "98.29.248.131:8338", + "u2.my.to:8338", + "[2001:470:b:ce:dc70:83ff:fe7a:1e74]:8338", + "2001:7b8:61d:1:250:56ff:fe90:c89f:8338", + "2001:7b8:63a:1002:213:154:230:106:8338", + "2001:7b8:63a:1002:213:154:230:107:8338", + "45.56.84.44", + "109.201.133.93:8338", + "120.41.191.224:30607", + "138.68.249.79:50992", + "138.68.249.79:51314", + "172.104.157.62", + "178.63.11.246:8338", + "185.139.2.140:8338", + "199.229.248.218:28830", + "35.189.127.200:41220", + "35.189.127.200:48244", + "35.195.83.0:35172", + "35.195.83.0:35576", + "35.195.83.0:35798", + "35.197.197.166:32794", + "35.197.197.166:33112", + "35.197.197.166:33332", + "35.203.167.11:52158", + "37.59.50.143:35254", + "45.27.161.195:33852", + "45.27.161.195:36738", + "45.27.161.195:58628" + ] + } + }, + "blockbook": { + "package_name": "blockbook-bgold", + "system_user": "blockbook-bgold", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/bitcoin.json b/configs/coins/bitcoin.json new file mode 100644 index 00000000..8f9bca85 --- /dev/null +++ b/configs/coins/bitcoin.json @@ -0,0 +1,56 @@ +{ + "coin": { + "name": "Bitcoin", + "shortcut": "BTC", + "label": "Bitcoin", + "alias": "bitcoin" + }, + "ports": { + "backend_rpc": 8030, + "backend_message_queue": 38330, + "blockbook_internal": 9030, + "blockbook_public": 9130 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-bitcoin", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "bitcoin", + "version": "0.16.1", + "binary_url": "https://bitcoin.org/bin/bitcoin-core-0.16.1/bitcoin-0.16.1-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://bitcoin.org/bin/bitcoin-core-0.16.1/SHA256SUMS.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/bitcoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/bitcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "deprecatedrpc": "estimatefee" + } + }, + "blockbook": { + "package_name": "blockbook-bitcoin", + "system_user": "blockbook-bitcoin", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/bitcoin_testnet.json b/configs/coins/bitcoin_testnet.json new file mode 100644 index 00000000..a57d5744 --- /dev/null +++ b/configs/coins/bitcoin_testnet.json @@ -0,0 +1,56 @@ +{ + "coin": { + "name": "Testnet", + "shortcut": "TEST", + "label": "Testnet", + "alias": "bitcoin_testnet" + }, + "ports": { + "backend_rpc": 18030, + "backend_message_queue": 48330, + "blockbook_internal": 19030, + "blockbook_public": 19130 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-bitcoin-testnet", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "bitcoin", + "version": "0.16.1", + "binary_url": "https://bitcoin.org/bin/bitcoin-core-0.16.1/bitcoin-0.16.1-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://bitcoin.org/bin/bitcoin-core-0.16.1/SHA256SUMS.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/bitcoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/bitcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": false, + "config_file": "bitcoin.conf", + "additional_params": { + "deprecatedrpc": "estimatefee" + } + }, + "blockbook": { + "package_name": "blockbook-bitcoin-testnet", + "system_user": "blockbook-bitcoin", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/dash.json b/configs/coins/dash.json new file mode 100644 index 00000000..715ff8f3 --- /dev/null +++ b/configs/coins/dash.json @@ -0,0 +1,57 @@ +{ + "coin": { + "name": "Dash", + "shortcut": "DASH", + "label": "Dash", + "alias": "dash" + }, + "ports": { + "backend_rpc": 8033, + "backend_message_queue": 38333, + "blockbook_internal": 9033, + "blockbook_public": 9133 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "subversion": "/Dash Core:0.12.3.2/", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-dash", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "dash", + "version": "0.12.3", + "binary_url": "https://github.com/dashpay/dash/releases/download/v0.12.3.2/dashcore-0.12.3.2-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://github.com/dashpay/dash/releases/download/v0.12.3.2/SHA256SUMS.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/dash-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/dashd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "mempoolexpiry": 72 + } + }, + "blockbook": { + "package_name": "blockbook-dash", + "system_user": "blockbook-dash", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/dash_testnet.json b/configs/coins/dash_testnet.json new file mode 100644 index 00000000..bc2a0f5f --- /dev/null +++ b/configs/coins/dash_testnet.json @@ -0,0 +1,57 @@ +{ + "coin": { + "name": "Dash Testnet", + "shortcut": "tDASH", + "label": "Dash Testnet", + "alias": "dash_testnet" + }, + "ports": { + "backend_rpc": 18033, + "backend_message_queue": 48333, + "blockbook_internal": 19033, + "blockbook_public": 19133 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "subversion": "/Dash Core:0.12.3.2/", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-dash-testnet", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "dash", + "version": "0.12.3", + "binary_url": "https://github.com/dashpay/dash/releases/download/v0.12.3.2/dashcore-0.12.3.2-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://github.com/dashpay/dash/releases/download/v0.12.3.2/SHA256SUMS.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/dash-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/dashd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": false, + "config_file": "bitcoin.conf", + "additional_params": { + "mempoolexpiry": 72 + } + }, + "blockbook": { + "package_name": "blockbook-dash-testnet", + "system_user": "blockbook-dash", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/dogecoin.json b/configs/coins/dogecoin.json new file mode 100644 index 00000000..c087a16c --- /dev/null +++ b/configs/coins/dogecoin.json @@ -0,0 +1,57 @@ +{ + "coin": { + "name": "Dogecoin", + "shortcut": "DOGE", + "label": "Dogecoin", + "alias": "dogecoin" + }, + "ports": { + "backend_rpc": 8038, + "backend_message_queue": 38338, + "blockbook_internal": 9038, + "blockbook_public": 9138 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-dogecoin", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "dogecoin", + "version": "1.10.0", + "binary_url": "https://github.com/dogecoin/dogecoin/releases/download/v1.10.0/dogecoin-1.10.0-linux64.tar.gz", + "verification_type": "sha256", + "verification_source": "2e5b61842695d74ebcd30f21014cf74b6265f0f7756e9f140f031259bb3cd656", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/dogecoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/dogecoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": false, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1", + "rpcthreads": 32 + } + }, + "blockbook": { + "package_name": "blockbook-dogecoin", + "system_user": "blockbook-dogecoin", + "explorer": "/explorer", + "additional_params": "-resyncindexperiod=30011 -resyncmempoolperiod=2011" + } +} diff --git a/configs/coins/ethereum.json b/configs/coins/ethereum.json new file mode 100644 index 00000000..91e0eb3d --- /dev/null +++ b/configs/coins/ethereum.json @@ -0,0 +1,51 @@ +{ + "coin": { + "name": "Ethereum", + "shortcut": "ETH", + "label": "Ethereum", + "alias": "ethereum" + }, + "ports": { + "backend_rpc": 8036, + "backend_message_queue": 0, + "blockbook_internal": 9036, + "blockbook_public": 9136 + }, + "rpc": { + "rpc_url_template": "ws://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-ethereum", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "ethereum", + "version": "1.8.10-eae63c51", + "binary_url": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.10-eae63c51.tar.gz", + "verification_type": "gpg", + "verification_source": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.10-eae63c51.tar.gz.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [], + "exec_command_template": "/bin/sh -c '{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/geth --ipcdisable --syncmode full --cache 1024 --nat none --datadir {{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend --port 38336 --ws --wsaddr 0.0.0.0 --wsport {{.Ports.BackendRPC}} --wsorigins \"*\" --rpc --rpcport 8136 -rpcaddr 0.0.0.0 --rpccorsdomain \"*\" --rpcvhosts \"*\" 2>>{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log'", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log", + "postinst_script_template": "", + "service_type": "simple", + "protect_memory": true, + "mainnet": true, + "config_file": "" + }, + "blockbook": { + "package_name": "blockbook-ethereum", + "system_user": "blockbook-ethereum", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/ethereum_testnet_ropsten.json b/configs/coins/ethereum_testnet_ropsten.json new file mode 100644 index 00000000..c6610d1b --- /dev/null +++ b/configs/coins/ethereum_testnet_ropsten.json @@ -0,0 +1,51 @@ +{ + "coin": { + "name": "Ethereum Testnet Ropsten", + "shortcut": "tETH", + "label": "Ethereum Testnet Ropsten", + "alias": "ethereum_testnet_ropsten" + }, + "ports": { + "backend_rpc": 18036, + "backend_message_queue": 0, + "blockbook_internal": 19036, + "blockbook_public": 19136 + }, + "rpc": { + "rpc_url_template": "ws://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-ethereum-testnet-ropsten", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "ethereum", + "version": "1.8.10-eae63c51", + "binary_url": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.10-eae63c51.tar.gz", + "verification_type": "gpg", + "verification_source": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.10-eae63c51.tar.gz.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [], + "exec_command_template": "/bin/sh -c '{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/geth --testnet --ipcdisable --cache 1024 --nat none --datadir {{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend --port 48336 --ws --wsaddr 0.0.0.0 --wsport {{.Ports.BackendRPC}} --wsorigins \"*\" 2>>{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log'", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log", + "postinst_script_template": "", + "service_type": "simple", + "protect_memory": true, + "mainnet": false, + "config_file": "" + }, + "blockbook": { + "package_name": "blockbook-ethereum-testnet-ropsten", + "system_user": "blockbook-ethereum", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/litecoin.json b/configs/coins/litecoin.json new file mode 100644 index 00000000..ab29ea7a --- /dev/null +++ b/configs/coins/litecoin.json @@ -0,0 +1,56 @@ +{ + "coin": { + "name": "Litecoin", + "shortcut": "LTC", + "label": "Litecoin", + "alias": "litecoin" + }, + "ports": { + "backend_rpc": 8034, + "backend_message_queue": 38334, + "blockbook_internal": 9034, + "blockbook_public": 9134 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-litecoin", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "litecoin", + "version": "0.16.0", + "binary_url": "https://download.litecoin.org/litecoin-0.16.0/linux/litecoin-0.16.0-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://download.litecoin.org/litecoin-0.16.0/linux/litecoin-0.16.0-linux-signatures.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/litecoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/litecoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1" + } + }, + "blockbook": { + "package_name": "blockbook-litecoin", + "system_user": "blockbook-litecoin", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/litecoin_testnet.json b/configs/coins/litecoin_testnet.json new file mode 100644 index 00000000..741eca7c --- /dev/null +++ b/configs/coins/litecoin_testnet.json @@ -0,0 +1,56 @@ +{ + "coin": { + "name": "Litecoin Testnet", + "shortcut": "TLTC", + "label": "Litecoin Testnet", + "alias": "litecoin_testnet" + }, + "ports": { + "backend_rpc": 18034, + "backend_message_queue": 48334, + "blockbook_internal": 19034, + "blockbook_public": 19134 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-litecoin-testnet", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "litecoin", + "version": "0.16.0", + "binary_url": "https://download.litecoin.org/litecoin-0.16.0/linux/litecoin-0.16.0-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://download.litecoin.org/litecoin-0.16.0/linux/litecoin-0.16.0-linux-signatures.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/litecoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/litecoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet4/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": false, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1" + } + }, + "blockbook": { + "package_name": "blockbook-litecoin-testnet", + "system_user": "blockbook-litecoin", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/namecoin.json b/configs/coins/namecoin.json new file mode 100644 index 00000000..60585299 --- /dev/null +++ b/configs/coins/namecoin.json @@ -0,0 +1,63 @@ +{ + "coin": { + "name": "Namecoin", + "shortcut": "NMC", + "label": "Namecoin", + "alias": "namecoin" + }, + "ports": { + "backend_rpc": 8039, + "backend_message_queue": 38339, + "blockbook_internal": 9039, + "blockbook_public": 9139 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-namecoin", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "namecoin", + "version": "0.13.99", + "binary_url": "https://namecoin.org/files/namecoin-core-0.13.99-name-tab-beta1-notreproduced/namecoin-0.13.99-x86_64-linux-gnu.tar.gz", + "verification_type": "sha256", + "verification_source": "294b1106001d6ea2b9d9ee6a655021ef207a24e8f1dec8efd5899728b3849129", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/namecoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/namecoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1", + "upnp": 0, + "discover": 0, + "whitelistrelay": 1, + "listenonion": 0, + "addnode": [ + "45.24.110.177:8334" + ] + } + }, + "blockbook": { + "package_name": "blockbook-namecoin", + "system_user": "blockbook-namecoin", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/vertcoin.json b/configs/coins/vertcoin.json new file mode 100644 index 00000000..0ef7589e --- /dev/null +++ b/configs/coins/vertcoin.json @@ -0,0 +1,54 @@ +{ + "coin": { + "name": "Vertcoin", + "shortcut": "VTC", + "label": "Vertcoin", + "alias": "vertcoin" + }, + "ports": { + "backend_rpc": 8040, + "backend_message_queue": 38340, + "blockbook_internal": 9040, + "blockbook_public": 9140 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-vertcoin", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "vertcoin", + "version": "0.13.2", + "binary_url": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.13.2/vertcoind-v0.13.2-linux-amd64.zip", + "verification_type": "gpg", + "verification_source": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.13.2/vertcoind-v0.13.2-linux-amd64.zip.sig", + "extract_command": "unzip -d backend", + "exclude_files": [], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/vertcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1" + } + }, + "blockbook": { + "package_name": "blockbook-vertcoin", + "system_user": "blockbook-vertcoin", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/vertcoin_testnet.json b/configs/coins/vertcoin_testnet.json new file mode 100644 index 00000000..6a2af857 --- /dev/null +++ b/configs/coins/vertcoin_testnet.json @@ -0,0 +1,54 @@ +{ + "coin": { + "name": "Vertcoin Testnet", + "shortcut": "TVTC", + "label": "Vertcoin Testnet", + "alias": "vertcoin_testnet" + }, + "ports": { + "backend_rpc": 18040, + "backend_message_queue": 48340, + "blockbook_internal": 19040, + "blockbook_public": 19140 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-vertcoin-testnet", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "vertcoin", + "version": "0.13.2", + "binary_url": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.13.2/vertcoind-v0.13.2-linux-amd64.zip", + "verification_type": "gpg", + "verification_source": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.13.2/vertcoind-v0.13.2-linux-amd64.zip.sig", + "extract_command": "unzip -d backend", + "exclude_files": [], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/vertcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", + "postinst_script_template": "", + "service_type": "forking", + "protect_memory": true, + "mainnet": false, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1" + } + }, + "blockbook": { + "package_name": "blockbook-vertcoin-testnet", + "system_user": "blockbook-vertcoin", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/zcash.json b/configs/coins/zcash.json new file mode 100644 index 00000000..0933fd44 --- /dev/null +++ b/configs/coins/zcash.json @@ -0,0 +1,56 @@ +{ + "coin": { + "name": "Zcash", + "shortcut": "ZEC", + "label": "Zcash", + "alias": "zcash" + }, + "ports": { + "backend_rpc": 8032, + "backend_message_queue": 38332, + "blockbook_internal": 9032, + "blockbook_public": 9132 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "mempool_workers": 4, + "mempool_sub_workers": 8, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-zcash", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "zcash", + "version": "1.1.1", + "binary_url": "https://z.cash/downloads/zcash-1.1.1-linux64.tar.gz", + "verification_type": "gpg", + "verification_source": "https://z.cash/downloads/zcash-1.1.1-linux64.tar.gz.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/zcashd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/zcash-fetch-params", + "service_type": "forking", + "protect_memory": false, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "addnode": [ + "mainnet.z.cash" + ] + } + }, + "blockbook": { + "package_name": "blockbook-zcash", + "system_user": "blockbook-zcash", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/coins/zcash_testnet.json b/configs/coins/zcash_testnet.json new file mode 100644 index 00000000..f4a2dc10 --- /dev/null +++ b/configs/coins/zcash_testnet.json @@ -0,0 +1,56 @@ +{ + "coin": { + "name": "Zcash Testnet", + "shortcut": "TAZ", + "label": "Zcash Testnet", + "alias": "zcash_testnet" + }, + "ports": { + "backend_rpc": 18032, + "backend_message_queue": 48332, + "blockbook_internal": 19032, + "blockbook_public": 19132 + }, + "rpc": { + "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "parse": true, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", + "mempool_workers": 4, + "mempool_sub_workers": 8, + "block_addresses_to_keep": 300 + }, + "backend": { + "package_name": "backend-zcash-testnet", + "package_revision": "satoshilabs-1", + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com", + "system_user": "zcash", + "version": "1.1.1", + "binary_url": "https://z.cash/downloads/zcash-1.1.1-linux64.tar.gz", + "verification_type": "gpg", + "verification_source": "https://z.cash/downloads/zcash-1.1.1-linux64.tar.gz.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/zcashd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", + "postinst_script_template": "HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/zcash-fetch-params --testnet", + "service_type": "forking", + "protect_memory": false, + "mainnet": false, + "config_file": "bitcoin.conf", + "additional_params": { + "addnode": [ + "testnet.z.cash" + ] + } + }, + "blockbook": { + "package_name": "blockbook-zcash-testnet", + "system_user": "blockbook-zcash", + "explorer": "/explorer", + "additional_params": "" + } +} diff --git a/configs/dash.json b/configs/dash.json deleted file mode 100644 index 8ecf4818..00000000 --- a/configs/dash.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Dash", - "rpcURL": "http://127.0.0.1:8033", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38333", - "subversion": "/Dash Core:0.12.2.3/", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} diff --git a/configs/dash_testnet.json b/configs/dash_testnet.json deleted file mode 100644 index 7a613a4d..00000000 --- a/configs/dash_testnet.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Dash Testnet", - "rpcURL": "http://localhost:18033", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:48333", - "subversion": "/Dash Core:0.12.2.3/", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} diff --git a/configs/dogecoin.json b/configs/dogecoin.json deleted file mode 100644 index c16fdc3a..00000000 --- a/configs/dogecoin.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "coin_name": "Dogecoin", - "rpcURL": "http://127.0.0.1:8038", - "rpcUser": "rpc", - "rpcPass": "rpcp", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38338", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} diff --git a/configs/environ.json b/configs/environ.json new file mode 100644 index 00000000..1f293514 --- /dev/null +++ b/configs/environ.json @@ -0,0 +1,7 @@ +{ + "version": "0.0.6", + "backend_install_path": "/opt/coins/nodes", + "backend_data_path": "/opt/coins/data", + "blockbook_install_path": "/opt/coins/blockbook", + "blockbook_data_path": "/opt/coins/data" +} diff --git a/configs/ethereum.json b/configs/ethereum.json deleted file mode 100644 index 1a3ec103..00000000 --- a/configs/ethereum.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "coin_name": "Ethereum", - "rpcURL": "ws://localhost:8036", - "rpcTimeout": 25 -} diff --git a/configs/ethereum_testnet_ropsten.json b/configs/ethereum_testnet_ropsten.json deleted file mode 100644 index d89fc039..00000000 --- a/configs/ethereum_testnet_ropsten.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "coin_name": "Ethereum Testnet Ropsten", - "rpcURL": "ws://localhost:18036", - "rpcTimeout": 25 -} diff --git a/configs/litecoin.json b/configs/litecoin.json deleted file mode 100644 index 2a351101..00000000 --- a/configs/litecoin.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "coin_name": "Litecoin", - "rpcURL": "http://localhost:8034", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://localhost:38334", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} diff --git a/configs/litecoin_testnet.json b/configs/litecoin_testnet.json deleted file mode 100644 index 67232ebb..00000000 --- a/configs/litecoin_testnet.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "coin_name": "Litecoin Testnet", - "rpcURL": "http://localhost:18034", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://localhost:48334", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} diff --git a/configs/namecoin.json b/configs/namecoin.json deleted file mode 100644 index 8fadb00d..00000000 --- a/configs/namecoin.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "coin_name": "Namecoin", - "rpcURL": "http://127.0.0.1:8039", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38339", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} diff --git a/configs/vertcoin.json b/configs/vertcoin.json deleted file mode 100644 index b1dec1d5..00000000 --- a/configs/vertcoin.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "coin_name": "Vertcoin", - "rpcURL": "http://localhost:8040", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://localhost:38340", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} diff --git a/configs/vertcoin_testnet.json b/configs/vertcoin_testnet.json deleted file mode 100644 index 45bead82..00000000 --- a/configs/vertcoin_testnet.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "coin_name": "Vertcoin Testnet", - "rpcURL": "http://localhost:18040", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://localhost:48340", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} diff --git a/configs/zcash.json b/configs/zcash.json deleted file mode 100644 index e9f0126f..00000000 --- a/configs/zcash.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "coin_name": "Zcash", - "rpcURL": "http://127.0.0.1:8032", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38332", - "mempoolWorkers": 4, - "mempoolSubWorkers": 8, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/zcash_testnet.json b/configs/zcash_testnet.json deleted file mode 100644 index 6196bb76..00000000 --- a/configs/zcash_testnet.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "coin_name": "Zcash Testnet", - "rpcURL": "http://127.0.0.1:18032", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:48332", - "mempoolWorkers": 4, - "mempoolSubWorkers": 8, - "blockAddressesToKeep": 300 -} \ No newline at end of file From a573922bc126c038020ec6a0ef495c5cd310c231 Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Thu, 26 Jul 2018 12:00:38 +0200 Subject: [PATCH 03/11] Added templates for blockbook package --- build/templates/backend/config/bitcoin.conf | 8 ++-- build/templates/backend/debian/changelog | 2 +- build/templates/backend/debian/control | 4 +- build/templates/backend/debian/logrotate | 2 +- build/templates/backend/debian/postinst | 2 +- build/templates/backend/debian/service | 2 +- build/templates/blockbook/blockchaincfg.json | 15 ++++++++ build/templates/blockbook/debian/changelog | 7 ++++ build/templates/blockbook/debian/compat | 3 ++ build/templates/blockbook/debian/conffiles | 3 ++ build/templates/blockbook/debian/control | 13 +++++++ build/templates/blockbook/debian/cron.daily | 4 ++ build/templates/blockbook/debian/dirs | 4 ++ build/templates/blockbook/debian/install | 9 +++++ build/templates/blockbook/debian/links | 4 ++ build/templates/blockbook/debian/postinst | 25 +++++++++++++ build/templates/blockbook/debian/rules | 15 ++++++++ build/templates/blockbook/debian/service | 39 ++++++++++++++++++++ build/templates/blockbook/logrotate.sh | 13 +++++++ build/templates/generate.go | 32 +++++++++------- configs/coins/bcash.json | 10 +++-- configs/coins/bcash_testnet.json | 10 +++-- configs/coins/bgold.json | 10 +++-- configs/coins/bitcoin.json | 10 +++-- configs/coins/bitcoin_testnet.json | 10 +++-- configs/coins/dash.json | 10 +++-- configs/coins/dash_testnet.json | 10 +++-- configs/coins/dogecoin.json | 10 +++-- configs/coins/ethereum.json | 10 +++-- configs/coins/ethereum_testnet_ropsten.json | 10 +++-- configs/coins/litecoin.json | 10 +++-- configs/coins/litecoin_testnet.json | 10 +++-- configs/coins/namecoin.json | 10 +++-- configs/coins/vertcoin.json | 10 +++-- configs/coins/vertcoin_testnet.json | 10 +++-- configs/coins/zcash.json | 10 +++-- configs/coins/zcash_testnet.json | 10 +++-- 37 files changed, 301 insertions(+), 75 deletions(-) create mode 100644 build/templates/blockbook/blockchaincfg.json create mode 100644 build/templates/blockbook/debian/changelog create mode 100644 build/templates/blockbook/debian/compat create mode 100644 build/templates/blockbook/debian/conffiles create mode 100644 build/templates/blockbook/debian/control create mode 100644 build/templates/blockbook/debian/cron.daily create mode 100644 build/templates/blockbook/debian/dirs create mode 100644 build/templates/blockbook/debian/install create mode 100644 build/templates/blockbook/debian/links create mode 100644 build/templates/blockbook/debian/postinst create mode 100755 build/templates/blockbook/debian/rules create mode 100644 build/templates/blockbook/debian/service create mode 100755 build/templates/blockbook/logrotate.sh diff --git a/build/templates/backend/config/bitcoin.conf b/build/templates/backend/config/bitcoin.conf index e3877184..dbf27d1b 100644 --- a/build/templates/backend/config/bitcoin.conf +++ b/build/templates/backend/config/bitcoin.conf @@ -3,13 +3,13 @@ daemon=1 server=1 {{if .Backend.Mainnet}}mainnet=1{{else}}testnet=1{{end}} nolisten=1 -rpcuser={{.RPC.RPCUser}} -rpcpassword={{.RPC.RPCPass}} +rpcuser={{.BlockChain.RPCUser}} +rpcpassword={{.BlockChain.RPCPass}} rpcport={{.Ports.BackendRPC}} txindex=1 -zmqpubhashtx={{template "MessageQueueBindingTemplate" .}} -zmqpubhashblock={{template "MessageQueueBindingTemplate" .}} +zmqpubhashtx={{template "BlockChain.MessageQueueBindingTemplate" .}} +zmqpubhashblock={{template "BlockChain.MessageQueueBindingTemplate" .}} rpcworkqueue=1100 maxmempool=2000 diff --git a/build/templates/backend/debian/changelog b/build/templates/backend/debian/changelog index c467b795..a9b83a77 100644 --- a/build/templates/backend/debian/changelog +++ b/build/templates/backend/debian/changelog @@ -3,5 +3,5 @@ backend ({{.Backend.Version}}{{if .Backend.PackageRevision}}-{{.Backend.PackageR * {{.Coin.Name}} backend daemon version {{.Backend.Version}} - -- {{.Backend.PackageMaintainer}} <{{.Backend.PackageMaintainerEmail}}> {{.Meta.BuildDatetime}} + -- {{.Meta.PackageMaintainer}} <{{.Meta.PackageMaintainerEmail}}> {{.Meta.BuildDatetime}} {{end}} diff --git a/build/templates/backend/debian/control b/build/templates/backend/debian/control index 7034a8e8..049d4000 100644 --- a/build/templates/backend/debian/control +++ b/build/templates/backend/debian/control @@ -2,12 +2,12 @@ Source: backend Section: satoshilabs Priority: optional -Maintainer: {{.Backend.PackageMaintainerEmail}} +Maintainer: {{.Meta.PackageMaintainerEmail}} Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec Standards-Version: 3.9.5 Package: {{.Backend.PackageName}} Architecture: amd64 Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: {{.Coin.Name}} backend daemon +Description: Satoshilabs packaged {{.Coin.Name}} server {{end}} diff --git a/build/templates/backend/debian/logrotate b/build/templates/backend/debian/logrotate index a1987fa3..26d003a9 100644 --- a/build/templates/backend/debian/logrotate +++ b/build/templates/backend/debian/logrotate @@ -1,5 +1,5 @@ {{define "main" -}} -{{template "LogrotateFilesTemplate" .}} +{{template "Backend.LogrotateFilesTemplate" .}} { rotate 7 daily diff --git a/build/templates/backend/debian/postinst b/build/templates/backend/debian/postinst index 81e51070..e74a57b5 100644 --- a/build/templates/backend/debian/postinst +++ b/build/templates/backend/debian/postinst @@ -17,7 +17,7 @@ case "$1" in {{if .Backend.PostinstScriptTemplate}} # generated from postinst_template - {{template "PostinstScriptTemplate" .}} + {{template "Backend.PostinstScriptTemplate" .}} {{end}} ;; diff --git a/build/templates/backend/debian/service b/build/templates/backend/debian/service index cdcb905f..ec6deed3 100644 --- a/build/templates/backend/debian/service +++ b/build/templates/backend/debian/service @@ -4,7 +4,7 @@ Description={{.Coin.Name}} backend daemon After=network.target [Service] -ExecStart={{template "ExecCommandTemplate" .}} +ExecStart={{template "Backend.ExecCommandTemplate" .}} User={{.Backend.SystemUser}} Restart=on-failure WorkingDirectory={{.Env.BackendInstallPath}}/{{.Coin.Alias}} diff --git a/build/templates/blockbook/blockchaincfg.json b/build/templates/blockbook/blockchaincfg.json new file mode 100644 index 00000000..6e7a21ce --- /dev/null +++ b/build/templates/blockbook/blockchaincfg.json @@ -0,0 +1,15 @@ +{{define "main" -}} +{ + "rpc_url": "{{template "BlockChain.RPCURLTemplate" .}}", + "rpc_user": "{{.BlockChain.RPCUser}}", + "rpc_pass": "{{.BlockChain.RPCPass}}", + "rpc_timeout": {{.BlockChain.RPCTimeout}}, + "parse": {{.BlockChain.Parse}}, + "message_queue_binding": "{{template "BlockChain.MessageQueueBindingTemplate" .}}", + "subversion": "{{.BlockChain.Subversion}}", + "address_format": "{{.BlockChain.AddressFormat}}", + "mempool_workers": {{.BlockChain.MempoolWorkers}}, + "mempool_sub_workers": {{.BlockChain.MempoolSubWorkers}}, + "block_addresses_to_keep": {{.BlockChain.BlockAddressesToKeep}} +} +{{end}} diff --git a/build/templates/blockbook/debian/changelog b/build/templates/blockbook/debian/changelog new file mode 100644 index 00000000..7f43c4f5 --- /dev/null +++ b/build/templates/blockbook/debian/changelog @@ -0,0 +1,7 @@ +{{define "main" -}} +blockbook ({{.Env.Version}}) unstable; urgency=medium + + * Blockbook daemon ({{.Coin.Name}}) version {{.Env.Version}} + + -- {{.Meta.PackageMaintainer}} <{{.Meta.PackageMaintainerEmail}}> {{.Meta.BuildDatetime}} +{{end}} diff --git a/build/templates/blockbook/debian/compat b/build/templates/blockbook/debian/compat new file mode 100644 index 00000000..2bbd4a85 --- /dev/null +++ b/build/templates/blockbook/debian/compat @@ -0,0 +1,3 @@ +{{define "main" -}} +9 +{{end}} diff --git a/build/templates/blockbook/debian/conffiles b/build/templates/blockbook/debian/conffiles new file mode 100644 index 00000000..ccb487ce --- /dev/null +++ b/build/templates/blockbook/debian/conffiles @@ -0,0 +1,3 @@ +{{define "main" -}} +{{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/config/blockchaincfg.json +{{end}} diff --git a/build/templates/blockbook/debian/control b/build/templates/blockbook/debian/control new file mode 100644 index 00000000..58df162a --- /dev/null +++ b/build/templates/blockbook/debian/control @@ -0,0 +1,13 @@ +{{define "main" -}} +Source: blockbook +Section: satoshilabs +Priority: optional +Maintainer: {{.Meta.PackageMaintainerEmail}} +Build-Depends: debhelper, dh-systemd, dh-exec +Standards-Version: 3.9.5 + +Package: {{.Blockbook.PackageName}} +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bitcoin +Description: Satoshilabs blockbook server ({{.Coin.Name}}) +{{end}} diff --git a/build/templates/blockbook/debian/cron.daily b/build/templates/blockbook/debian/cron.daily new file mode 100644 index 00000000..5bb508d4 --- /dev/null +++ b/build/templates/blockbook/debian/cron.daily @@ -0,0 +1,4 @@ +{{define "main" -}} +#!/bin/sh +{{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin/logrotate.sh +{{end}} diff --git a/build/templates/blockbook/debian/dirs b/build/templates/blockbook/debian/dirs new file mode 100644 index 00000000..9e166b12 --- /dev/null +++ b/build/templates/blockbook/debian/dirs @@ -0,0 +1,4 @@ +{{define "main" -}} +{{.Env.BlockbookDataPath}}/{{.Coin.Alias}}/blockbook +{{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/logs +{{end}} diff --git a/build/templates/blockbook/debian/install b/build/templates/blockbook/debian/install new file mode 100644 index 00000000..d2b8422c --- /dev/null +++ b/build/templates/blockbook/debian/install @@ -0,0 +1,9 @@ +{{define "main" -}} +blockbook {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin +cert {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}} +static {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}} +blockchaincfg.json {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/config +logrotate.sh {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin +ldb {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin +sst_dump {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin +{{end}} diff --git a/build/templates/blockbook/debian/links b/build/templates/blockbook/debian/links new file mode 100644 index 00000000..08769efb --- /dev/null +++ b/build/templates/blockbook/debian/links @@ -0,0 +1,4 @@ +{{define "main" -}} +{{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/cert/testcert.crt {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/cert/blockbook.crt +{{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/cert/testcert.key {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/cert/blockbook.key +{{end}} diff --git a/build/templates/blockbook/debian/postinst b/build/templates/blockbook/debian/postinst new file mode 100644 index 00000000..75715f7c --- /dev/null +++ b/build/templates/blockbook/debian/postinst @@ -0,0 +1,25 @@ +{{define "main" -}} +#!/bin/bash +set -e + +case "$1" in + + configure) + if ! id -u {{.Blockbook.SystemUser}} &> /dev/null + then + useradd --system -M -U {{.Blockbook.SystemUser}} -s /bin/false + fi + + for dir in {{.Env.BlockbookDataPath}}/{{.Coin.Alias}}/blockbook {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/logs + do + if [ "$(stat -c '%U' $dir)" != "{{.Blockbook.SystemUser}}" ] + then + chown -R {{.Blockbook.SystemUser}}:{{.Blockbook.SystemUser}} $dir + fi + done + ;; + +esac + +#DEBHELPER# +{{end}} diff --git a/build/templates/blockbook/debian/rules b/build/templates/blockbook/debian/rules new file mode 100755 index 00000000..6f7bd38a --- /dev/null +++ b/build/templates/blockbook/debian/rules @@ -0,0 +1,15 @@ +{{define "main" -}} +#!/usr/bin/make -f + +DH_VERBOSE = 1 + +%: + dh $@ --with=systemd + +override_dh_strip: + +override_dh_systemd_start: + dh_systemd_start --no-start + +override_dh_installinit: +{{end}} diff --git a/build/templates/blockbook/debian/service b/build/templates/blockbook/debian/service new file mode 100644 index 00000000..e59b352d --- /dev/null +++ b/build/templates/blockbook/debian/service @@ -0,0 +1,39 @@ +{{define "main" -}} +[Unit] +Description=Blockbook daemon ({{.Coin.Name}}) +After=network.target +Wants={{.Backend.PackageName}}-service + +[Service] +ExecStart={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin/blockbook -blockchaincfg={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/config/blockchaincfg.json -datadir={{.Env.BlockbookDataPath}}/{{.Coin.Alias}}/blockbook/db -sync -httpserver={{template "Blockbook.InternalBindingTemplate" .}} -socketio={{template "Blockbook.PublicBindingTemplate" .}} -certfile={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/cert/blockbook -explorer={{.Blockbook.ExplorerURL}} -log_dir={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/logs {{.Blockbook.AdditionalParams}} +User={{.Blockbook.SystemUser}} +Type=simple +Restart=on-failure +WorkingDirectory={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}} + +# Resource limits +LimitNOFILE=500000 + +# Hardening measures +#################### + +# Provide a private /tmp and /var/tmp. +PrivateTmp=true + +# Mount /usr, /boot/ and /etc read-only for the process. +ProtectSystem=full + +# Disallow the process and all of its children to gain +# new privileges through execve(). +NoNewPrivileges=true + +# Use a new /dev namespace only populated with API pseudo devices +# such as /dev/null, /dev/zero and /dev/random. +PrivateDevices=true + +# Deny the creation of writable and executable memory mappings. +MemoryDenyWriteExecute=true + +[Install] +WantedBy=multi-user.target +{{end}} diff --git a/build/templates/blockbook/logrotate.sh b/build/templates/blockbook/logrotate.sh new file mode 100755 index 00000000..e8fe312c --- /dev/null +++ b/build/templates/blockbook/logrotate.sh @@ -0,0 +1,13 @@ +{{define "main" -}} +#!/bin/bash +set -e + +LOGS={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/logs + +find $LOGS -mtime +30 -type f -print0 | while read -r -d $'\0' log; do + # remove log if isn't opened by any process + if ! fuser -s $log; then + rm -f $log + fi +done +{{end}} diff --git a/build/templates/generate.go b/build/templates/generate.go index 39bd6584..32e995ec 100644 --- a/build/templates/generate.go +++ b/build/templates/generate.go @@ -17,7 +17,9 @@ const ( type Config struct { Meta struct { - BuildDatetime string + BuildDatetime string // generated field + PackageMaintainer string `json:"package_maintainer"` + PackageMaintainerEmail string `json:"package_maintainer_email"` } Env struct { Version string `json:"version"` @@ -38,7 +40,7 @@ type Config struct { BlockbookInternal int `json:"blockbook_internal"` BlockbookPublic int `json:"blockbook_public"` } `json:"ports"` - RPC struct { + BlockChain struct { RPCURLTemplate string `json:"rpc_url_template"` RPCUser string `json:"rpc_user"` RPCPass string `json:"rpc_pass"` @@ -54,8 +56,6 @@ type Config struct { Backend struct { PackageName string `json:"package_name"` PackageRevision string `json:"package_revision"` - PackageMaintainer string `json:"package_maintainer"` - PackageMaintainerEmail string `json:"package_maintainer_email"` SystemUser string `json:"system_user"` Version string `json:"version"` BinaryURL string `json:"binary_url"` @@ -73,20 +73,24 @@ type Config struct { AdditionalParams interface{} `json:"additional_params"` } `json:"backend"` Blockbook struct { - PackageName string `json:"package_name"` - SystemUser string `json:"system_user"` - Explorer string `json:"explorer"` - AdditionalParams string `json:"additional_params"` + PackageName string `json:"package_name"` + SystemUser string `json:"system_user"` + InternalBindingTemplate string `json:"internal_binding_template"` + PublicBindingTemplate string `json:"public_binding_template"` + ExplorerURL string `json:"explorer_url"` + AdditionalParams string `json:"additional_params"` } `json:"blockbook"` } func (c *Config) ParseTemplate() *template.Template { templates := map[string]string{ - "RPCURLTemplate": c.RPC.RPCURLTemplate, - "MessageQueueBindingTemplate": c.RPC.MessageQueueBindingTemplate, - "ExecCommandTemplate": c.Backend.ExecCommandTemplate, - "LogrotateFilesTemplate": c.Backend.LogrotateFilesTemplate, - "PostinstScriptTemplate": c.Backend.PostinstScriptTemplate, + "BlockChain.RPCURLTemplate": c.BlockChain.RPCURLTemplate, + "BlockChain.MessageQueueBindingTemplate": c.BlockChain.MessageQueueBindingTemplate, + "Backend.ExecCommandTemplate": c.Backend.ExecCommandTemplate, + "Backend.LogrotateFilesTemplate": c.Backend.LogrotateFilesTemplate, + "Backend.PostinstScriptTemplate": c.Backend.PostinstScriptTemplate, + "Blockbook.InternalBindingTemplate": c.Blockbook.InternalBindingTemplate, + "Blockbook.PublicBindingTemplate": c.Blockbook.PublicBindingTemplate, } t := template.New("") @@ -160,7 +164,7 @@ func generatePackageDefinitions(config *Config) { makeOutputDir(outputDir) - for _, subdir := range []string{"backend"} { + for _, subdir := range []string{"backend", "blockbook"} { root := filepath.Join(inputDir, subdir) err := os.Mkdir(filepath.Join(outputDir, subdir), 0755) diff --git a/configs/coins/bcash.json b/configs/coins/bcash.json index c497eb6f..92e2c198 100644 --- a/configs/coins/bcash.json +++ b/configs/coins/bcash.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Bcash", "shortcut": "BCH", @@ -27,8 +31,6 @@ "backend": { "package_name": "backend-bcash", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "bcash", "version": "0.17.1", "binary_url": "https://download.bitcoinabc.org/0.17.1/linux/bitcoin-abc-0.17.1-x86_64-linux-gnu.tar.gz", @@ -49,7 +51,9 @@ "blockbook": { "package_name": "blockbook-bcash", "system_user": "blockbook-bcash", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://bitcoincash.blockexplorer.com", "additional_params": "" } } diff --git a/configs/coins/bcash_testnet.json b/configs/coins/bcash_testnet.json index 6adf78ed..0eb5b931 100644 --- a/configs/coins/bcash_testnet.json +++ b/configs/coins/bcash_testnet.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Bcash Testnet", "shortcut": "TBCH", @@ -27,8 +31,6 @@ "backend": { "package_name": "backend-bcash-testnet", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "bcash", "version": "0.17.1", "binary_url": "https://download.bitcoinabc.org/0.17.1/linux/bitcoin-abc-0.17.1-x86_64-linux-gnu.tar.gz", @@ -49,7 +51,9 @@ "blockbook": { "package_name": "blockbook-bcash-testnet", "system_user": "blockbook-bcash", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://bitcoincash.blockexplorer.com", "additional_params": "" } } diff --git a/configs/coins/bgold.json b/configs/coins/bgold.json index c49eaea4..91317419 100644 --- a/configs/coins/bgold.json +++ b/configs/coins/bgold.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Bgold", "shortcut": "BTG", @@ -26,8 +30,6 @@ "backend": { "package_name": "backend-bgold", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "bgold", "version": "0.15.1", "binary_url": "https://github.com/BTCGPU/BTCGPU/releases/download/v0.15.1/bitcoin-gold-0.15.1-x86_64-linux-gnu.tar.gz", @@ -243,7 +245,9 @@ "blockbook": { "package_name": "blockbook-bgold", "system_user": "blockbook-bgold", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://explorer.bitcoingold.org", "additional_params": "" } } diff --git a/configs/coins/bitcoin.json b/configs/coins/bitcoin.json index 8f9bca85..0ae6cb2f 100644 --- a/configs/coins/bitcoin.json +++ b/configs/coins/bitcoin.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Bitcoin", "shortcut": "BTC", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-bitcoin", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "bitcoin", "version": "0.16.1", "binary_url": "https://bitcoin.org/bin/bitcoin-core-0.16.1/bitcoin-0.16.1-x86_64-linux-gnu.tar.gz", @@ -50,7 +52,9 @@ "blockbook": { "package_name": "blockbook-bitcoin", "system_user": "blockbook-bitcoin", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://btc-explorer.trezor.io", "additional_params": "" } } diff --git a/configs/coins/bitcoin_testnet.json b/configs/coins/bitcoin_testnet.json index a57d5744..89f32fa0 100644 --- a/configs/coins/bitcoin_testnet.json +++ b/configs/coins/bitcoin_testnet.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Testnet", "shortcut": "TEST", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-bitcoin-testnet", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "bitcoin", "version": "0.16.1", "binary_url": "https://bitcoin.org/bin/bitcoin-core-0.16.1/bitcoin-0.16.1-x86_64-linux-gnu.tar.gz", @@ -50,7 +52,9 @@ "blockbook": { "package_name": "blockbook-bitcoin-testnet", "system_user": "blockbook-bitcoin", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://btc-testnet-explorer.trezor.io", "additional_params": "" } } diff --git a/configs/coins/dash.json b/configs/coins/dash.json index 715ff8f3..a7ca39d7 100644 --- a/configs/coins/dash.json +++ b/configs/coins/dash.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Dash", "shortcut": "DASH", @@ -26,8 +30,6 @@ "backend": { "package_name": "backend-dash", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "dash", "version": "0.12.3", "binary_url": "https://github.com/dashpay/dash/releases/download/v0.12.3.2/dashcore-0.12.3.2-x86_64-linux-gnu.tar.gz", @@ -51,7 +53,9 @@ "blockbook": { "package_name": "blockbook-dash", "system_user": "blockbook-dash", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://dash-explorer.trezor.io", "additional_params": "" } } diff --git a/configs/coins/dash_testnet.json b/configs/coins/dash_testnet.json index bc2a0f5f..4426aae9 100644 --- a/configs/coins/dash_testnet.json +++ b/configs/coins/dash_testnet.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Dash Testnet", "shortcut": "tDASH", @@ -26,8 +30,6 @@ "backend": { "package_name": "backend-dash-testnet", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "dash", "version": "0.12.3", "binary_url": "https://github.com/dashpay/dash/releases/download/v0.12.3.2/dashcore-0.12.3.2-x86_64-linux-gnu.tar.gz", @@ -51,7 +53,9 @@ "blockbook": { "package_name": "blockbook-dash-testnet", "system_user": "blockbook-dash", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://dash-explorer.trezor.io", "additional_params": "" } } diff --git a/configs/coins/dogecoin.json b/configs/coins/dogecoin.json index c087a16c..7f8b376b 100644 --- a/configs/coins/dogecoin.json +++ b/configs/coins/dogecoin.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Dogecoin", "shortcut": "DOGE", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-dogecoin", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "dogecoin", "version": "1.10.0", "binary_url": "https://github.com/dogecoin/dogecoin/releases/download/v1.10.0/dogecoin-1.10.0-linux64.tar.gz", @@ -51,7 +53,9 @@ "blockbook": { "package_name": "blockbook-dogecoin", "system_user": "blockbook-dogecoin", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://dogechain.info/", "additional_params": "-resyncindexperiod=30011 -resyncmempoolperiod=2011" } } diff --git a/configs/coins/ethereum.json b/configs/coins/ethereum.json index 91e0eb3d..67dca5ca 100644 --- a/configs/coins/ethereum.json +++ b/configs/coins/ethereum.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Ethereum", "shortcut": "ETH", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-ethereum", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "ethereum", "version": "1.8.10-eae63c51", "binary_url": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.10-eae63c51.tar.gz", @@ -45,7 +47,9 @@ "blockbook": { "package_name": "blockbook-ethereum", "system_user": "blockbook-ethereum", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://etherscan.io/", "additional_params": "" } } diff --git a/configs/coins/ethereum_testnet_ropsten.json b/configs/coins/ethereum_testnet_ropsten.json index c6610d1b..2c346c16 100644 --- a/configs/coins/ethereum_testnet_ropsten.json +++ b/configs/coins/ethereum_testnet_ropsten.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Ethereum Testnet Ropsten", "shortcut": "tETH", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-ethereum-testnet-ropsten", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "ethereum", "version": "1.8.10-eae63c51", "binary_url": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.10-eae63c51.tar.gz", @@ -45,7 +47,9 @@ "blockbook": { "package_name": "blockbook-ethereum-testnet-ropsten", "system_user": "blockbook-ethereum", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://ropsten.etherscan.io/", "additional_params": "" } } diff --git a/configs/coins/litecoin.json b/configs/coins/litecoin.json index ab29ea7a..b7e62410 100644 --- a/configs/coins/litecoin.json +++ b/configs/coins/litecoin.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Litecoin", "shortcut": "LTC", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-litecoin", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "litecoin", "version": "0.16.0", "binary_url": "https://download.litecoin.org/litecoin-0.16.0/linux/litecoin-0.16.0-x86_64-linux-gnu.tar.gz", @@ -50,7 +52,9 @@ "blockbook": { "package_name": "blockbook-litecoin", "system_user": "blockbook-litecoin", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://ltc-explorer.trezor.io", "additional_params": "" } } diff --git a/configs/coins/litecoin_testnet.json b/configs/coins/litecoin_testnet.json index 741eca7c..3ca11ba0 100644 --- a/configs/coins/litecoin_testnet.json +++ b/configs/coins/litecoin_testnet.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Litecoin Testnet", "shortcut": "TLTC", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-litecoin-testnet", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "litecoin", "version": "0.16.0", "binary_url": "https://download.litecoin.org/litecoin-0.16.0/linux/litecoin-0.16.0-x86_64-linux-gnu.tar.gz", @@ -50,7 +52,9 @@ "blockbook": { "package_name": "blockbook-litecoin-testnet", "system_user": "blockbook-litecoin", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://ltc-explorer.trezor.io", "additional_params": "" } } diff --git a/configs/coins/namecoin.json b/configs/coins/namecoin.json index 60585299..1014cabc 100644 --- a/configs/coins/namecoin.json +++ b/configs/coins/namecoin.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Namecoin", "shortcut": "NMC", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-namecoin", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "namecoin", "version": "0.13.99", "binary_url": "https://namecoin.org/files/namecoin-core-0.13.99-name-tab-beta1-notreproduced/namecoin-0.13.99-x86_64-linux-gnu.tar.gz", @@ -57,7 +59,9 @@ "blockbook": { "package_name": "blockbook-namecoin", "system_user": "blockbook-namecoin", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://namecha.in/", "additional_params": "" } } diff --git a/configs/coins/vertcoin.json b/configs/coins/vertcoin.json index 0ef7589e..7c8d3197 100644 --- a/configs/coins/vertcoin.json +++ b/configs/coins/vertcoin.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Vertcoin", "shortcut": "VTC", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-vertcoin", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "vertcoin", "version": "0.13.2", "binary_url": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.13.2/vertcoind-v0.13.2-linux-amd64.zip", @@ -48,7 +50,9 @@ "blockbook": { "package_name": "blockbook-vertcoin", "system_user": "blockbook-vertcoin", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://insight.vertcoin.org", "additional_params": "" } } diff --git a/configs/coins/vertcoin_testnet.json b/configs/coins/vertcoin_testnet.json index 6a2af857..38ec7fb1 100644 --- a/configs/coins/vertcoin_testnet.json +++ b/configs/coins/vertcoin_testnet.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Vertcoin Testnet", "shortcut": "TVTC", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-vertcoin-testnet", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "vertcoin", "version": "0.13.2", "binary_url": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.13.2/vertcoind-v0.13.2-linux-amd64.zip", @@ -48,7 +50,9 @@ "blockbook": { "package_name": "blockbook-vertcoin-testnet", "system_user": "blockbook-vertcoin", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://insight.vertcoin.org/", "additional_params": "" } } diff --git a/configs/coins/zcash.json b/configs/coins/zcash.json index 0933fd44..9f12405c 100644 --- a/configs/coins/zcash.json +++ b/configs/coins/zcash.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Zcash", "shortcut": "ZEC", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-zcash", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "zcash", "version": "1.1.1", "binary_url": "https://z.cash/downloads/zcash-1.1.1-linux64.tar.gz", @@ -50,7 +52,9 @@ "blockbook": { "package_name": "blockbook-zcash", "system_user": "blockbook-zcash", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://zcash.blockexplorer.com/", "additional_params": "" } } diff --git a/configs/coins/zcash_testnet.json b/configs/coins/zcash_testnet.json index f4a2dc10..c7bd21d6 100644 --- a/configs/coins/zcash_testnet.json +++ b/configs/coins/zcash_testnet.json @@ -1,4 +1,8 @@ { + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + }, "coin": { "name": "Zcash Testnet", "shortcut": "TAZ", @@ -25,8 +29,6 @@ "backend": { "package_name": "backend-zcash-testnet", "package_revision": "satoshilabs-1", - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com", "system_user": "zcash", "version": "1.1.1", "binary_url": "https://z.cash/downloads/zcash-1.1.1-linux64.tar.gz", @@ -50,7 +52,9 @@ "blockbook": { "package_name": "blockbook-zcash-testnet", "system_user": "blockbook-zcash", - "explorer": "/explorer", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://explorer.testnet.z.cash/", "additional_params": "" } } From 80911f8949ea53b592bea53078afe1195a6b085c Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Thu, 26 Jul 2018 14:49:14 +0200 Subject: [PATCH 04/11] Upgraded build process in order to use generated packages --- Makefile | 21 +- build/deb/build-deb.sh | 13 - .../debian/blockbook-bcash-testnet.conffiles | 1 - .../debian/blockbook-bcash-testnet.cron.daily | 2 - build/deb/debian/blockbook-bcash-testnet.dirs | 2 - .../debian/blockbook-bcash-testnet.install | 6 - .../deb/debian/blockbook-bcash-testnet.links | 2 - .../debian/blockbook-bcash-testnet.postinst | 23 -- .../debian/blockbook-bcash-testnet.service | 43 --- build/deb/debian/blockbook-bcash.conffiles | 1 - build/deb/debian/blockbook-bcash.cron.daily | 2 - build/deb/debian/blockbook-bcash.dirs | 2 - build/deb/debian/blockbook-bcash.install | 6 - build/deb/debian/blockbook-bcash.links | 2 - build/deb/debian/blockbook-bcash.postinst | 23 -- build/deb/debian/blockbook-bcash.service | 43 --- build/deb/debian/blockbook-bgold.conffiles | 1 - build/deb/debian/blockbook-bgold.cron.daily | 2 - build/deb/debian/blockbook-bgold.dirs | 2 - build/deb/debian/blockbook-bgold.install | 6 - build/deb/debian/blockbook-bgold.links | 2 - build/deb/debian/blockbook-bgold.postinst | 23 -- build/deb/debian/blockbook-bgold.service | 43 --- .../blockbook-bitcoin-testnet.conffiles | 1 - .../blockbook-bitcoin-testnet.cron.daily | 2 - .../deb/debian/blockbook-bitcoin-testnet.dirs | 2 - .../debian/blockbook-bitcoin-testnet.install | 6 - .../debian/blockbook-bitcoin-testnet.links | 2 - .../debian/blockbook-bitcoin-testnet.postinst | 23 -- .../debian/blockbook-bitcoin-testnet.service | 43 --- build/deb/debian/blockbook-bitcoin.conffiles | 1 - build/deb/debian/blockbook-bitcoin.cron.daily | 2 - build/deb/debian/blockbook-bitcoin.dirs | 2 - build/deb/debian/blockbook-bitcoin.install | 6 - build/deb/debian/blockbook-bitcoin.links | 2 - build/deb/debian/blockbook-bitcoin.postinst | 23 -- build/deb/debian/blockbook-bitcoin.service | 43 --- .../debian/blockbook-dash-testnet.conffiles | 1 - .../debian/blockbook-dash-testnet.cron.daily | 2 - build/deb/debian/blockbook-dash-testnet.dirs | 2 - .../deb/debian/blockbook-dash-testnet.install | 6 - build/deb/debian/blockbook-dash-testnet.links | 2 - .../debian/blockbook-dash-testnet.postinst | 23 -- .../deb/debian/blockbook-dash-testnet.service | 43 --- build/deb/debian/blockbook-dash.conffiles | 1 - build/deb/debian/blockbook-dash.cron.daily | 2 - build/deb/debian/blockbook-dash.dirs | 2 - build/deb/debian/blockbook-dash.install | 6 - build/deb/debian/blockbook-dash.links | 2 - build/deb/debian/blockbook-dash.postinst | 23 -- build/deb/debian/blockbook-dash.service | 43 --- build/deb/debian/blockbook-dogecoin.conffiles | 1 - .../deb/debian/blockbook-dogecoin.cron.daily | 2 - build/deb/debian/blockbook-dogecoin.dirs | 2 - build/deb/debian/blockbook-dogecoin.install | 6 - build/deb/debian/blockbook-dogecoin.links | 2 - build/deb/debian/blockbook-dogecoin.postinst | 23 -- build/deb/debian/blockbook-dogecoin.service | 43 --- ...ockbook-ethereum-testnet-ropsten.conffiles | 1 - ...ckbook-ethereum-testnet-ropsten.cron.daily | 2 - .../blockbook-ethereum-testnet-ropsten.dirs | 2 - ...blockbook-ethereum-testnet-ropsten.install | 6 - .../blockbook-ethereum-testnet-ropsten.links | 2 - ...lockbook-ethereum-testnet-ropsten.postinst | 23 -- ...blockbook-ethereum-testnet-ropsten.service | 43 --- build/deb/debian/blockbook-ethereum.conffiles | 1 - .../deb/debian/blockbook-ethereum.cron.daily | 2 - build/deb/debian/blockbook-ethereum.dirs | 2 - build/deb/debian/blockbook-ethereum.install | 6 - build/deb/debian/blockbook-ethereum.links | 2 - build/deb/debian/blockbook-ethereum.postinst | 23 -- build/deb/debian/blockbook-ethereum.service | 43 --- .../blockbook-litecoin-testnet.conffiles | 1 - .../blockbook-litecoin-testnet.cron.daily | 2 - .../debian/blockbook-litecoin-testnet.dirs | 2 - .../debian/blockbook-litecoin-testnet.install | 6 - .../debian/blockbook-litecoin-testnet.links | 2 - .../blockbook-litecoin-testnet.postinst | 23 -- .../debian/blockbook-litecoin-testnet.service | 43 --- build/deb/debian/blockbook-litecoin.conffiles | 1 - .../deb/debian/blockbook-litecoin.cron.daily | 2 - build/deb/debian/blockbook-litecoin.dirs | 2 - build/deb/debian/blockbook-litecoin.install | 6 - build/deb/debian/blockbook-litecoin.links | 2 - build/deb/debian/blockbook-litecoin.postinst | 23 -- build/deb/debian/blockbook-litecoin.service | 43 --- build/deb/debian/blockbook-namecoin.conffiles | 1 - .../deb/debian/blockbook-namecoin.cron.daily | 2 - build/deb/debian/blockbook-namecoin.dirs | 2 - build/deb/debian/blockbook-namecoin.install | 6 - build/deb/debian/blockbook-namecoin.links | 2 - build/deb/debian/blockbook-namecoin.postinst | 23 -- build/deb/debian/blockbook-namecoin.service | 43 --- build/deb/debian/blockbook-tools.install | 2 - build/deb/debian/blockbook-tools.links | 2 - .../blockbook-vertcoin-testnet.conffiles | 1 - .../blockbook-vertcoin-testnet.cron.daily | 2 - .../debian/blockbook-vertcoin-testnet.dirs | 2 - .../debian/blockbook-vertcoin-testnet.install | 6 - .../debian/blockbook-vertcoin-testnet.links | 2 - .../blockbook-vertcoin-testnet.postinst | 23 -- .../debian/blockbook-vertcoin-testnet.service | 43 --- build/deb/debian/blockbook-vertcoin.conffiles | 1 - .../deb/debian/blockbook-vertcoin.cron.daily | 2 - build/deb/debian/blockbook-vertcoin.dirs | 2 - build/deb/debian/blockbook-vertcoin.install | 6 - build/deb/debian/blockbook-vertcoin.links | 2 - build/deb/debian/blockbook-vertcoin.postinst | 23 -- build/deb/debian/blockbook-vertcoin.service | 43 --- .../debian/blockbook-zcash-testnet.conffiles | 1 - .../debian/blockbook-zcash-testnet.cron.daily | 2 - build/deb/debian/blockbook-zcash-testnet.dirs | 2 - .../debian/blockbook-zcash-testnet.install | 6 - .../deb/debian/blockbook-zcash-testnet.links | 2 - .../debian/blockbook-zcash-testnet.postinst | 23 -- .../debian/blockbook-zcash-testnet.service | 43 --- build/deb/debian/blockbook-zcash.conffiles | 1 - build/deb/debian/blockbook-zcash.cron.daily | 2 - build/deb/debian/blockbook-zcash.dirs | 2 - build/deb/debian/blockbook-zcash.install | 6 - build/deb/debian/blockbook-zcash.links | 2 - build/deb/debian/blockbook-zcash.postinst | 23 -- build/deb/debian/blockbook-zcash.service | 43 --- build/deb/debian/changelog | 35 --- build/deb/debian/compat | 1 - build/deb/debian/control | 96 ------ build/deb/debian/rules | 13 - build/deb/logrotate.sh | 11 - build/{ => docker}/bin/Dockerfile | 0 build/{ => docker}/bin/Makefile | 0 build/{ => docker}/deb/Dockerfile | 4 +- build/docker/deb/build-deb.sh | 35 +++ build/docker/deb/gpg-keys/bgold-releases.asc | 48 +++ .../docker/deb/gpg-keys/bitcoin-releases.asc | 280 ++++++++++++++++++ build/docker/deb/gpg-keys/dash-releases.asc | 52 ++++ build/docker/deb/gpg-keys/eth-releases.asc | 35 +++ .../docker/deb/gpg-keys/litecoin-releases.asc | 113 +++++++ .../docker/deb/gpg-keys/vertcoin-releases.asc | 28 ++ build/docker/deb/gpg-keys/zcash-releases.asc | 28 ++ build/templates/generate.go | 4 +- 140 files changed, 638 insertions(+), 1526 deletions(-) delete mode 100755 build/deb/build-deb.sh delete mode 100644 build/deb/debian/blockbook-bcash-testnet.conffiles delete mode 100644 build/deb/debian/blockbook-bcash-testnet.cron.daily delete mode 100644 build/deb/debian/blockbook-bcash-testnet.dirs delete mode 100755 build/deb/debian/blockbook-bcash-testnet.install delete mode 100644 build/deb/debian/blockbook-bcash-testnet.links delete mode 100644 build/deb/debian/blockbook-bcash-testnet.postinst delete mode 100644 build/deb/debian/blockbook-bcash-testnet.service delete mode 100644 build/deb/debian/blockbook-bcash.conffiles delete mode 100644 build/deb/debian/blockbook-bcash.cron.daily delete mode 100644 build/deb/debian/blockbook-bcash.dirs delete mode 100755 build/deb/debian/blockbook-bcash.install delete mode 100644 build/deb/debian/blockbook-bcash.links delete mode 100644 build/deb/debian/blockbook-bcash.postinst delete mode 100644 build/deb/debian/blockbook-bcash.service delete mode 100644 build/deb/debian/blockbook-bgold.conffiles delete mode 100644 build/deb/debian/blockbook-bgold.cron.daily delete mode 100644 build/deb/debian/blockbook-bgold.dirs delete mode 100755 build/deb/debian/blockbook-bgold.install delete mode 100644 build/deb/debian/blockbook-bgold.links delete mode 100644 build/deb/debian/blockbook-bgold.postinst delete mode 100644 build/deb/debian/blockbook-bgold.service delete mode 100644 build/deb/debian/blockbook-bitcoin-testnet.conffiles delete mode 100644 build/deb/debian/blockbook-bitcoin-testnet.cron.daily delete mode 100644 build/deb/debian/blockbook-bitcoin-testnet.dirs delete mode 100755 build/deb/debian/blockbook-bitcoin-testnet.install delete mode 100644 build/deb/debian/blockbook-bitcoin-testnet.links delete mode 100644 build/deb/debian/blockbook-bitcoin-testnet.postinst delete mode 100644 build/deb/debian/blockbook-bitcoin-testnet.service delete mode 100644 build/deb/debian/blockbook-bitcoin.conffiles delete mode 100644 build/deb/debian/blockbook-bitcoin.cron.daily delete mode 100644 build/deb/debian/blockbook-bitcoin.dirs delete mode 100755 build/deb/debian/blockbook-bitcoin.install delete mode 100644 build/deb/debian/blockbook-bitcoin.links delete mode 100644 build/deb/debian/blockbook-bitcoin.postinst delete mode 100644 build/deb/debian/blockbook-bitcoin.service delete mode 100644 build/deb/debian/blockbook-dash-testnet.conffiles delete mode 100644 build/deb/debian/blockbook-dash-testnet.cron.daily delete mode 100644 build/deb/debian/blockbook-dash-testnet.dirs delete mode 100755 build/deb/debian/blockbook-dash-testnet.install delete mode 100644 build/deb/debian/blockbook-dash-testnet.links delete mode 100644 build/deb/debian/blockbook-dash-testnet.postinst delete mode 100644 build/deb/debian/blockbook-dash-testnet.service delete mode 100644 build/deb/debian/blockbook-dash.conffiles delete mode 100644 build/deb/debian/blockbook-dash.cron.daily delete mode 100644 build/deb/debian/blockbook-dash.dirs delete mode 100755 build/deb/debian/blockbook-dash.install delete mode 100644 build/deb/debian/blockbook-dash.links delete mode 100644 build/deb/debian/blockbook-dash.postinst delete mode 100644 build/deb/debian/blockbook-dash.service delete mode 100644 build/deb/debian/blockbook-dogecoin.conffiles delete mode 100644 build/deb/debian/blockbook-dogecoin.cron.daily delete mode 100644 build/deb/debian/blockbook-dogecoin.dirs delete mode 100755 build/deb/debian/blockbook-dogecoin.install delete mode 100644 build/deb/debian/blockbook-dogecoin.links delete mode 100644 build/deb/debian/blockbook-dogecoin.postinst delete mode 100644 build/deb/debian/blockbook-dogecoin.service delete mode 100644 build/deb/debian/blockbook-ethereum-testnet-ropsten.conffiles delete mode 100644 build/deb/debian/blockbook-ethereum-testnet-ropsten.cron.daily delete mode 100644 build/deb/debian/blockbook-ethereum-testnet-ropsten.dirs delete mode 100755 build/deb/debian/blockbook-ethereum-testnet-ropsten.install delete mode 100644 build/deb/debian/blockbook-ethereum-testnet-ropsten.links delete mode 100644 build/deb/debian/blockbook-ethereum-testnet-ropsten.postinst delete mode 100644 build/deb/debian/blockbook-ethereum-testnet-ropsten.service delete mode 100644 build/deb/debian/blockbook-ethereum.conffiles delete mode 100644 build/deb/debian/blockbook-ethereum.cron.daily delete mode 100644 build/deb/debian/blockbook-ethereum.dirs delete mode 100755 build/deb/debian/blockbook-ethereum.install delete mode 100644 build/deb/debian/blockbook-ethereum.links delete mode 100644 build/deb/debian/blockbook-ethereum.postinst delete mode 100644 build/deb/debian/blockbook-ethereum.service delete mode 100644 build/deb/debian/blockbook-litecoin-testnet.conffiles delete mode 100644 build/deb/debian/blockbook-litecoin-testnet.cron.daily delete mode 100644 build/deb/debian/blockbook-litecoin-testnet.dirs delete mode 100755 build/deb/debian/blockbook-litecoin-testnet.install delete mode 100644 build/deb/debian/blockbook-litecoin-testnet.links delete mode 100644 build/deb/debian/blockbook-litecoin-testnet.postinst delete mode 100644 build/deb/debian/blockbook-litecoin-testnet.service delete mode 100644 build/deb/debian/blockbook-litecoin.conffiles delete mode 100644 build/deb/debian/blockbook-litecoin.cron.daily delete mode 100644 build/deb/debian/blockbook-litecoin.dirs delete mode 100755 build/deb/debian/blockbook-litecoin.install delete mode 100644 build/deb/debian/blockbook-litecoin.links delete mode 100644 build/deb/debian/blockbook-litecoin.postinst delete mode 100644 build/deb/debian/blockbook-litecoin.service delete mode 100644 build/deb/debian/blockbook-namecoin.conffiles delete mode 100644 build/deb/debian/blockbook-namecoin.cron.daily delete mode 100644 build/deb/debian/blockbook-namecoin.dirs delete mode 100755 build/deb/debian/blockbook-namecoin.install delete mode 100644 build/deb/debian/blockbook-namecoin.links delete mode 100644 build/deb/debian/blockbook-namecoin.postinst delete mode 100644 build/deb/debian/blockbook-namecoin.service delete mode 100644 build/deb/debian/blockbook-tools.install delete mode 100644 build/deb/debian/blockbook-tools.links delete mode 100644 build/deb/debian/blockbook-vertcoin-testnet.conffiles delete mode 100644 build/deb/debian/blockbook-vertcoin-testnet.cron.daily delete mode 100644 build/deb/debian/blockbook-vertcoin-testnet.dirs delete mode 100755 build/deb/debian/blockbook-vertcoin-testnet.install delete mode 100644 build/deb/debian/blockbook-vertcoin-testnet.links delete mode 100644 build/deb/debian/blockbook-vertcoin-testnet.postinst delete mode 100644 build/deb/debian/blockbook-vertcoin-testnet.service delete mode 100644 build/deb/debian/blockbook-vertcoin.conffiles delete mode 100644 build/deb/debian/blockbook-vertcoin.cron.daily delete mode 100644 build/deb/debian/blockbook-vertcoin.dirs delete mode 100755 build/deb/debian/blockbook-vertcoin.install delete mode 100644 build/deb/debian/blockbook-vertcoin.links delete mode 100644 build/deb/debian/blockbook-vertcoin.postinst delete mode 100644 build/deb/debian/blockbook-vertcoin.service delete mode 100644 build/deb/debian/blockbook-zcash-testnet.conffiles delete mode 100644 build/deb/debian/blockbook-zcash-testnet.cron.daily delete mode 100644 build/deb/debian/blockbook-zcash-testnet.dirs delete mode 100755 build/deb/debian/blockbook-zcash-testnet.install delete mode 100644 build/deb/debian/blockbook-zcash-testnet.links delete mode 100644 build/deb/debian/blockbook-zcash-testnet.postinst delete mode 100644 build/deb/debian/blockbook-zcash-testnet.service delete mode 100644 build/deb/debian/blockbook-zcash.conffiles delete mode 100644 build/deb/debian/blockbook-zcash.cron.daily delete mode 100644 build/deb/debian/blockbook-zcash.dirs delete mode 100755 build/deb/debian/blockbook-zcash.install delete mode 100644 build/deb/debian/blockbook-zcash.links delete mode 100644 build/deb/debian/blockbook-zcash.postinst delete mode 100644 build/deb/debian/blockbook-zcash.service delete mode 100644 build/deb/debian/changelog delete mode 100644 build/deb/debian/compat delete mode 100644 build/deb/debian/control delete mode 100755 build/deb/debian/rules delete mode 100755 build/deb/logrotate.sh rename build/{ => docker}/bin/Dockerfile (100%) rename build/{ => docker}/bin/Makefile (100%) rename build/{ => docker}/deb/Dockerfile (80%) create mode 100755 build/docker/deb/build-deb.sh create mode 100644 build/docker/deb/gpg-keys/bgold-releases.asc create mode 100644 build/docker/deb/gpg-keys/bitcoin-releases.asc create mode 100644 build/docker/deb/gpg-keys/dash-releases.asc create mode 100644 build/docker/deb/gpg-keys/eth-releases.asc create mode 100644 build/docker/deb/gpg-keys/litecoin-releases.asc create mode 100644 build/docker/deb/gpg-keys/vertcoin-releases.asc create mode 100644 build/docker/deb/gpg-keys/zcash-releases.asc diff --git a/Makefile b/Makefile index 0698ed8f..dcad1dbb 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,8 @@ NO_CACHE = false UPDATE_VENDOR = 1 ARGS ?= +TARGETS=$(subst .json,, $(shell ls configs/coins)) + .PHONY: build build-debug test deb build: .bin-image @@ -19,24 +21,29 @@ test: .bin-image test-all: .bin-image docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src --network="host" $(BIN_IMAGE) make test-all ARGS="$(ARGS)" -deb: .deb-image clean-deb - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(DEB_IMAGE) /build/build-deb.sh $(ARGS) +deb-backend-%: .deb-image + docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(DEB_IMAGE) /build/build-deb.sh backend $* $(ARGS) -tools: - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(BIN_IMAGE) make tools ARGS="$(ARGS)" +deb-blockbook-%: .deb-image + docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(DEB_IMAGE) /build/build-deb.sh blockbook $* $(ARGS) -all: build-images deb +deb-%: .deb-image + docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(DEB_IMAGE) /build/build-deb.sh all $* $(ARGS) + +$(addprefix all-, $(TARGETS)): all-%: clean-deb build-images deb-% + +all: clean-deb build-images $(addprefix deb-, $(TARGETS)) build-images: rm -f .bin-image .deb-image $(MAKE) .bin-image .deb-image .bin-image: - docker build --no-cache=$(NO_CACHE) -t $(BIN_IMAGE) build/bin + docker build --no-cache=$(NO_CACHE) -t $(BIN_IMAGE) build/docker/bin @ docker images -q $(BIN_IMAGE) > $@ .deb-image: .bin-image - docker build --no-cache=$(NO_CACHE) -t $(DEB_IMAGE) build/deb + docker build --no-cache=$(NO_CACHE) -t $(DEB_IMAGE) build/docker/deb @ docker images -q $(DEB_IMAGE) > $@ clean: clean-bin clean-deb diff --git a/build/deb/build-deb.sh b/build/deb/build-deb.sh deleted file mode 100755 index f39e48d1..00000000 --- a/build/deb/build-deb.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -e - -cp -r /src/build/deb/debian . -cp -r /src/configs . -cp -r /src/static static -mkdir cert && cp /src/server/testcert.* cert - -export VERSION=$(dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)([-+~].+)?$/\1/p') - -dpkg-buildpackage -us -uc $@ -mv ../*.deb /out -chown $PACKAGER /out/*.deb diff --git a/build/deb/debian/blockbook-bcash-testnet.conffiles b/build/deb/debian/blockbook-bcash-testnet.conffiles deleted file mode 100644 index 47da7625..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/bcash_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-bcash-testnet.cron.daily b/build/deb/debian/blockbook-bcash-testnet.cron.daily deleted file mode 100644 index ffc5baf8..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/bcash_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-bcash-testnet.dirs b/build/deb/debian/blockbook-bcash-testnet.dirs deleted file mode 100644 index 194e9726..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/bcash_testnet/blockbook -/opt/coins/blockbook/bcash_testnet/logs diff --git a/build/deb/debian/blockbook-bcash-testnet.install b/build/deb/debian/blockbook-bcash-testnet.install deleted file mode 100755 index e212e59a..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/bcash_testnet/bin -cert /opt/coins/blockbook/bcash_testnet -static /opt/coins/blockbook/bcash_testnet -configs/bcash_testnet.json => /opt/coins/blockbook/bcash_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/bcash_testnet/bin diff --git a/build/deb/debian/blockbook-bcash-testnet.links b/build/deb/debian/blockbook-bcash-testnet.links deleted file mode 100644 index 99a18b69..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/bcash_testnet/cert/testcert.crt /opt/coins/blockbook/bcash_testnet/cert/blockbook.crt -/opt/coins/blockbook/bcash_testnet/cert/testcert.key /opt/coins/blockbook/bcash_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-bcash-testnet.postinst b/build/deb/debian/blockbook-bcash-testnet.postinst deleted file mode 100644 index 58ef2f9f..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-bcash &> /dev/null - then - useradd --system -M -U blockbook-bcash -s /bin/false - fi - - for dir in /opt/coins/data/bcash_testnet/blockbook /opt/coins/blockbook/bcash_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-bcash" ] - then - chown -R blockbook-bcash:blockbook-bcash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-bcash-testnet.service b/build/deb/debian/blockbook-bcash-testnet.service deleted file mode 100644 index bf662598..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-bcash-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Bcash testnet) -After=network.target -Wants=backend-bcash-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/bcash_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bcash_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/bcash_testnet/blockbook/db -sync -httpserver=:19031 -socketio=:19131 -certfile=/opt/coins/blockbook/bcash_testnet/cert/blockbook -explorer=https://bitcoincash.blockexplorer.com/ -log_dir=/opt/coins/blockbook/bcash_testnet/logs -User=blockbook-bcash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/bcash_testnet - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-bcash.conffiles b/build/deb/debian/blockbook-bcash.conffiles deleted file mode 100644 index 684c0294..00000000 --- a/build/deb/debian/blockbook-bcash.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/bcash/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-bcash.cron.daily b/build/deb/debian/blockbook-bcash.cron.daily deleted file mode 100644 index 4a66059f..00000000 --- a/build/deb/debian/blockbook-bcash.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/bcash/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-bcash.dirs b/build/deb/debian/blockbook-bcash.dirs deleted file mode 100644 index 5cf39a34..00000000 --- a/build/deb/debian/blockbook-bcash.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/bcash/blockbook -/opt/coins/blockbook/bcash/logs diff --git a/build/deb/debian/blockbook-bcash.install b/build/deb/debian/blockbook-bcash.install deleted file mode 100755 index ccd90741..00000000 --- a/build/deb/debian/blockbook-bcash.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/bcash/bin -cert /opt/coins/blockbook/bcash -static /opt/coins/blockbook/bcash -configs/bcash.json => /opt/coins/blockbook/bcash/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/bcash/bin diff --git a/build/deb/debian/blockbook-bcash.links b/build/deb/debian/blockbook-bcash.links deleted file mode 100644 index 3d1bc911..00000000 --- a/build/deb/debian/blockbook-bcash.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/bcash/cert/testcert.crt /opt/coins/blockbook/bcash/cert/blockbook.crt -/opt/coins/blockbook/bcash/cert/testcert.key /opt/coins/blockbook/bcash/cert/blockbook.key diff --git a/build/deb/debian/blockbook-bcash.postinst b/build/deb/debian/blockbook-bcash.postinst deleted file mode 100644 index 52f36399..00000000 --- a/build/deb/debian/blockbook-bcash.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-bcash &> /dev/null - then - useradd --system -M -U blockbook-bcash -s /bin/false - fi - - for dir in /opt/coins/data/bcash/blockbook /opt/coins/blockbook/bcash/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-bcash" ] - then - chown -R blockbook-bcash:blockbook-bcash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-bcash.service b/build/deb/debian/blockbook-bcash.service deleted file mode 100644 index 0dc29e39..00000000 --- a/build/deb/debian/blockbook-bcash.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-bcash.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Bcash mainnet) -After=network.target -Wants=backend-bcash.service - -[Service] -ExecStart=/opt/coins/blockbook/bcash/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bcash/config/blockchaincfg.json -datadir=/opt/coins/data/bcash/blockbook/db -sync -httpserver=:9031 -socketio=:9131 -certfile=/opt/coins/blockbook/bcash/cert/blockbook -explorer=https://bitcoincash.blockexplorer.com/ -log_dir=/opt/coins/blockbook/bcash/logs -User=blockbook-bcash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/bcash - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-bgold.conffiles b/build/deb/debian/blockbook-bgold.conffiles deleted file mode 100644 index ae1dd9e3..00000000 --- a/build/deb/debian/blockbook-bgold.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/bgold/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-bgold.cron.daily b/build/deb/debian/blockbook-bgold.cron.daily deleted file mode 100644 index e35bc5f6..00000000 --- a/build/deb/debian/blockbook-bgold.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/bgold/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-bgold.dirs b/build/deb/debian/blockbook-bgold.dirs deleted file mode 100644 index c9763c5b..00000000 --- a/build/deb/debian/blockbook-bgold.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/bgold/blockbook -/opt/coins/blockbook/bgold/logs diff --git a/build/deb/debian/blockbook-bgold.install b/build/deb/debian/blockbook-bgold.install deleted file mode 100755 index 0da6bda1..00000000 --- a/build/deb/debian/blockbook-bgold.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/bgold/bin -cert /opt/coins/blockbook/bgold -static /opt/coins/blockbook/bgold -configs/bgold.json => /opt/coins/blockbook/bgold/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/bgold/bin diff --git a/build/deb/debian/blockbook-bgold.links b/build/deb/debian/blockbook-bgold.links deleted file mode 100644 index 2e7f975b..00000000 --- a/build/deb/debian/blockbook-bgold.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/bgold/cert/testcert.crt /opt/coins/blockbook/bgold/cert/blockbook.crt -/opt/coins/blockbook/bgold/cert/testcert.key /opt/coins/blockbook/bgold/cert/blockbook.key diff --git a/build/deb/debian/blockbook-bgold.postinst b/build/deb/debian/blockbook-bgold.postinst deleted file mode 100644 index c51d2164..00000000 --- a/build/deb/debian/blockbook-bgold.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-bgold &> /dev/null - then - useradd --system -M -U blockbook-bgold -s /bin/false - fi - - for dir in /opt/coins/data/bgold/blockbook /opt/coins/blockbook/bgold/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-bgold" ] - then - chown -R blockbook-bgold:blockbook-bgold $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-bgold.service b/build/deb/debian/blockbook-bgold.service deleted file mode 100644 index d3e00985..00000000 --- a/build/deb/debian/blockbook-bgold.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-bgold.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Bitcoin Gold mainnet) -After=network.target -Wants=backend-bgold.service - -[Service] -ExecStart=/opt/coins/blockbook/bgold/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bgold/config/blockchaincfg.json -datadir=/opt/coins/data/bgold/blockbook/db -sync -httpserver=:9035 -socketio=:9135 -certfile=/opt/coins/blockbook/bgold/cert/blockbook -explorer=https://explorer.bitcoingold.org/ -log_dir=/opt/coins/blockbook/bgold/logs -User=blockbook-bgold -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/bgold - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-bitcoin-testnet.conffiles b/build/deb/debian/blockbook-bitcoin-testnet.conffiles deleted file mode 100644 index 92125db8..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/bitcoin_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-bitcoin-testnet.cron.daily b/build/deb/debian/blockbook-bitcoin-testnet.cron.daily deleted file mode 100644 index df131d31..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/bitcoin_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-bitcoin-testnet.dirs b/build/deb/debian/blockbook-bitcoin-testnet.dirs deleted file mode 100644 index a18466ea..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/bitcoin_testnet/blockbook -/opt/coins/blockbook/bitcoin_testnet/logs diff --git a/build/deb/debian/blockbook-bitcoin-testnet.install b/build/deb/debian/blockbook-bitcoin-testnet.install deleted file mode 100755 index aae85658..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/bitcoin_testnet/bin -cert /opt/coins/blockbook/bitcoin_testnet -static /opt/coins/blockbook/bitcoin_testnet -configs/bitcoin_testnet.json => /opt/coins/blockbook/bitcoin_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/bitcoin_testnet/bin diff --git a/build/deb/debian/blockbook-bitcoin-testnet.links b/build/deb/debian/blockbook-bitcoin-testnet.links deleted file mode 100644 index f60dbadf..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/bitcoin_testnet/cert/testcert.crt /opt/coins/blockbook/bitcoin_testnet/cert/blockbook.crt -/opt/coins/blockbook/bitcoin_testnet/cert/testcert.key /opt/coins/blockbook/bitcoin_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-bitcoin-testnet.postinst b/build/deb/debian/blockbook-bitcoin-testnet.postinst deleted file mode 100644 index 8f4637ce..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-bitcoin &> /dev/null - then - useradd --system -M -U blockbook-bitcoin -s /bin/false - fi - - for dir in /opt/coins/data/bitcoin_testnet/blockbook /opt/coins/blockbook/bitcoin_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-bitcoin" ] - then - chown -R blockbook-bitcoin:blockbook-bitcoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-bitcoin-testnet.service b/build/deb/debian/blockbook-bitcoin-testnet.service deleted file mode 100644 index a9de2f1b..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-bitcoin-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Bitcoin testnet) -After=network.target -Wants=backend-bitcoin-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/bitcoin_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bitcoin_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/bitcoin_testnet/blockbook/db -sync -httpserver=:19030 -socketio=:19130 -certfile=/opt/coins/blockbook/bitcoin_testnet/cert/blockbook -explorer=https://btc-testnet-explorer.trezor.io/ -log_dir=/opt/coins/blockbook/bitcoin_testnet/logs -User=blockbook-bitcoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/bitcoin_testnet - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-bitcoin.conffiles b/build/deb/debian/blockbook-bitcoin.conffiles deleted file mode 100644 index bfdf0a35..00000000 --- a/build/deb/debian/blockbook-bitcoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/bitcoin/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-bitcoin.cron.daily b/build/deb/debian/blockbook-bitcoin.cron.daily deleted file mode 100644 index 87303379..00000000 --- a/build/deb/debian/blockbook-bitcoin.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/bitcoin/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-bitcoin.dirs b/build/deb/debian/blockbook-bitcoin.dirs deleted file mode 100644 index 342d1763..00000000 --- a/build/deb/debian/blockbook-bitcoin.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/bitcoin/blockbook -/opt/coins/blockbook/bitcoin/logs diff --git a/build/deb/debian/blockbook-bitcoin.install b/build/deb/debian/blockbook-bitcoin.install deleted file mode 100755 index 23cf878e..00000000 --- a/build/deb/debian/blockbook-bitcoin.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/bitcoin/bin -cert /opt/coins/blockbook/bitcoin -static /opt/coins/blockbook/bitcoin -configs/bitcoin.json => /opt/coins/blockbook/bitcoin/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/bitcoin/bin diff --git a/build/deb/debian/blockbook-bitcoin.links b/build/deb/debian/blockbook-bitcoin.links deleted file mode 100644 index 322c6cf1..00000000 --- a/build/deb/debian/blockbook-bitcoin.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/bitcoin/cert/testcert.crt /opt/coins/blockbook/bitcoin/cert/blockbook.crt -/opt/coins/blockbook/bitcoin/cert/testcert.key /opt/coins/blockbook/bitcoin/cert/blockbook.key diff --git a/build/deb/debian/blockbook-bitcoin.postinst b/build/deb/debian/blockbook-bitcoin.postinst deleted file mode 100644 index 87945f88..00000000 --- a/build/deb/debian/blockbook-bitcoin.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-bitcoin &> /dev/null - then - useradd --system -M -U blockbook-bitcoin -s /bin/false - fi - - for dir in /opt/coins/data/bitcoin/blockbook /opt/coins/blockbook/bitcoin/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-bitcoin" ] - then - chown -R blockbook-bitcoin:blockbook-bitcoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-bitcoin.service b/build/deb/debian/blockbook-bitcoin.service deleted file mode 100644 index 1da3f0fe..00000000 --- a/build/deb/debian/blockbook-bitcoin.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-bitcoin.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Bitcoin mainnet) -After=network.target -Wants=backend-bitcoin.service - -[Service] -ExecStart=/opt/coins/blockbook/bitcoin/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bitcoin/config/blockchaincfg.json -datadir=/opt/coins/data/bitcoin/blockbook/db -sync -httpserver=:9030 -socketio=:9130 -certfile=/opt/coins/blockbook/bitcoin/cert/blockbook -explorer=https://btc-explorer.trezor.io/ -log_dir=/opt/coins/blockbook/bitcoin/logs -User=blockbook-bitcoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/bitcoin - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-dash-testnet.conffiles b/build/deb/debian/blockbook-dash-testnet.conffiles deleted file mode 100644 index e08c4c86..00000000 --- a/build/deb/debian/blockbook-dash-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/dash_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-dash-testnet.cron.daily b/build/deb/debian/blockbook-dash-testnet.cron.daily deleted file mode 100644 index 9c293fb2..00000000 --- a/build/deb/debian/blockbook-dash-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/dash_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-dash-testnet.dirs b/build/deb/debian/blockbook-dash-testnet.dirs deleted file mode 100644 index fa8b8ee8..00000000 --- a/build/deb/debian/blockbook-dash-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/dash_testnet/blockbook -/opt/coins/blockbook/dash_testnet/logs diff --git a/build/deb/debian/blockbook-dash-testnet.install b/build/deb/debian/blockbook-dash-testnet.install deleted file mode 100755 index a581ae9f..00000000 --- a/build/deb/debian/blockbook-dash-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/dash_testnet/bin -cert /opt/coins/blockbook/dash_testnet -static /opt/coins/blockbook/dash_testnet -configs/dash_testnet.json => /opt/coins/blockbook/dash_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/dash_testnet/bin diff --git a/build/deb/debian/blockbook-dash-testnet.links b/build/deb/debian/blockbook-dash-testnet.links deleted file mode 100644 index 1d915f43..00000000 --- a/build/deb/debian/blockbook-dash-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/dash_testnet/cert/testcert.crt /opt/coins/blockbook/dash_testnet/cert/blockbook.crt -/opt/coins/blockbook/dash_testnet/cert/testcert.key /opt/coins/blockbook/dash_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-dash-testnet.postinst b/build/deb/debian/blockbook-dash-testnet.postinst deleted file mode 100644 index fb2ff016..00000000 --- a/build/deb/debian/blockbook-dash-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-dash &> /dev/null - then - useradd --system -M -U blockbook-dash -s /bin/false - fi - - for dir in /opt/coins/data/dash_testnet/blockbook /opt/coins/blockbook/dash_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-dash" ] - then - chown -R blockbook-dash:blockbook-dash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-dash-testnet.service b/build/deb/debian/blockbook-dash-testnet.service deleted file mode 100644 index 5f3eb719..00000000 --- a/build/deb/debian/blockbook-dash-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-dash-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Dash testnet) -After=network.target -Wants=backend-dash-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/dash_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/dash_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/dash_testnet/blockbook/db -sync -httpserver=:19033 -socketio=:19133 -certfile=/opt/coins/blockbook/dash_testnet/cert/blockbook -explorer=https://dash-explorer.trezor.io/ -log_dir=/opt/coins/blockbook/dash_testnet/logs -User=blockbook-dash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/dash_testnet - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-dash.conffiles b/build/deb/debian/blockbook-dash.conffiles deleted file mode 100644 index e228f725..00000000 --- a/build/deb/debian/blockbook-dash.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/dash/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-dash.cron.daily b/build/deb/debian/blockbook-dash.cron.daily deleted file mode 100644 index 0dd836dc..00000000 --- a/build/deb/debian/blockbook-dash.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/dash/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-dash.dirs b/build/deb/debian/blockbook-dash.dirs deleted file mode 100644 index 5b20974e..00000000 --- a/build/deb/debian/blockbook-dash.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/dash/blockbook -/opt/coins/blockbook/dash/logs diff --git a/build/deb/debian/blockbook-dash.install b/build/deb/debian/blockbook-dash.install deleted file mode 100755 index aaee4542..00000000 --- a/build/deb/debian/blockbook-dash.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/dash/bin -cert /opt/coins/blockbook/dash -static /opt/coins/blockbook/dash -configs/dash.json => /opt/coins/blockbook/dash/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/dash/bin diff --git a/build/deb/debian/blockbook-dash.links b/build/deb/debian/blockbook-dash.links deleted file mode 100644 index 5df68a1c..00000000 --- a/build/deb/debian/blockbook-dash.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/dash/cert/testcert.crt /opt/coins/blockbook/dash/cert/blockbook.crt -/opt/coins/blockbook/dash/cert/testcert.key /opt/coins/blockbook/dash/cert/blockbook.key diff --git a/build/deb/debian/blockbook-dash.postinst b/build/deb/debian/blockbook-dash.postinst deleted file mode 100644 index 4e259841..00000000 --- a/build/deb/debian/blockbook-dash.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-dash &> /dev/null - then - useradd --system -M -U blockbook-dash -s /bin/false - fi - - for dir in /opt/coins/data/dash/blockbook /opt/coins/blockbook/dash/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-dash" ] - then - chown -R blockbook-dash:blockbook-dash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-dash.service b/build/deb/debian/blockbook-dash.service deleted file mode 100644 index f4838f63..00000000 --- a/build/deb/debian/blockbook-dash.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-dash.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Dash mainnet) -After=network.target -Wants=backend-dash.service - -[Service] -ExecStart=/opt/coins/blockbook/dash/bin/blockbook -blockchaincfg=/opt/coins/blockbook/dash/config/blockchaincfg.json -datadir=/opt/coins/data/dash/blockbook/db -sync -httpserver=:9033 -socketio=:9133 -certfile=/opt/coins/blockbook/dash/cert/blockbook -explorer=https://dash-explorer.trezor.io/ -log_dir=/opt/coins/blockbook/dash/logs -User=blockbook-dash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/dash - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-dogecoin.conffiles b/build/deb/debian/blockbook-dogecoin.conffiles deleted file mode 100644 index b2cd43e9..00000000 --- a/build/deb/debian/blockbook-dogecoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/dogecoin/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-dogecoin.cron.daily b/build/deb/debian/blockbook-dogecoin.cron.daily deleted file mode 100644 index 2e3cd8f4..00000000 --- a/build/deb/debian/blockbook-dogecoin.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/dogecoin/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-dogecoin.dirs b/build/deb/debian/blockbook-dogecoin.dirs deleted file mode 100644 index 734baa69..00000000 --- a/build/deb/debian/blockbook-dogecoin.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/dogecoin/blockbook -/opt/coins/blockbook/dogecoin/logs diff --git a/build/deb/debian/blockbook-dogecoin.install b/build/deb/debian/blockbook-dogecoin.install deleted file mode 100755 index ee846bf9..00000000 --- a/build/deb/debian/blockbook-dogecoin.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/dogecoin/bin -cert /opt/coins/blockbook/dogecoin -static /opt/coins/blockbook/dogecoin -configs/dogecoin.json => /opt/coins/blockbook/dogecoin/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/dogecoin/bin diff --git a/build/deb/debian/blockbook-dogecoin.links b/build/deb/debian/blockbook-dogecoin.links deleted file mode 100644 index b8c6ebe5..00000000 --- a/build/deb/debian/blockbook-dogecoin.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/dogecoin/cert/testcert.crt /opt/coins/blockbook/dogecoin/cert/blockbook.crt -/opt/coins/blockbook/dogecoin/cert/testcert.key /opt/coins/blockbook/dogecoin/cert/blockbook.key diff --git a/build/deb/debian/blockbook-dogecoin.postinst b/build/deb/debian/blockbook-dogecoin.postinst deleted file mode 100644 index 383110d5..00000000 --- a/build/deb/debian/blockbook-dogecoin.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-dogecoin &> /dev/null - then - useradd --system -M -U blockbook-dogecoin -s /bin/false - fi - - for dir in /opt/coins/data/dogecoin/blockbook /opt/coins/blockbook/dogecoin/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-dogecoin" ] - then - chown -R blockbook-dogecoin:blockbook-dogecoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-dogecoin.service b/build/deb/debian/blockbook-dogecoin.service deleted file mode 100644 index 00d2dd19..00000000 --- a/build/deb/debian/blockbook-dogecoin.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-dogecoin.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Dogecoin mainnet) -After=network.target -Wants=backend-dogecoin.service - -[Service] -ExecStart=/opt/coins/blockbook/dogecoin/bin/blockbook -blockchaincfg=/opt/coins/blockbook/dogecoin/config/blockchaincfg.json -datadir=/opt/coins/data/dogecoin/blockbook/db -sync -httpserver=:9038 -socketio=:9138 -certfile=/opt/coins/blockbook/dogecoin/cert/blockbook -explorer=https://dogechain.info/ -resyncindexperiod=30011 -resyncmempoolperiod=2011 -log_dir=/opt/coins/blockbook/dogecoin/logs -User=blockbook-dogecoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/dogecoin - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.conffiles b/build/deb/debian/blockbook-ethereum-testnet-ropsten.conffiles deleted file mode 100644 index 1de1ede3..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/ethereum_testnet_ropsten/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.cron.daily b/build/deb/debian/blockbook-ethereum-testnet-ropsten.cron.daily deleted file mode 100644 index 90b88dea..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/ethereum_testnet_ropsten/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.dirs b/build/deb/debian/blockbook-ethereum-testnet-ropsten.dirs deleted file mode 100644 index b197ca12..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/ethereum_testnet_ropsten/blockbook -/opt/coins/blockbook/ethereum_testnet_ropsten/logs diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.install b/build/deb/debian/blockbook-ethereum-testnet-ropsten.install deleted file mode 100755 index d5116464..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/ethereum_testnet_ropsten/bin -cert /opt/coins/blockbook/ethereum_testnet_ropsten -static /opt/coins/blockbook/ethereum_testnet_ropsten -configs/ethereum_testnet_ropsten.json => /opt/coins/blockbook/ethereum_testnet_ropsten/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/ethereum_testnet_ropsten/bin diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.links b/build/deb/debian/blockbook-ethereum-testnet-ropsten.links deleted file mode 100644 index 81565550..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/ethereum_testnet_ropsten/cert/testcert.crt /opt/coins/blockbook/ethereum_testnet_ropsten/cert/blockbook.crt -/opt/coins/blockbook/ethereum_testnet_ropsten/cert/testcert.key /opt/coins/blockbook/ethereum_testnet_ropsten/cert/blockbook.key diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.postinst b/build/deb/debian/blockbook-ethereum-testnet-ropsten.postinst deleted file mode 100644 index 738dc5f7..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-ethereum &> /dev/null - then - useradd --system -M -U blockbook-ethereum -s /bin/false - fi - - for dir in /opt/coins/data/ethereum_testnet_ropsten/blockbook /opt/coins/blockbook/ethereum_testnet_ropsten/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-ethereum" ] - then - chown -R blockbook-ethereum:blockbook-ethereum $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.service b/build/deb/debian/blockbook-ethereum-testnet-ropsten.service deleted file mode 100644 index 9769553d..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-ethereum-testnet-ropsten.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Ethereum testnet ropsten) -After=network.target -Wants=backend-ethereum-testnet-ropsten.service - -[Service] -ExecStart=/opt/coins/blockbook/ethereum_testnet_ropsten/bin/blockbook -blockchaincfg=/opt/coins/blockbook/ethereum_testnet_ropsten/config/blockchaincfg.json -datadir=/opt/coins/data/ethereum_testnet_ropsten/blockbook/db -sync -httpserver=:19036 -socketio=:19136 -certfile=/opt/coins/blockbook/ethereum_testnet_ropsten/cert/blockbook -explorer=https://ropsten.etherscan.io/ -log_dir=/opt/coins/blockbook/ethereum_testnet_ropsten/logs -User=blockbook-ethereum -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/ethereum_testnet_ropsten - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-ethereum.conffiles b/build/deb/debian/blockbook-ethereum.conffiles deleted file mode 100644 index 9d3fed9c..00000000 --- a/build/deb/debian/blockbook-ethereum.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/ethereum/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-ethereum.cron.daily b/build/deb/debian/blockbook-ethereum.cron.daily deleted file mode 100644 index a90741d2..00000000 --- a/build/deb/debian/blockbook-ethereum.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/ethereum/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-ethereum.dirs b/build/deb/debian/blockbook-ethereum.dirs deleted file mode 100644 index 9dd4ebc4..00000000 --- a/build/deb/debian/blockbook-ethereum.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/ethereum/blockbook -/opt/coins/blockbook/ethereum/logs diff --git a/build/deb/debian/blockbook-ethereum.install b/build/deb/debian/blockbook-ethereum.install deleted file mode 100755 index 0bda1fbc..00000000 --- a/build/deb/debian/blockbook-ethereum.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/ethereum/bin -cert /opt/coins/blockbook/ethereum -static /opt/coins/blockbook/ethereum -configs/ethereum.json => /opt/coins/blockbook/ethereum/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/ethereum/bin diff --git a/build/deb/debian/blockbook-ethereum.links b/build/deb/debian/blockbook-ethereum.links deleted file mode 100644 index 9a5c6965..00000000 --- a/build/deb/debian/blockbook-ethereum.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/ethereum/cert/testcert.crt /opt/coins/blockbook/ethereum/cert/blockbook.crt -/opt/coins/blockbook/ethereum/cert/testcert.key /opt/coins/blockbook/ethereum/cert/blockbook.key diff --git a/build/deb/debian/blockbook-ethereum.postinst b/build/deb/debian/blockbook-ethereum.postinst deleted file mode 100644 index 87fd699b..00000000 --- a/build/deb/debian/blockbook-ethereum.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-ethereum &> /dev/null - then - useradd --system -M -U blockbook-ethereum -s /bin/false - fi - - for dir in /opt/coins/data/ethereum/blockbook /opt/coins/blockbook/ethereum/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-ethereum" ] - then - chown -R blockbook-ethereum:blockbook-ethereum $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-ethereum.service b/build/deb/debian/blockbook-ethereum.service deleted file mode 100644 index 9d6dc97d..00000000 --- a/build/deb/debian/blockbook-ethereum.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-ethereum.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Ethereum mainnet) -After=network.target -Wants=backend-ethereum.service - -[Service] -ExecStart=/opt/coins/blockbook/ethereum/bin/blockbook -blockchaincfg=/opt/coins/blockbook/ethereum/config/blockchaincfg.json -datadir=/opt/coins/data/ethereum/blockbook/db -sync -httpserver=:9036 -socketio=:9136 -certfile=/opt/coins/blockbook/ethereum/cert/blockbook -explorer=https://etherscan.io/ -log_dir=/opt/coins/blockbook/ethereum/logs -User=blockbook-ethereum -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/ethereum - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-litecoin-testnet.conffiles b/build/deb/debian/blockbook-litecoin-testnet.conffiles deleted file mode 100644 index 37c23600..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/litecoin_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-litecoin-testnet.cron.daily b/build/deb/debian/blockbook-litecoin-testnet.cron.daily deleted file mode 100644 index dc020b29..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/litecoin_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-litecoin-testnet.dirs b/build/deb/debian/blockbook-litecoin-testnet.dirs deleted file mode 100644 index 13a2895e..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/litecoin_testnet/blockbook -/opt/coins/blockbook/litecoin_testnet/logs diff --git a/build/deb/debian/blockbook-litecoin-testnet.install b/build/deb/debian/blockbook-litecoin-testnet.install deleted file mode 100755 index be526a7c..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/litecoin_testnet/bin -cert /opt/coins/blockbook/litecoin_testnet -static /opt/coins/blockbook/litecoin_testnet -configs/litecoin_testnet.json => /opt/coins/blockbook/litecoin_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/litecoin_testnet/bin diff --git a/build/deb/debian/blockbook-litecoin-testnet.links b/build/deb/debian/blockbook-litecoin-testnet.links deleted file mode 100644 index fbc8ec69..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/litecoin_testnet/cert/testcert.crt /opt/coins/blockbook/litecoin_testnet/cert/blockbook.crt -/opt/coins/blockbook/litecoin_testnet/cert/testcert.key /opt/coins/blockbook/litecoin_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-litecoin-testnet.postinst b/build/deb/debian/blockbook-litecoin-testnet.postinst deleted file mode 100644 index 97600e76..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-litecoin &> /dev/null - then - useradd --system -M -U blockbook-litecoin -s /bin/false - fi - - for dir in /opt/coins/data/litecoin_testnet/blockbook /opt/coins/blockbook/litecoin_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-litecoin" ] - then - chown -R blockbook-litecoin:blockbook-litecoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-litecoin-testnet.service b/build/deb/debian/blockbook-litecoin-testnet.service deleted file mode 100644 index d19c9f0a..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-litecoin-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Litecoin testnet) -After=network.target -Wants=backend-litecoin-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/litecoin_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/litecoin_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/litecoin_testnet/blockbook/db -sync -httpserver=:19034 -socketio=:19134 -certfile=/opt/coins/blockbook/litecoin_testnet/cert/blockbook -explorer=http://explorer.litecointools.com/ -log_dir=/opt/coins/blockbook/litecoin_testnet/logs -User=blockbook-litecoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/litecoin_testnet - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-litecoin.conffiles b/build/deb/debian/blockbook-litecoin.conffiles deleted file mode 100644 index bd1d3b15..00000000 --- a/build/deb/debian/blockbook-litecoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/litecoin/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-litecoin.cron.daily b/build/deb/debian/blockbook-litecoin.cron.daily deleted file mode 100644 index 17534506..00000000 --- a/build/deb/debian/blockbook-litecoin.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/litecoin/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-litecoin.dirs b/build/deb/debian/blockbook-litecoin.dirs deleted file mode 100644 index 64a24800..00000000 --- a/build/deb/debian/blockbook-litecoin.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/litecoin/blockbook -/opt/coins/blockbook/litecoin/logs diff --git a/build/deb/debian/blockbook-litecoin.install b/build/deb/debian/blockbook-litecoin.install deleted file mode 100755 index cbde7919..00000000 --- a/build/deb/debian/blockbook-litecoin.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/litecoin/bin -cert /opt/coins/blockbook/litecoin -static /opt/coins/blockbook/litecoin -configs/litecoin.json => /opt/coins/blockbook/litecoin/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/litecoin/bin diff --git a/build/deb/debian/blockbook-litecoin.links b/build/deb/debian/blockbook-litecoin.links deleted file mode 100644 index 412f2c9d..00000000 --- a/build/deb/debian/blockbook-litecoin.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/litecoin/cert/testcert.crt /opt/coins/blockbook/litecoin/cert/blockbook.crt -/opt/coins/blockbook/litecoin/cert/testcert.key /opt/coins/blockbook/litecoin/cert/blockbook.key diff --git a/build/deb/debian/blockbook-litecoin.postinst b/build/deb/debian/blockbook-litecoin.postinst deleted file mode 100644 index de2f7ecc..00000000 --- a/build/deb/debian/blockbook-litecoin.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-litecoin &> /dev/null - then - useradd --system -M -U blockbook-litecoin -s /bin/false - fi - - for dir in /opt/coins/data/litecoin/blockbook /opt/coins/blockbook/litecoin/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-litecoin" ] - then - chown -R blockbook-litecoin:blockbook-litecoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-litecoin.service b/build/deb/debian/blockbook-litecoin.service deleted file mode 100644 index 9833d60d..00000000 --- a/build/deb/debian/blockbook-litecoin.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-litecoin.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Litecoin mainnet) -After=network.target -Wants=backend-litecoin.service - -[Service] -ExecStart=/opt/coins/blockbook/litecoin/bin/blockbook -blockchaincfg=/opt/coins/blockbook/litecoin/config/blockchaincfg.json -datadir=/opt/coins/data/litecoin/blockbook/db -sync -httpserver=:9034 -socketio=:9134 -certfile=/opt/coins/blockbook/litecoin/cert/blockbook -explorer=https://ltc-explorer.trezor.io/ -log_dir=/opt/coins/blockbook/litecoin/logs -User=blockbook-litecoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/litecoin - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-namecoin.conffiles b/build/deb/debian/blockbook-namecoin.conffiles deleted file mode 100644 index 0a22d717..00000000 --- a/build/deb/debian/blockbook-namecoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/namecoin/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-namecoin.cron.daily b/build/deb/debian/blockbook-namecoin.cron.daily deleted file mode 100644 index dd3a2d73..00000000 --- a/build/deb/debian/blockbook-namecoin.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/namecoin/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-namecoin.dirs b/build/deb/debian/blockbook-namecoin.dirs deleted file mode 100644 index 83f92862..00000000 --- a/build/deb/debian/blockbook-namecoin.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/namecoin/blockbook -/opt/coins/blockbook/namecoin/logs diff --git a/build/deb/debian/blockbook-namecoin.install b/build/deb/debian/blockbook-namecoin.install deleted file mode 100755 index 603f1500..00000000 --- a/build/deb/debian/blockbook-namecoin.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/namecoin/bin -cert /opt/coins/blockbook/namecoin -static /opt/coins/blockbook/namecoin -configs/namecoin.json => /opt/coins/blockbook/namecoin/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/namecoin/bin diff --git a/build/deb/debian/blockbook-namecoin.links b/build/deb/debian/blockbook-namecoin.links deleted file mode 100644 index 12f9e387..00000000 --- a/build/deb/debian/blockbook-namecoin.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/namecoin/cert/testcert.crt /opt/coins/blockbook/namecoin/cert/blockbook.crt -/opt/coins/blockbook/namecoin/cert/testcert.key /opt/coins/blockbook/namecoin/cert/blockbook.key diff --git a/build/deb/debian/blockbook-namecoin.postinst b/build/deb/debian/blockbook-namecoin.postinst deleted file mode 100644 index 81a4a97a..00000000 --- a/build/deb/debian/blockbook-namecoin.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-namecoin &> /dev/null - then - useradd --system -M -U blockbook-namecoin -s /bin/false - fi - - for dir in /opt/coins/data/namecoin/blockbook /opt/coins/blockbook/namecoin/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-namecoin" ] - then - chown -R blockbook-namecoin:blockbook-namecoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-namecoin.service b/build/deb/debian/blockbook-namecoin.service deleted file mode 100644 index db5f440b..00000000 --- a/build/deb/debian/blockbook-namecoin.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-namecoin.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Namecoin mainnet) -After=network.target -Wants=backend-namecoin.service - -[Service] -ExecStart=/opt/coins/blockbook/namecoin/bin/blockbook -blockchaincfg=/opt/coins/blockbook/namecoin/config/blockchaincfg.json -datadir=/opt/coins/data/namecoin/blockbook/db -sync -httpserver=:9039 -socketio=:9139 -certfile=/opt/coins/blockbook/namecoin/cert/blockbook -explorer=https://namecha.in/ -log_dir=/opt/coins/blockbook/namecoin/logs -User=blockbook-namecoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/namecoin - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-tools.install b/build/deb/debian/blockbook-tools.install deleted file mode 100644 index 6dda8cf4..00000000 --- a/build/deb/debian/blockbook-tools.install +++ /dev/null @@ -1,2 +0,0 @@ -ldb /opt/coins/blockbook/tools -sst_dump /opt/coins/blockbook/tools diff --git a/build/deb/debian/blockbook-tools.links b/build/deb/debian/blockbook-tools.links deleted file mode 100644 index e72bfe7f..00000000 --- a/build/deb/debian/blockbook-tools.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/tools/ldb /usr/bin/ldb -/opt/coins/blockbook/tools/sst_dump /usr/bin/sst_dump diff --git a/build/deb/debian/blockbook-vertcoin-testnet.conffiles b/build/deb/debian/blockbook-vertcoin-testnet.conffiles deleted file mode 100644 index bd430e24..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/vertcoin_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-vertcoin-testnet.cron.daily b/build/deb/debian/blockbook-vertcoin-testnet.cron.daily deleted file mode 100644 index fa2948c5..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/vertcoin_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-vertcoin-testnet.dirs b/build/deb/debian/blockbook-vertcoin-testnet.dirs deleted file mode 100644 index 56e480b5..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/vertcoin_testnet/blockbook -/opt/coins/blockbook/vertcoin_testnet/logs diff --git a/build/deb/debian/blockbook-vertcoin-testnet.install b/build/deb/debian/blockbook-vertcoin-testnet.install deleted file mode 100755 index 31fd887c..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/vertcoin_testnet/bin -cert /opt/coins/blockbook/vertcoin_testnet -static /opt/coins/blockbook/vertcoin_testnet -configs/vertcoin_testnet.json => /opt/coins/blockbook/vertcoin_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/vertcoin_testnet/bin diff --git a/build/deb/debian/blockbook-vertcoin-testnet.links b/build/deb/debian/blockbook-vertcoin-testnet.links deleted file mode 100644 index c5f3c713..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/vertcoin_testnet/cert/testcert.crt /opt/coins/blockbook/vertcoin_testnet/cert/blockbook.crt -/opt/coins/blockbook/vertcoin_testnet/cert/testcert.key /opt/coins/blockbook/vertcoin_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-vertcoin-testnet.postinst b/build/deb/debian/blockbook-vertcoin-testnet.postinst deleted file mode 100644 index 158bd67c..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-vertcoin &> /dev/null - then - useradd --system -M -U blockbook-vertcoin -s /bin/false - fi - - for dir in /opt/coins/data/vertcoin_testnet/blockbook /opt/coins/blockbook/vertcoin_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-vertcoin" ] - then - chown -R blockbook-vertcoin:blockbook-vertcoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-vertcoin-testnet.service b/build/deb/debian/blockbook-vertcoin-testnet.service deleted file mode 100644 index 9d391f83..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-vertcoin-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Vertcoin testnet) -After=network.target -Wants=backend-vertcoin-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/vertcoin_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/vertcoin_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/vertcoin_testnet/blockbook/db -sync -httpserver=:19040 -socketio=:19140 -certfile=/opt/coins/blockbook/vertcoin_testnet/cert/blockbook -explorer=http://explorer.vertcointools.com/ -log_dir=/opt/coins/blockbook/vertcoin_testnet/logs -User=blockbook-vertcoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/vertcoin_testnet - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-vertcoin.conffiles b/build/deb/debian/blockbook-vertcoin.conffiles deleted file mode 100644 index 50db5a5b..00000000 --- a/build/deb/debian/blockbook-vertcoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/vertcoin/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-vertcoin.cron.daily b/build/deb/debian/blockbook-vertcoin.cron.daily deleted file mode 100644 index f4a8a2c9..00000000 --- a/build/deb/debian/blockbook-vertcoin.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/vertcoin/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-vertcoin.dirs b/build/deb/debian/blockbook-vertcoin.dirs deleted file mode 100644 index 5b381887..00000000 --- a/build/deb/debian/blockbook-vertcoin.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/vertcoin/blockbook -/opt/coins/blockbook/vertcoin/logs diff --git a/build/deb/debian/blockbook-vertcoin.install b/build/deb/debian/blockbook-vertcoin.install deleted file mode 100755 index 7fdafb01..00000000 --- a/build/deb/debian/blockbook-vertcoin.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/vertcoin/bin -cert /opt/coins/blockbook/vertcoin -static /opt/coins/blockbook/vertcoin -configs/vertcoin.json => /opt/coins/blockbook/vertcoin/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/vertcoin/bin diff --git a/build/deb/debian/blockbook-vertcoin.links b/build/deb/debian/blockbook-vertcoin.links deleted file mode 100644 index bf9efb36..00000000 --- a/build/deb/debian/blockbook-vertcoin.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/vertcoin/cert/testcert.crt /opt/coins/blockbook/vertcoin/cert/blockbook.crt -/opt/coins/blockbook/vertcoin/cert/testcert.key /opt/coins/blockbook/vertcoin/cert/blockbook.key diff --git a/build/deb/debian/blockbook-vertcoin.postinst b/build/deb/debian/blockbook-vertcoin.postinst deleted file mode 100644 index 772ac44e..00000000 --- a/build/deb/debian/blockbook-vertcoin.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-vertcoin &> /dev/null - then - useradd --system -M -U blockbook-vertcoin -s /bin/false - fi - - for dir in /opt/coins/data/vertcoin/blockbook /opt/coins/blockbook/vertcoin/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-vertcoin" ] - then - chown -R blockbook-vertcoin:blockbook-vertcoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-vertcoin.service b/build/deb/debian/blockbook-vertcoin.service deleted file mode 100644 index 9f19ba13..00000000 --- a/build/deb/debian/blockbook-vertcoin.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-vertcoin.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Vertcoin mainnet) -After=network.target -Wants=backend-vertcoin.service - -[Service] -ExecStart=/opt/coins/blockbook/vertcoin/bin/blockbook -blockchaincfg=/opt/coins/blockbook/vertcoin/config/blockchaincfg.json -datadir=/opt/coins/data/vertcoin/blockbook/db -sync -httpserver=:9040 -socketio=:9140 -certfile=/opt/coins/blockbook/vertcoin/cert/blockbook -explorer=https://insight.vertcoin.org/ -log_dir=/opt/coins/blockbook/vertcoin/logs -User=blockbook-vertcoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/vertcoin - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-zcash-testnet.conffiles b/build/deb/debian/blockbook-zcash-testnet.conffiles deleted file mode 100644 index eead94ec..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/zcash_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-zcash-testnet.cron.daily b/build/deb/debian/blockbook-zcash-testnet.cron.daily deleted file mode 100644 index 7a1c1565..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/zcash_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-zcash-testnet.dirs b/build/deb/debian/blockbook-zcash-testnet.dirs deleted file mode 100644 index a0192aa5..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/zcash_testnet/blockbook -/opt/coins/blockbook/zcash_testnet/logs diff --git a/build/deb/debian/blockbook-zcash-testnet.install b/build/deb/debian/blockbook-zcash-testnet.install deleted file mode 100755 index 7b3a38bb..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec --with=install -blockbook /opt/coins/blockbook/zcash_testnet/bin -cert /opt/coins/blockbook/zcash_testnet -static /opt/coins/blockbook/zcash_testnet -configs/zcash_testnet.json => /opt/coins/blockbook/zcash_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/zcash_testnet/bin diff --git a/build/deb/debian/blockbook-zcash-testnet.links b/build/deb/debian/blockbook-zcash-testnet.links deleted file mode 100644 index 91974b23..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/zcash_testnet/cert/testcert.crt /opt/coins/blockbook/zcash_testnet/cert/blockbook.crt -/opt/coins/blockbook/zcash_testnet/cert/testcert.key /opt/coins/blockbook/zcash_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-zcash-testnet.postinst b/build/deb/debian/blockbook-zcash-testnet.postinst deleted file mode 100644 index 992d1cc7..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-zcash &> /dev/null - then - useradd --system -M -U blockbook-zcash -s /bin/false - fi - - for dir in /opt/coins/data/zcash_testnet/blockbook /opt/coins/blockbook/zcash_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-zcash" ] - then - chown -R blockbook-zcash:blockbook-zcash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-zcash-testnet.service b/build/deb/debian/blockbook-zcash-testnet.service deleted file mode 100644 index cd190610..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-zcash-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Zcash Testnet) -After=network.target -Wants=backend-zcash-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/zcash_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/zcash_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/zcash_testnet/blockbook/db -sync -httpserver=:19032 -socketio=:19132 -certfile=/opt/coins/blockbook/zcash_testnet/cert/blockbook -explorer=https://explorer.testnet.z.cash/ -log_dir=/opt/coins/blockbook/zcash_testnet/logs -User=blockbook-zcash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/zcash_testnet - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/blockbook-zcash.conffiles b/build/deb/debian/blockbook-zcash.conffiles deleted file mode 100644 index fe178b66..00000000 --- a/build/deb/debian/blockbook-zcash.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/zcash/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-zcash.cron.daily b/build/deb/debian/blockbook-zcash.cron.daily deleted file mode 100644 index 1d5ffc06..00000000 --- a/build/deb/debian/blockbook-zcash.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/zcash/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-zcash.dirs b/build/deb/debian/blockbook-zcash.dirs deleted file mode 100644 index 9f54ae06..00000000 --- a/build/deb/debian/blockbook-zcash.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/zcash/blockbook -/opt/coins/blockbook/zcash/logs diff --git a/build/deb/debian/blockbook-zcash.install b/build/deb/debian/blockbook-zcash.install deleted file mode 100755 index 5305ac28..00000000 --- a/build/deb/debian/blockbook-zcash.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec --with=install -blockbook /opt/coins/blockbook/zcash/bin -cert /opt/coins/blockbook/zcash -static /opt/coins/blockbook/zcash -configs/zcash.json => /opt/coins/blockbook/zcash/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/zcash/bin diff --git a/build/deb/debian/blockbook-zcash.links b/build/deb/debian/blockbook-zcash.links deleted file mode 100644 index 4184e473..00000000 --- a/build/deb/debian/blockbook-zcash.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/zcash/cert/testcert.crt /opt/coins/blockbook/zcash/cert/blockbook.crt -/opt/coins/blockbook/zcash/cert/testcert.key /opt/coins/blockbook/zcash/cert/blockbook.key diff --git a/build/deb/debian/blockbook-zcash.postinst b/build/deb/debian/blockbook-zcash.postinst deleted file mode 100644 index a3b70cbd..00000000 --- a/build/deb/debian/blockbook-zcash.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-zcash &> /dev/null - then - useradd --system -M -U blockbook-zcash -s /bin/false - fi - - for dir in /opt/coins/data/zcash/blockbook /opt/coins/blockbook/zcash/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-zcash" ] - then - chown -R blockbook-zcash:blockbook-zcash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-zcash.service b/build/deb/debian/blockbook-zcash.service deleted file mode 100644 index e7933e0c..00000000 --- a/build/deb/debian/blockbook-zcash.service +++ /dev/null @@ -1,43 +0,0 @@ -# It is not recommended to modify this file in-place, because it will -# be overwritten during package upgrades. If you want to add further -# options or overwrite existing ones then use -# $ systemctl edit blockbook-zcash.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Zcash mainnet) -After=network.target -Wants=backend-zcash.service - -[Service] -ExecStart=/opt/coins/blockbook/zcash/bin/blockbook -blockchaincfg=/opt/coins/blockbook/zcash/config/blockchaincfg.json -datadir=/opt/coins/data/zcash/blockbook/db -sync -httpserver=:9032 -socketio=:9132 -certfile=/opt/coins/blockbook/zcash/cert/blockbook -explorer=https://zcash.blockexplorer.com/ -log_dir=/opt/coins/blockbook/zcash/logs -User=blockbook-zcash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/zcash - -# Resource limits -LimitNOFILE=500000 - -# Hardening measures -#################### - -# Provide a private /tmp and /var/tmp. -PrivateTmp=true - -# Mount /usr, /boot/ and /etc read-only for the process. -ProtectSystem=full - -# Disallow the process and all of its children to gain -# new privileges through execve(). -NoNewPrivileges=true - -# Use a new /dev namespace only populated with API pseudo devices -# such as /dev/null, /dev/zero and /dev/random. -PrivateDevices=true - -# Deny the creation of writable and executable memory mappings. -MemoryDenyWriteExecute=true - -[Install] -WantedBy=multi-user.target diff --git a/build/deb/debian/changelog b/build/deb/debian/changelog deleted file mode 100644 index 145f129d..00000000 --- a/build/deb/debian/changelog +++ /dev/null @@ -1,35 +0,0 @@ -blockbook (0.0.6) unstable; urgency=medium - - * v0.0.6 - - -- Martin Bohm Fri, 08 Jun 2018 11:12:13 +0200 - -blockbook (0.0.5) unstable; urgency=medium - - * v0.0.5, renamed packages and coins - - -- Martin Bohm Wed, 06 Jun 2018 11:12:13 +0200 - -blockbook (0.0.4) unstable; urgency=medium - - * v0.0.4 - - -- Martin Bohm Wed, 30 May 2018 14:47:21 +0200 - -blockbook (0.0.3) unstable; urgency=medium - - * v0.0.3 - - -- Jakub Matys Wed, 23 May 2018 11:19:59 +0200 - -blockbook (0.0.2) unstable; urgency=medium - - * v0.0.2 - - -- Jakub Matys Mon, 14 May 2018 15:53:15 +0200 - -blockbook (0.0.1-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Jakub Matys Fri, 06 Apr 2018 12:44:25 +0200 diff --git a/build/deb/debian/compat b/build/deb/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/build/deb/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/build/deb/debian/control b/build/deb/debian/control deleted file mode 100644 index 949767ff..00000000 --- a/build/deb/debian/control +++ /dev/null @@ -1,96 +0,0 @@ -Source: blockbook -Section: satoshilabs -Priority: optional -Maintainer: jakub.matys@satoshilabs.com -Build-Depends: debhelper, dh-systemd, dh-exec -Standards-Version: 3.9.5 - -Package: blockbook-tools -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: Satoshilabs blockbook server (tools) - -Package: blockbook-bitcoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bitcoin -Description: Satoshilabs blockbook server (Bitcoin mainnet) - -Package: blockbook-bitcoin-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bitcoin-testnet -Description: Satoshilabs blockbook server (Bitcoin testnet) - -Package: blockbook-zcash -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-zcash -Description: Satoshilabs blockbook server (ZCash mainnet) - -Package: blockbook-zcash-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-zcash-testnet -Description: Satoshilabs blockbook server (ZCash testnet) - -Package: blockbook-bcash -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bcash -Description: Satoshilabs blockbook server (Bitcoin Cash mainnet) - -Package: blockbook-bcash-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bcash-testnet -Description: Satoshilabs blockbook server (Bitcoin Cash testnet) - -Package: blockbook-bgold -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bgold -Description: Satoshilabs blockbook server (Bitcoin Gold mainnet) - -Package: blockbook-dash -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-dash -Description: Satoshilabs blockbook server (Dash mainnet) - -Package: blockbook-dash-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-dash-testnet -Description: Satoshilabs blockbook server (Dash testnet) - -Package: blockbook-litecoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-litecoin -Description: Satoshilabs blockbook server (Litecoin mainnet) - -Package: blockbook-litecoin-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-litecoin-testnet -Description: Satoshilabs blockbook server (Litecoin testnet) - -Package: blockbook-ethereum -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-ethereum -Description: Satoshilabs blockbook server (Ethereum mainnet) - -Package: blockbook-ethereum-testnet-ropsten -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-ethereum-testnet-ropsten -Description: Satoshilabs blockbook server (Ethereum testnet ropsten) - -Package: blockbook-dogecoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-dogecoin -Description: Satoshilabs blockbook server (Dogecoin mainnet) - -Package: blockbook-vertcoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-vertcoin -Description: Satoshilabs blockbook server (Vertcoin mainnet) - -Package: blockbook-vertcoin-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-vertcoin-testnet -Description: Satoshilabs blockbook server (Vertcoin testnet) - -Package: blockbook-namecoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-namecoin -Description: Satoshilabs blockbook server (Namecoin mainnet) diff --git a/build/deb/debian/rules b/build/deb/debian/rules deleted file mode 100755 index 12271a0c..00000000 --- a/build/deb/debian/rules +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/make -f - -DH_VERBOSE = 1 - -%: - dh $@ --with=systemd - -override_dh_strip: - -override_dh_systemd_start: - dh_systemd_start --no-start - -override_dh_installinit: diff --git a/build/deb/logrotate.sh b/build/deb/logrotate.sh deleted file mode 100755 index 8bce66bb..00000000 --- a/build/deb/logrotate.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -set -e - -LOGS=$(readlink -f $(dirname $0)/../logs) - -find $LOGS -mtime +30 -type f -print0 | while read -r -d $'\0' log; do - # remove log if isn't opened by any process - if ! fuser -s $log; then - rm -f $log - fi -done diff --git a/build/bin/Dockerfile b/build/docker/bin/Dockerfile similarity index 100% rename from build/bin/Dockerfile rename to build/docker/bin/Dockerfile diff --git a/build/bin/Makefile b/build/docker/bin/Makefile similarity index 100% rename from build/bin/Makefile rename to build/docker/bin/Makefile diff --git a/build/deb/Dockerfile b/build/docker/deb/Dockerfile similarity index 80% rename from build/deb/Dockerfile rename to build/docker/deb/Dockerfile index c924f02f..a20c219f 100644 --- a/build/deb/Dockerfile +++ b/build/docker/deb/Dockerfile @@ -7,7 +7,9 @@ RUN apt-get update && \ apt-get install -y devscripts debhelper make dh-systemd dh-exec && \ apt-get clean +ADD gpg-keys /tmp/gpg-keys +RUN gpg --import /tmp/gpg-keys/* + ADD build-deb.sh /build/build-deb.sh -ADD logrotate.sh /build/logrotate.sh WORKDIR /build diff --git a/build/docker/deb/build-deb.sh b/build/docker/deb/build-deb.sh new file mode 100755 index 00000000..7686d348 --- /dev/null +++ b/build/docker/deb/build-deb.sh @@ -0,0 +1,35 @@ +#!/bin/bash +set -e + +if [ $# -lt 2 ]; then + echo "Missing arugments" 1>&2 + echo "Usage: $(basename $0) [build opts]" 1>&2 + exit 1 +fi + +package=$1 +coin=$(echo "$2" | tr '-' '_') +shift 2 + +cp -r /src/build/templates . +cp -r /src/configs . +go run templates/generate.go $coin + +# backend +if [ $package = "backend" ] || [ $package = "all" ]; then + (cd pkg-defs/backend && dpkg-buildpackage -us -uc $@) +fi + +# blockbook +if [ $package = "blockbook" ] || [ $package = "all" ]; then + export VERSION=$(cd pkg-defs/blockbook && dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)([-+~].+)?$/\1/p') + + cp Makefile ldb sst_dump pkg-defs/blockbook + cp -r /src/static pkg-defs/blockbook + mkdir pkg-defs/blockbook/cert && cp /src/server/testcert.* pkg-defs/blockbook/cert + (cd pkg-defs/blockbook && dpkg-buildpackage -us -uc $@) +fi + +# copy packages +mv pkg-defs/*.deb /out +chown $PACKAGER /out/*.deb diff --git a/build/docker/deb/gpg-keys/bgold-releases.asc b/build/docker/deb/gpg-keys/bgold-releases.asc new file mode 100644 index 00000000..611aa642 --- /dev/null +++ b/build/docker/deb/gpg-keys/bgold-releases.asc @@ -0,0 +1,48 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: SKS 1.1.6 +Comment: Hostname: keys2.kfwebs.net + +mQINBFogWlkBEACrT93X6q9UyHyvh9WpfnwaohQVZjiJwmd+swQBzV7zEFFikr5IBc/dcTPe +Boono5g3SSkkQIREjrksqxl9Raf1N9oZrCJqvnZRM7iXH6WuKyCoRx2OlBU72YWlDdk1m4JU +ldPs+s5RogVFtFQA1nCUEZcI8Oh+WMWzEqqkaMcdEpmDbgbCjQBj/Rg+uk08PwOVClQdsLdM +MIdqCaeZhDrY28msGCNslcIlQRcLaVa8WlonhvD8v8C52KWFsDP6EKj/JN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+BMGjK3b+BRvxfeC3YClR5IhsSTfXVLpUrNFO0csIxuJLJ48CDDgX7 +7ia79fEAfKPa7AsYN+Ysy7Xs869b71oDsebCOn2mzF9k7Xh1dEwej+WVQaVdvnGdFlmdhwES +T6UjfI8Mb2pIQdsSKDaflwJi/F3PD/FabjaZBBNMIJX9SonOPT8eDBSpw+CyD3zjFk8qDUIG +lQS5EZBvmDS9fxJY2sGWBItYSeq/BRF1v1NNdFrQh/uZJimHwq9wGf2GRRPhPml91xHrRgzB +ZQrqJB60p6cbCWS+egnW4TIo60oEuQO72PJlcBbj0S1Fc3K6/Wkj5hqOunz57vEmejmFKCfQ +14vBxU8l6aazjyrhZbzCBqniM2U8o14NBQZoSykIsVOH9RsQsccc6UfnXf7emZk2hqko9oNY +ehGtKlE5a78CHNTbcX8wDV/rwr97tI/HrZ1pOxpFr12FpWFE8xdFt9qtE7vTLLLodpE2eqAE +xbXChZ5Q2wEDFxwMxV3aOwEPXio4G+kQXCY3GoIylV6Vos/I2EClofDJvRrvj7h25r5curfm +s312gEVyrWcw+afHwghwAAmktJ3ba6K69/M+3UI3/c9MMvjNaMSkzmaKhbBGE2kZsQ== +=tbce +-----END PGP PUBLIC KEY BLOCK----- diff --git a/build/docker/deb/gpg-keys/bitcoin-releases.asc b/build/docker/deb/gpg-keys/bitcoin-releases.asc new file mode 100644 index 00000000..69fc13e8 --- /dev/null +++ b/build/docker/deb/gpg-keys/bitcoin-releases.asc @@ -0,0 +1,280 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 + +mQINBFWKlBcBEACgZJd/6LrSgNSVxiyq5N9h0E7zgSHG/ahuWAnWeFtxaxHeukH+ +Q2Zq6F8FLbq40PphyroRylMBpzPBcyxjee7mDj1DpJ9ayv6GGPTyQzOImhChEV8p +bA42dvXnB5ju0rPh2GxctbiZZD1kiPH4jlmDIgomvupAj9OFntA5jfkuSFBekZrw +QyZowz/paMBIe24YH2LyaZjC2DqLy8Znh78OfAZxZsW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2isqV9/E1IH80/w1MoQWnSH17XG9HxDmo7EzZkBEvA8r7HGTimi/Ip +FarG56yHmnUtIO+H5L0KJ7f4YPntkDV1BKPIJo9BlSLTJmVy3J6SAreoR1AoYy9r +X8APW2uFBuniZ2c2w6OCj5jMkvE+J/jWdKp6WTMNHAclhi0hicMBs7bt33uKiz4T +cf81eafkZ4JzHZG4EDhXRFO8kelGVcUl29XkdKFe9MRR246vx8LBzsGLnx1bL9gc +COM+wSlIlAR4qjSGBpGuPel+8skb3DgC8j8Cp453FhbXGEKL4ygit8wchhnc1jrk +rPqvassu25H2jLmo4ZrANxvex8CZ/fGHo3lFJqQNGEX/1om3Efo6LKJwtQFO3nTC +A1ZjH/eMyMuk+3sRZCBPbepC80jezxbvTYlY8es86Lu3xyoZkiFyiRbcM+GzhFFb +oUudunjw+G1VG08DA3DMoougS9pC7x9k +=BFsn +-----END PGP PUBLIC KEY BLOCK----- diff --git a/build/docker/deb/gpg-keys/dash-releases.asc b/build/docker/deb/gpg-keys/dash-releases.asc new file mode 100644 index 00000000..3a1fdbd4 --- /dev/null +++ b/build/docker/deb/gpg-keys/dash-releases.asc @@ -0,0 +1,52 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Comment: GPGTools - https://gpgtools.org + +mQINBFUkMgoBEAD5lFzlr4fIR3CKlsgx1KXLNR+1+IIe3AT8YloMq3rlvylOTgGl +j1PTeQL0eHH+fD3ukSHHiZC7FcY2aC3vTPCd16+OO+ii/Nfx6vAyve2RiTA4brKi +BOGuI/Neh/ow9Sg1AOZY0xsjXVqkabExg+zlUy/6DoabuVEnv/kpl1Bjr5pTfXNG +yeXDKF7MkItib6E9qDE5AsU31XQEAVKBv6u9r+W297+Db3AH6rK3WXiSLfT4KfmV +oufRIubPQvPnYt9l22mPS0gtO4NLB1Qruu/IEYbSUYcWa1GOe9EYoxbPOhWUOj1G +Dt6E4fb4JtmJ/7vkEeHFDRcrW/3EHQLkdLWE4sWrtxWBS4mfjwW9IiT3uDIH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1aQLRVGp3crqdg0cJ1X0+VrjfcWbf8XljK6LuobssaIgEoKR5nNMhbOTYfMwFn2 +4vx6MgQ3ihuOgOLazGB/rSdSXNqx5525rmFInkgPUMfpWqRQqDMJi52Z6itQxlmY +igg7ZyyZOYSKbB7GDevO3cBw6EjwPXlcWp0mb99sjhAQESEXA7bC4YW4dIEE+1zI +shA6M3oA2cO0ee2gTyY4nUDF7QAp0psPV6FANfpDjQ5/hvq+JHWJ+Arj0LszQZEd +VpxkfJjO/+r0KOjQoBeABaEMuPTJmC9qV5bm8BFKNR6kx6ZsExYhkC8d9WGqX+aS +07ElEHpmuuc/bw9y/45HBO8ZijIJZ+zlM6IojCOcjx1WFSEW9eAW+FyF+B6EJbVA +PGrsb1tnDgItwV3m5HoEvNU3yrTPfIgsFFXKPe/BvRLroNNN1493gu8oxKEuroFO +8/LeBIb/ +=q31t +-----END PGP PUBLIC KEY BLOCK----- diff --git a/build/docker/deb/gpg-keys/eth-releases.asc b/build/docker/deb/gpg-keys/eth-releases.asc new file mode 100644 index 00000000..de73f7b9 --- /dev/null +++ b/build/docker/deb/gpg-keys/eth-releases.asc @@ -0,0 +1,35 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: SKS 1.1.6 +Comment: Hostname: keyserver.ubuntu.com + +mQINBFggyuEBEADAWrc/bm0LD0EsymPoWKf3L5br0CNIoDfN0eHRFDKu11blTUY2GcK7BcrE +7yTp7iyY2C3GCXIvm/2MT8ljp7ilqhlWlMiEaxZuhHIAiv4021G1hm5V7MpDKaXLoMcbKLdk +6wtULfx8u+KvOFgDEAXyfe93RZtJqEnm/ed3KWF123s/ceXydf4ruFypyW04gaKHepb23WNn +z98kQqWxlmSWResp7gD7rOGEE0R1blK2VnVksTAi+ObUJdrRl/aNYYzwaPwysSoZf+WQAQrd +/Wcx/FTlnp6IODvxH88mTIUa3KnCNOxxBD3i2eXIWcR3fqyMnIAaoVxKQzL0odkuTHO+2axN +ecvfXU7rN+k1eEA121bJDQjxq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MKH8hdsQxjLHp9DQ4lfrastj4SKQ2MTuRLWktrmmfIgF4nMcv6WhVFHbEV75tGOj+MbyV +5JXGs0sRxmqLI5xIyyZvJNaHATtC6OHWsvxl7KGq1y5R8yao0kulS3qHJ+y1gXzFT3xC49Gt +0vgCmEy0AIs1j7SmWiOa7wsw76Xw+9qWpFbFnTt2iq2ENdMD4nPZmNl23BGZfVcek2TBUNnE +54T2wpv7YsVF8DjNHkhD0hL2n9CMo5n82f07mGHsXNdy5l+fkERCqVL9jBuQC9eQGZfIyLhV +y8Pkg6+J2C+SsolQsnqCFlpX1qtlOTdxbbUCbIituVH+TsJNOQONXg8d19vsRhT1xkdT8lHB +q7K0Zx8Xz27Dw/L9D7cCUgqsJCKKBS1VSWE+X9ORU0iSBrktZKazY/M3Nh/iedeAHm/u4jXL +o99bZ6Ryq20417kQxceL3phFpX4V1N0/DLHD06SnYrqZqSetp42jiosDA+m0KDQB2w4Kq9oG +NYueRvpmqJNXZUumiLThFGYGH7L1LWvotDHrvA45TT+qUdTNt+dzz5OnSIFGDBxgd32tdcLW +UTRFhg8rno4oWE4Sty/ZgrbBx7dnMtuK8wiuePyfb/+KczRGKs+47cxgyhjQIY3XnMfrGQ== +=N3jW +-----END PGP PUBLIC KEY BLOCK----- diff --git a/build/docker/deb/gpg-keys/litecoin-releases.asc b/build/docker/deb/gpg-keys/litecoin-releases.asc new file mode 100644 index 00000000..5a7c1c1d --- /dev/null +++ b/build/docker/deb/gpg-keys/litecoin-releases.asc @@ -0,0 +1,113 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: SKS 1.1.6 +Comment: Hostname: pgp.mit.edu + +mQENBFHBpq4BCAClUHF5fvpm1V0dxM1QKenkqeOl7w0EJ2MSZ26nzzH22yVOvwED5h/7/Lb+ +o6QyPf/89uEPsPi4paPzgkDPT+CoZAkjKyzWy2YW/m2wHWoXWw1xSJqlqxFogmrq3ZHbjnxY +OjAA4KsGpIijbLUAxOaAl5dkOCDEFl0KiKZz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SnucL+mXDuZTvxXui5tt4zGxSp+POHXBDduZliyxzKr5FTPGXw49 +3DiM3KggSieIDL6x3BWZR2U97w0iDbGWxS5mMJt+6FNCBJmeK2ooFRT+IJ6zeoXM0z6s +=OrL4 +-----END PGP PUBLIC KEY BLOCK----- diff --git a/build/docker/deb/gpg-keys/vertcoin-releases.asc b/build/docker/deb/gpg-keys/vertcoin-releases.asc new file mode 100644 index 00000000..08f37faa --- /dev/null +++ b/build/docker/deb/gpg-keys/vertcoin-releases.asc @@ -0,0 +1,28 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: SKS 1.1.6 +Comment: Hostname: pgp.mit.edu + +mQINBFrmH10BEADEywLWt83+kQLnPlQSFrEyZLJB95ffkiTqKfRT5YsHkUWI+fcvoKr8Ek7e +tOiaLOcpsaiSYiBqpBeUvtWmWJYP6LGO2OY9u26ASd8tzKBwaZzBDTrYfXsW+lv1rzd2IZ3C +CTZX+R7nyCd5kwDKlOX+PzhRne0335VsZDQucw8aaDoouzn8UrvzbTfabnuS+3CEgf1+SSnJ +/8w51h8WE/ZY0LdH66jo7s6jr2zoMJjFSwRddaMqK3gEjunjxIb8HtC8cYw/gmjrRciNLrpS +NdwKdMBzx0x4fGtlQ8oxX2B/ZY5W5Or4BZC6cYekSEadD6wf5OQNbOqidSSvgd3QRZFNS9LO +cWIwlauUOUNKWg2mkheXY+HDIMUWwO7taauM2OdDbOEAQiZHidE6yJ1WtddRVzSVPbSOjtvQ +OvaWnm4IOnCs8RO4B4HFsaIjURWWuGXx9OuhFUlfk/oWJ6Bg9ySARHQWWW3wDdOYZyDh7odQ +4vMfvMTnocWTnPQZwE0aD/ttyIa/8gcc5IbcQbf4i45joYramJwtUf3PBc118Zs9m3ilHixt +KJy6Y8y4kWVvsSgMi4SEwBerlGYqb2SrEjKtgGVOGSmRCe0TrtkkuQsR4AQiS1mbGy3FxebR +xxf/ifpEtp3n2+txnT7B5Vr12t3ikgIDfPcmiro/gb/sPxYzRQARAQABtCdKYW1lcyBMb3Zl +am95IDxqYW1lc2xvdmVqb3kxQGdtYWlsLmNvbT6JAjgEEwECACIFAlrmH10CGwMGCwkIBwMC +BhUIAgkKCwQWAgMBAh4BAheAAAoJEEJXduL55bq4ZyMP/0kVn/rQgq9W4AfsX+qAU851vkeD +55n0mJdnh4wWZMEYG5GILF9OR/3tl71RnHx6rQNbPTVTRRE5i1fV0fNMk2KlpCcYb5AqjRyD +ctkXmUjXrOM0r72m7aitwuDqKk7JuYK0MLKBSDhOi0KFDv6gWuvrYqTT49z4pczihGLHuSWE +WoPvT5q4x8RDd7g0gg3aDV5GZ3jaSgzBw3oqXsQwhisXyZBx+8/o+9nr8z9QUu4kUYhZdTbq +AG1R5FF5wNiW1hMdPZAAv67YZ63+Y4y7cPaXZmJuTofffNcs4xsUkNt3qG9vETVrUd4FFxc3 +jiXPhSIbM4Zzv3xP5fBw9FXHx6AOYoa4XDr3WwxYqYzOedTPFbdWK6G4TfPh34xzJMvu6dzy +bouIdFCkkF4u1Myfp09ZS78Mm6kdBXhIElRC1LWGpptLYJBSP6S7KcHgLNsCy6JTQAHUYGcl +6IyGI+GWWpyBpvqcH7JOhpswqshuO9ZJLIdUoB//OW8bvDCzv31COR1GwVV4jtGlKk7WCe5/ +ojgwM/fneqyuxoMnHtROGapdRiqxc5efnh6f3mbw01DBC4q1fEncI1W1tZQIPzEOkNi+7Q8Q +/sMW9w46DgHrcSmLYxo1IpSjTdxv8QsQlW83FlOYzeMeQW2nL4LKKD/0V95J5FuQP5vI8nPJ +3yNkgd4j +=tN19 +-----END PGP PUBLIC KEY BLOCK----- diff --git a/build/docker/deb/gpg-keys/zcash-releases.asc b/build/docker/deb/gpg-keys/zcash-releases.asc new file mode 100644 index 00000000..f59d3bf1 --- /dev/null +++ b/build/docker/deb/gpg-keys/zcash-releases.asc @@ -0,0 +1,28 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFgGZnIBEADM5q4NOG344jG5tAa9KvtZRE3bbpRKWV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g29zx7GOamkgSz9/BSDxPq7bmm1gurgjRTatXdSxv8kPvk1NGRqXwZkEp1 +GYLZz/AqZHuzFMwlnn2twU/ayYHta5ywpX0nNO+n+PdZ9etNdH+W5UIBRMovK3nm +HrtDEpyGYBElOhGZiDWJMrCe7MJH3n1h6ntYMNZZm2M5mkg3P3AO5J7DahwQjz+F +fVFq+B10j9o7x349/0CKmJdtt+DvfXgPLsf//zq4uX+Mvt/JrNUkcFYJtDFdmJQA +y7jpKy8PijIcPRM4IQx1oEbJUYAVi4qvurr80s6r+IVOiryNcPdWHmgR2JuALQL5 +FxJx70IzdJEyd8l/ohp1Q05Z7gQdCKliQzAOqHrx1sgsrJdk424U+CSSgmhKxtFp +JPbGDprzBUyDHC+tn4Poz7qxFPwqLeRTfxE= +=YKuG +-----END PGP PUBLIC KEY BLOCK----- diff --git a/build/templates/generate.go b/build/templates/generate.go index 32e995ec..bed0e4c7 100644 --- a/build/templates/generate.go +++ b/build/templates/generate.go @@ -11,8 +11,8 @@ import ( ) const ( - inputDir = "build/templates" - outputDir = "build/pkg-defs" + inputDir = "templates" + outputDir = "pkg-defs" ) type Config struct { From 7f52de3b65d3e88752dff1696d0494cfe31e098a Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Thu, 26 Jul 2018 16:50:06 +0200 Subject: [PATCH 05/11] Upgraded BlockChain configuration --- bchain/coins/btc/bitcoinrpc.go | 20 +++++----- bchain/coins/eth/ethrpc.go | 4 +- build/templates/blockbook/blockchaincfg.json | 7 ++++ build/templates/generate.go | 39 +++++++++++++------- configs/coins/bcash.json | 5 ++- configs/coins/bcash_testnet.json | 5 ++- configs/coins/bgold.json | 5 ++- configs/coins/bitcoin.json | 5 ++- configs/coins/bitcoin_testnet.json | 5 ++- configs/coins/dash.json | 5 ++- configs/coins/dash_testnet.json | 5 ++- configs/coins/dogecoin.json | 5 ++- configs/coins/ethereum.json | 10 +---- configs/coins/ethereum_testnet_ropsten.json | 10 +---- configs/coins/litecoin.json | 5 ++- configs/coins/litecoin_testnet.json | 5 ++- configs/coins/namecoin.json | 5 ++- configs/coins/vertcoin.json | 5 ++- configs/coins/vertcoin_testnet.json | 5 ++- configs/coins/zcash.json | 5 ++- configs/coins/zcash_testnet.json | 5 ++- 21 files changed, 94 insertions(+), 71 deletions(-) diff --git a/bchain/coins/btc/bitcoinrpc.go b/bchain/coins/btc/bitcoinrpc.go index ac482b8b..6b6142ed 100644 --- a/bchain/coins/btc/bitcoinrpc.go +++ b/bchain/coins/btc/bitcoinrpc.go @@ -37,17 +37,17 @@ type BitcoinRPC struct { type Configuration struct { CoinName string `json:"coin_name"` - RPCURL string `json:"rpcURL"` - RPCUser string `json:"rpcUser"` - RPCPass string `json:"rpcPass"` - RPCTimeout int `json:"rpcTimeout"` + RPCURL string `json:"rpc_url"` + RPCUser string `json:"rpc_user"` + RPCPass string `json:"rpc_pass"` + RPCTimeout int `json:"rpc_timeout"` Parse bool `json:"parse"` - ZeroMQBinding string `json:"zeroMQBinding"` + MessageQueueBinding string `json:"message_queue_binding"` Subversion string `json:"subversion"` - BlockAddressesToKeep int `json:"blockAddressesToKeep"` - MempoolWorkers int `json:"mempoolWorkers"` - MempoolSubWorkers int `json:"mempoolSubWorkers"` - AddressFormat string `json:"addressFormat"` + BlockAddressesToKeep int `json:"block_addresses_to_keep"` + MempoolWorkers int `json:"mempool_workers"` + MempoolSubWorkers int `json:"mempool_sub_workers"` + AddressFormat string `json:"address_format"` } // NewBitcoinRPC returns new BitcoinRPC instance. @@ -100,7 +100,7 @@ func (b *BitcoinRPC) GetChainInfoAndInitializeMempool(bc bchain.BlockChain) (str return "", err } - mq, err := bchain.NewMQ(b.ChainConfig.ZeroMQBinding, b.pushHandler) + mq, err := bchain.NewMQ(b.ChainConfig.MessageQueueBinding, b.pushHandler) if err != nil { glog.Error("mq: ", err) return "", err diff --git a/bchain/coins/eth/ethrpc.go b/bchain/coins/eth/ethrpc.go index d985e74c..d1fd5042 100644 --- a/bchain/coins/eth/ethrpc.go +++ b/bchain/coins/eth/ethrpc.go @@ -31,8 +31,8 @@ const ( type Configuration struct { CoinName string `json:"coin_name"` - RPCURL string `json:"rpcURL"` - RPCTimeout int `json:"rpcTimeout"` + RPCURL string `json:"rpc_url"` + RPCTimeout int `json:"rpc_timeout"` } // EthereumRPC is an interface to JSON-RPC eth service. diff --git a/build/templates/blockbook/blockchaincfg.json b/build/templates/blockbook/blockchaincfg.json index 6e7a21ce..a563f90b 100644 --- a/build/templates/blockbook/blockchaincfg.json +++ b/build/templates/blockbook/blockchaincfg.json @@ -1,5 +1,12 @@ {{define "main" -}} { +{{- if .BlockChain.AdditionalParams}} +{{- range $name, $value := .BlockChain.AdditionalParams}} + "{{$name}}": {{jsonToString $value}}, +{{- end}} +{{end}} + + "coin_name": {{.Coin.Name}}, "rpc_url": "{{template "BlockChain.RPCURLTemplate" .}}", "rpc_user": "{{.BlockChain.RPCUser}}", "rpc_pass": "{{.BlockChain.RPCPass}}", diff --git a/build/templates/generate.go b/build/templates/generate.go index bed0e4c7..fce19c00 100644 --- a/build/templates/generate.go +++ b/build/templates/generate.go @@ -41,18 +41,19 @@ type Config struct { BlockbookPublic int `json:"blockbook_public"` } `json:"ports"` BlockChain struct { - RPCURLTemplate string `json:"rpc_url_template"` - RPCUser string `json:"rpc_user"` - RPCPass string `json:"rpc_pass"` - RPCTimeout int `json:"rpc_timeout"` - Parse bool `json:"parse"` - MessageQueueBindingTemplate string `json:"message_queue_binding_template"` - Subversion string `json:"subversion"` - AddressFormat string `json:"address_format"` - MempoolWorkers int `json:"mempool_workers"` - MempoolSubWorkers int `json:"mempool_sub_workers"` - BlockAddressesToKeep int `json:"block_addresses_to_keep"` - } `json:"rpc"` + RPCURLTemplate string `json:"rpc_url_template"` + RPCUser string `json:"rpc_user"` + RPCPass string `json:"rpc_pass"` + RPCTimeout int `json:"rpc_timeout"` + Parse bool `json:"parse"` + MessageQueueBindingTemplate string `json:"message_queue_binding_template"` + Subversion string `json:"subversion"` + AddressFormat string `json:"address_format"` + MempoolWorkers int `json:"mempool_workers"` + MempoolSubWorkers int `json:"mempool_sub_workers"` + BlockAddressesToKeep int `json:"block_addresses_to_keep"` + AdditionalParams map[string]json.RawMessage `json:"additional_params"` + } `json:"block_chain"` Backend struct { PackageName string `json:"package_name"` PackageRevision string `json:"package_revision"` @@ -82,6 +83,14 @@ type Config struct { } `json:"blockbook"` } +func jsonToString(msg json.RawMessage) (string, error) { + d, err := msg.MarshalJSON() + if err != nil { + return "", err + } + return string(d), nil +} + func (c *Config) ParseTemplate() *template.Template { templates := map[string]string{ "BlockChain.RPCURLTemplate": c.BlockChain.RPCURLTemplate, @@ -93,7 +102,11 @@ func (c *Config) ParseTemplate() *template.Template { "Blockbook.PublicBindingTemplate": c.Blockbook.PublicBindingTemplate, } - t := template.New("") + funcMap := template.FuncMap{ + "jsonToString": jsonToString, + } + + t := template.New("").Funcs(funcMap) for name, def := range templates { t = template.Must(t.Parse(fmt.Sprintf(`{{define "%s"}}%s{{end}}`, name, def))) diff --git a/configs/coins/bcash.json b/configs/coins/bcash.json index 92e2c198..645ee31c 100644 --- a/configs/coins/bcash.json +++ b/configs/coins/bcash.json @@ -15,7 +15,7 @@ "blockbook_internal": 9031, "blockbook_public": 9131 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -26,7 +26,8 @@ "address_format": "legacy", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-bcash", diff --git a/configs/coins/bcash_testnet.json b/configs/coins/bcash_testnet.json index 0eb5b931..2e91d41c 100644 --- a/configs/coins/bcash_testnet.json +++ b/configs/coins/bcash_testnet.json @@ -15,7 +15,7 @@ "blockbook_internal": 19031, "blockbook_public": 19131 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -26,7 +26,8 @@ "address_format": "legacy", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-bcash-testnet", diff --git a/configs/coins/bgold.json b/configs/coins/bgold.json index 91317419..2ecbef3f 100644 --- a/configs/coins/bgold.json +++ b/configs/coins/bgold.json @@ -15,7 +15,7 @@ "blockbook_internal": 9035, "blockbook_public": 9135 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -25,7 +25,8 @@ "subversion": "/Bitcoin Gold:0.15.1/", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-bgold", diff --git a/configs/coins/bitcoin.json b/configs/coins/bitcoin.json index 0ae6cb2f..bcd8c654 100644 --- a/configs/coins/bitcoin.json +++ b/configs/coins/bitcoin.json @@ -15,7 +15,7 @@ "blockbook_internal": 9030, "blockbook_public": 9130 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -24,7 +24,8 @@ "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-bitcoin", diff --git a/configs/coins/bitcoin_testnet.json b/configs/coins/bitcoin_testnet.json index 89f32fa0..79be56e0 100644 --- a/configs/coins/bitcoin_testnet.json +++ b/configs/coins/bitcoin_testnet.json @@ -15,7 +15,7 @@ "blockbook_internal": 19030, "blockbook_public": 19130 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -24,7 +24,8 @@ "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-bitcoin-testnet", diff --git a/configs/coins/dash.json b/configs/coins/dash.json index a7ca39d7..b7fd681f 100644 --- a/configs/coins/dash.json +++ b/configs/coins/dash.json @@ -15,7 +15,7 @@ "blockbook_internal": 9033, "blockbook_public": 9133 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -25,7 +25,8 @@ "subversion": "/Dash Core:0.12.3.2/", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-dash", diff --git a/configs/coins/dash_testnet.json b/configs/coins/dash_testnet.json index 4426aae9..7c3233cb 100644 --- a/configs/coins/dash_testnet.json +++ b/configs/coins/dash_testnet.json @@ -15,7 +15,7 @@ "blockbook_internal": 19033, "blockbook_public": 19133 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -25,7 +25,8 @@ "subversion": "/Dash Core:0.12.3.2/", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-dash-testnet", diff --git a/configs/coins/dogecoin.json b/configs/coins/dogecoin.json index 7f8b376b..de3a42e9 100644 --- a/configs/coins/dogecoin.json +++ b/configs/coins/dogecoin.json @@ -15,7 +15,7 @@ "blockbook_internal": 9038, "blockbook_public": 9138 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -24,7 +24,8 @@ "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-dogecoin", diff --git a/configs/coins/ethereum.json b/configs/coins/ethereum.json index 67dca5ca..13a389a5 100644 --- a/configs/coins/ethereum.json +++ b/configs/coins/ethereum.json @@ -15,16 +15,10 @@ "blockbook_internal": 9036, "blockbook_public": 9136 }, - "rpc": { + "block_chain": { "rpc_url_template": "ws://localhost:{{.Ports.BackendRPC}}", - "rpc_user": "rpc", - "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "additional_params": {} }, "backend": { "package_name": "backend-ethereum", diff --git a/configs/coins/ethereum_testnet_ropsten.json b/configs/coins/ethereum_testnet_ropsten.json index 2c346c16..154c2dc8 100644 --- a/configs/coins/ethereum_testnet_ropsten.json +++ b/configs/coins/ethereum_testnet_ropsten.json @@ -15,16 +15,10 @@ "blockbook_internal": 19036, "blockbook_public": 19136 }, - "rpc": { + "block_chain": { "rpc_url_template": "ws://localhost:{{.Ports.BackendRPC}}", - "rpc_user": "rpc", - "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "additional_params": {} }, "backend": { "package_name": "backend-ethereum-testnet-ropsten", diff --git a/configs/coins/litecoin.json b/configs/coins/litecoin.json index b7e62410..2a28ff36 100644 --- a/configs/coins/litecoin.json +++ b/configs/coins/litecoin.json @@ -15,7 +15,7 @@ "blockbook_internal": 9034, "blockbook_public": 9134 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -24,7 +24,8 @@ "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-litecoin", diff --git a/configs/coins/litecoin_testnet.json b/configs/coins/litecoin_testnet.json index 3ca11ba0..5cfe242f 100644 --- a/configs/coins/litecoin_testnet.json +++ b/configs/coins/litecoin_testnet.json @@ -15,7 +15,7 @@ "blockbook_internal": 19034, "blockbook_public": 19134 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -24,7 +24,8 @@ "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-litecoin-testnet", diff --git a/configs/coins/namecoin.json b/configs/coins/namecoin.json index 1014cabc..fe2a2a01 100644 --- a/configs/coins/namecoin.json +++ b/configs/coins/namecoin.json @@ -15,7 +15,7 @@ "blockbook_internal": 9039, "blockbook_public": 9139 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -24,7 +24,8 @@ "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-namecoin", diff --git a/configs/coins/vertcoin.json b/configs/coins/vertcoin.json index 7c8d3197..85b92e80 100644 --- a/configs/coins/vertcoin.json +++ b/configs/coins/vertcoin.json @@ -15,7 +15,7 @@ "blockbook_internal": 9040, "blockbook_public": 9140 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -24,7 +24,8 @@ "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-vertcoin", diff --git a/configs/coins/vertcoin_testnet.json b/configs/coins/vertcoin_testnet.json index 38ec7fb1..e661f7c6 100644 --- a/configs/coins/vertcoin_testnet.json +++ b/configs/coins/vertcoin_testnet.json @@ -15,7 +15,7 @@ "blockbook_internal": 19040, "blockbook_public": 19140 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -24,7 +24,8 @@ "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", "mempool_workers": 8, "mempool_sub_workers": 2, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-vertcoin-testnet", diff --git a/configs/coins/zcash.json b/configs/coins/zcash.json index 9f12405c..166b5843 100644 --- a/configs/coins/zcash.json +++ b/configs/coins/zcash.json @@ -15,7 +15,7 @@ "blockbook_internal": 9032, "blockbook_public": 9132 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -24,7 +24,8 @@ "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", "mempool_workers": 4, "mempool_sub_workers": 8, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-zcash", diff --git a/configs/coins/zcash_testnet.json b/configs/coins/zcash_testnet.json index c7bd21d6..d33ad7f4 100644 --- a/configs/coins/zcash_testnet.json +++ b/configs/coins/zcash_testnet.json @@ -15,7 +15,7 @@ "blockbook_internal": 19032, "blockbook_public": 19132 }, - "rpc": { + "block_chain": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", @@ -24,7 +24,8 @@ "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", "mempool_workers": 4, "mempool_sub_workers": 8, - "block_addresses_to_keep": 300 + "block_addresses_to_keep": 300, + "additional_params": {} }, "backend": { "package_name": "backend-zcash-testnet", From f9b21b419270bd8b4edf99a8186ed1da6e7abd90 Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Fri, 27 Jul 2018 10:46:53 +0200 Subject: [PATCH 06/11] Changed structure of config files --- build/docker/deb/build-deb.sh | 2 +- build/templates/backend/config/bitcoin.conf | 8 ++-- build/templates/blockbook/blockchaincfg.json | 28 ++++++------- build/templates/generate.go | 44 ++++++++++---------- configs/coins/bcash.json | 30 ++++++------- configs/coins/bcash_testnet.json | 30 ++++++------- configs/coins/bgold.json | 28 +++++++------ configs/coins/bitcoin.json | 26 ++++++------ configs/coins/bitcoin_testnet.json | 26 ++++++------ configs/coins/dash.json | 28 +++++++------ configs/coins/dash_testnet.json | 28 +++++++------ configs/coins/dogecoin.json | 26 ++++++------ configs/coins/ethereum.json | 18 ++++---- configs/coins/ethereum_testnet_ropsten.json | 18 ++++---- configs/coins/litecoin.json | 26 ++++++------ configs/coins/litecoin_testnet.json | 26 ++++++------ configs/coins/namecoin.json | 26 ++++++------ configs/coins/vertcoin.json | 26 ++++++------ configs/coins/vertcoin_testnet.json | 26 ++++++------ configs/coins/zcash.json | 26 ++++++------ configs/coins/zcash_testnet.json | 26 ++++++------ 21 files changed, 279 insertions(+), 243 deletions(-) diff --git a/build/docker/deb/build-deb.sh b/build/docker/deb/build-deb.sh index 7686d348..6dad89cb 100755 --- a/build/docker/deb/build-deb.sh +++ b/build/docker/deb/build-deb.sh @@ -8,7 +8,7 @@ if [ $# -lt 2 ]; then fi package=$1 -coin=$(echo "$2" | tr '-' '_') +coin=$2 shift 2 cp -r /src/build/templates . diff --git a/build/templates/backend/config/bitcoin.conf b/build/templates/backend/config/bitcoin.conf index dbf27d1b..640aec2f 100644 --- a/build/templates/backend/config/bitcoin.conf +++ b/build/templates/backend/config/bitcoin.conf @@ -3,13 +3,13 @@ daemon=1 server=1 {{if .Backend.Mainnet}}mainnet=1{{else}}testnet=1{{end}} nolisten=1 -rpcuser={{.BlockChain.RPCUser}} -rpcpassword={{.BlockChain.RPCPass}} +rpcuser={{.IPC.RPCUser}} +rpcpassword={{.IPC.RPCPass}} rpcport={{.Ports.BackendRPC}} txindex=1 -zmqpubhashtx={{template "BlockChain.MessageQueueBindingTemplate" .}} -zmqpubhashblock={{template "BlockChain.MessageQueueBindingTemplate" .}} +zmqpubhashtx={{template "IPC.MessageQueueBindingTemplate" .}} +zmqpubhashblock={{template "IPC.MessageQueueBindingTemplate" .}} rpcworkqueue=1100 maxmempool=2000 diff --git a/build/templates/blockbook/blockchaincfg.json b/build/templates/blockbook/blockchaincfg.json index a563f90b..c24b3afc 100644 --- a/build/templates/blockbook/blockchaincfg.json +++ b/build/templates/blockbook/blockchaincfg.json @@ -1,22 +1,22 @@ {{define "main" -}} { -{{- if .BlockChain.AdditionalParams}} -{{- range $name, $value := .BlockChain.AdditionalParams}} +{{- if .Blockbook.BlockChain.AdditionalParams}} +{{- range $name, $value := .Blockbook.BlockChain.AdditionalParams}} "{{$name}}": {{jsonToString $value}}, {{- end}} {{end}} - "coin_name": {{.Coin.Name}}, - "rpc_url": "{{template "BlockChain.RPCURLTemplate" .}}", - "rpc_user": "{{.BlockChain.RPCUser}}", - "rpc_pass": "{{.BlockChain.RPCPass}}", - "rpc_timeout": {{.BlockChain.RPCTimeout}}, - "parse": {{.BlockChain.Parse}}, - "message_queue_binding": "{{template "BlockChain.MessageQueueBindingTemplate" .}}", - "subversion": "{{.BlockChain.Subversion}}", - "address_format": "{{.BlockChain.AddressFormat}}", - "mempool_workers": {{.BlockChain.MempoolWorkers}}, - "mempool_sub_workers": {{.BlockChain.MempoolSubWorkers}}, - "block_addresses_to_keep": {{.BlockChain.BlockAddressesToKeep}} + "coin_name": "{{.Coin.Name}}", + "rpc_url": "{{template "IPC.RPCURLTemplate" .}}", + "rpc_user": "{{.IPC.RPCUser}}", + "rpc_pass": "{{.IPC.RPCPass}}", + "rpc_timeout": {{.IPC.RPCTimeout}}, + "parse": {{.Blockbook.BlockChain.Parse}}, + "message_queue_binding": "{{template "IPC.MessageQueueBindingTemplate" .}}", + "subversion": "{{.Blockbook.BlockChain.Subversion}}", + "address_format": "{{.Blockbook.BlockChain.AddressFormat}}", + "mempool_workers": {{.Blockbook.BlockChain.MempoolWorkers}}, + "mempool_sub_workers": {{.Blockbook.BlockChain.MempoolSubWorkers}}, + "block_addresses_to_keep": {{.Blockbook.BlockChain.BlockAddressesToKeep}} } {{end}} diff --git a/build/templates/generate.go b/build/templates/generate.go index fce19c00..949577db 100644 --- a/build/templates/generate.go +++ b/build/templates/generate.go @@ -40,20 +40,13 @@ type Config struct { BlockbookInternal int `json:"blockbook_internal"` BlockbookPublic int `json:"blockbook_public"` } `json:"ports"` - BlockChain struct { - RPCURLTemplate string `json:"rpc_url_template"` - RPCUser string `json:"rpc_user"` - RPCPass string `json:"rpc_pass"` - RPCTimeout int `json:"rpc_timeout"` - Parse bool `json:"parse"` - MessageQueueBindingTemplate string `json:"message_queue_binding_template"` - Subversion string `json:"subversion"` - AddressFormat string `json:"address_format"` - MempoolWorkers int `json:"mempool_workers"` - MempoolSubWorkers int `json:"mempool_sub_workers"` - BlockAddressesToKeep int `json:"block_addresses_to_keep"` - AdditionalParams map[string]json.RawMessage `json:"additional_params"` - } `json:"block_chain"` + IPC struct { + RPCURLTemplate string `json:"rpc_url_template"` + RPCUser string `json:"rpc_user"` + RPCPass string `json:"rpc_pass"` + RPCTimeout int `json:"rpc_timeout"` + MessageQueueBindingTemplate string `json:"message_queue_binding_template"` + } `json:"ipc"` Backend struct { PackageName string `json:"package_name"` PackageRevision string `json:"package_revision"` @@ -80,6 +73,15 @@ type Config struct { PublicBindingTemplate string `json:"public_binding_template"` ExplorerURL string `json:"explorer_url"` AdditionalParams string `json:"additional_params"` + BlockChain struct { + Parse bool `json:"parse"` + Subversion string `json:"subversion"` + AddressFormat string `json:"address_format"` + MempoolWorkers int `json:"mempool_workers"` + MempoolSubWorkers int `json:"mempool_sub_workers"` + BlockAddressesToKeep int `json:"block_addresses_to_keep"` + AdditionalParams map[string]json.RawMessage `json:"additional_params"` + } `json:"block_chain"` } `json:"blockbook"` } @@ -93,13 +95,13 @@ func jsonToString(msg json.RawMessage) (string, error) { func (c *Config) ParseTemplate() *template.Template { templates := map[string]string{ - "BlockChain.RPCURLTemplate": c.BlockChain.RPCURLTemplate, - "BlockChain.MessageQueueBindingTemplate": c.BlockChain.MessageQueueBindingTemplate, - "Backend.ExecCommandTemplate": c.Backend.ExecCommandTemplate, - "Backend.LogrotateFilesTemplate": c.Backend.LogrotateFilesTemplate, - "Backend.PostinstScriptTemplate": c.Backend.PostinstScriptTemplate, - "Blockbook.InternalBindingTemplate": c.Blockbook.InternalBindingTemplate, - "Blockbook.PublicBindingTemplate": c.Blockbook.PublicBindingTemplate, + "IPC.RPCURLTemplate": c.IPC.RPCURLTemplate, + "IPC.MessageQueueBindingTemplate": c.IPC.MessageQueueBindingTemplate, + "Backend.ExecCommandTemplate": c.Backend.ExecCommandTemplate, + "Backend.LogrotateFilesTemplate": c.Backend.LogrotateFilesTemplate, + "Backend.PostinstScriptTemplate": c.Backend.PostinstScriptTemplate, + "Blockbook.InternalBindingTemplate": c.Blockbook.InternalBindingTemplate, + "Blockbook.PublicBindingTemplate": c.Blockbook.PublicBindingTemplate, } funcMap := template.FuncMap{ diff --git a/configs/coins/bcash.json b/configs/coins/bcash.json index 645ee31c..e275f53e 100644 --- a/configs/coins/bcash.json +++ b/configs/coins/bcash.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Bcash", "shortcut": "BCH", @@ -15,19 +11,12 @@ "blockbook_internal": 9031, "blockbook_public": 9131 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "subversion": "/Bitcoin ABC:0.17.1/", - "address_format": "legacy", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-bcash", @@ -55,6 +44,19 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://bitcoincash.blockexplorer.com", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "subversion": "/Bitcoin ABC:0.17.1/", + "address_format": "legacy", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/bcash_testnet.json b/configs/coins/bcash_testnet.json index 2e91d41c..6d50a14b 100644 --- a/configs/coins/bcash_testnet.json +++ b/configs/coins/bcash_testnet.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Bcash Testnet", "shortcut": "TBCH", @@ -15,19 +11,12 @@ "blockbook_internal": 19031, "blockbook_public": 19131 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "subversion": "/Bitcoin ABC:0.17.1/", - "address_format": "legacy", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-bcash-testnet", @@ -55,6 +44,19 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://bitcoincash.blockexplorer.com", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "subversion": "/Bitcoin ABC:0.17.1/", + "address_format": "legacy", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/bgold.json b/configs/coins/bgold.json index 2ecbef3f..943a83aa 100644 --- a/configs/coins/bgold.json +++ b/configs/coins/bgold.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Bgold", "shortcut": "BTG", @@ -15,18 +11,12 @@ "blockbook_internal": 9035, "blockbook_public": 9135 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "subversion": "/Bitcoin Gold:0.15.1/", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-bgold", @@ -249,6 +239,18 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://explorer.bitcoingold.org", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "subversion": "/Bitcoin Gold:0.15.1/", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/bitcoin.json b/configs/coins/bitcoin.json index bcd8c654..8450e756 100644 --- a/configs/coins/bitcoin.json +++ b/configs/coins/bitcoin.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Bitcoin", "shortcut": "BTC", @@ -15,17 +11,12 @@ "blockbook_internal": 9030, "blockbook_public": 9130 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-bitcoin", @@ -56,6 +47,17 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://btc-explorer.trezor.io", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/bitcoin_testnet.json b/configs/coins/bitcoin_testnet.json index 79be56e0..9cba51ff 100644 --- a/configs/coins/bitcoin_testnet.json +++ b/configs/coins/bitcoin_testnet.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Testnet", "shortcut": "TEST", @@ -15,17 +11,12 @@ "blockbook_internal": 19030, "blockbook_public": 19130 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-bitcoin-testnet", @@ -56,6 +47,17 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://btc-testnet-explorer.trezor.io", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/dash.json b/configs/coins/dash.json index b7fd681f..b3f71c65 100644 --- a/configs/coins/dash.json +++ b/configs/coins/dash.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Dash", "shortcut": "DASH", @@ -15,18 +11,12 @@ "blockbook_internal": 9033, "blockbook_public": 9133 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "subversion": "/Dash Core:0.12.3.2/", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-dash", @@ -57,6 +47,18 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://dash-explorer.trezor.io", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "subversion": "/Dash Core:0.12.3.2/", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/dash_testnet.json b/configs/coins/dash_testnet.json index 7c3233cb..ea8c8ac0 100644 --- a/configs/coins/dash_testnet.json +++ b/configs/coins/dash_testnet.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Dash Testnet", "shortcut": "tDASH", @@ -15,18 +11,12 @@ "blockbook_internal": 19033, "blockbook_public": 19133 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "subversion": "/Dash Core:0.12.3.2/", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-dash-testnet", @@ -57,6 +47,18 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://dash-explorer.trezor.io", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "subversion": "/Dash Core:0.12.3.2/", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/dogecoin.json b/configs/coins/dogecoin.json index de3a42e9..cd996d46 100644 --- a/configs/coins/dogecoin.json +++ b/configs/coins/dogecoin.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Dogecoin", "shortcut": "DOGE", @@ -15,17 +11,12 @@ "blockbook_internal": 9038, "blockbook_public": 9138 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-dogecoin", @@ -57,6 +48,17 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://dogechain.info/", - "additional_params": "-resyncindexperiod=30011 -resyncmempoolperiod=2011" + "additional_params": "-resyncindexperiod=30011 -resyncmempoolperiod=2011", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/ethereum.json b/configs/coins/ethereum.json index 13a389a5..299de8c1 100644 --- a/configs/coins/ethereum.json +++ b/configs/coins/ethereum.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Ethereum", "shortcut": "ETH", @@ -15,10 +11,9 @@ "blockbook_internal": 9036, "blockbook_public": 9136 }, - "block_chain": { + "ipc": { "rpc_url_template": "ws://localhost:{{.Ports.BackendRPC}}", - "rpc_timeout": 25, - "additional_params": {} + "rpc_timeout": 25 }, "backend": { "package_name": "backend-ethereum", @@ -44,6 +39,13 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://etherscan.io/", - "additional_params": "" + "additional_params": "", + "block_chain": { + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/ethereum_testnet_ropsten.json b/configs/coins/ethereum_testnet_ropsten.json index 154c2dc8..8a22736f 100644 --- a/configs/coins/ethereum_testnet_ropsten.json +++ b/configs/coins/ethereum_testnet_ropsten.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Ethereum Testnet Ropsten", "shortcut": "tETH", @@ -15,10 +11,9 @@ "blockbook_internal": 19036, "blockbook_public": 19136 }, - "block_chain": { + "ipc": { "rpc_url_template": "ws://localhost:{{.Ports.BackendRPC}}", - "rpc_timeout": 25, - "additional_params": {} + "rpc_timeout": 25 }, "backend": { "package_name": "backend-ethereum-testnet-ropsten", @@ -44,6 +39,13 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://ropsten.etherscan.io/", - "additional_params": "" + "additional_params": "", + "block_chain": { + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/litecoin.json b/configs/coins/litecoin.json index 2a28ff36..36d5e719 100644 --- a/configs/coins/litecoin.json +++ b/configs/coins/litecoin.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Litecoin", "shortcut": "LTC", @@ -15,17 +11,12 @@ "blockbook_internal": 9034, "blockbook_public": 9134 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-litecoin", @@ -56,6 +47,17 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://ltc-explorer.trezor.io", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/litecoin_testnet.json b/configs/coins/litecoin_testnet.json index 5cfe242f..a7e900b4 100644 --- a/configs/coins/litecoin_testnet.json +++ b/configs/coins/litecoin_testnet.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Litecoin Testnet", "shortcut": "TLTC", @@ -15,17 +11,12 @@ "blockbook_internal": 19034, "blockbook_public": 19134 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-litecoin-testnet", @@ -56,6 +47,17 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://ltc-explorer.trezor.io", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/namecoin.json b/configs/coins/namecoin.json index fe2a2a01..8253bf27 100644 --- a/configs/coins/namecoin.json +++ b/configs/coins/namecoin.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Namecoin", "shortcut": "NMC", @@ -15,17 +11,12 @@ "blockbook_internal": 9039, "blockbook_public": 9139 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-namecoin", @@ -63,6 +54,17 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://namecha.in/", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/vertcoin.json b/configs/coins/vertcoin.json index 85b92e80..47de2d37 100644 --- a/configs/coins/vertcoin.json +++ b/configs/coins/vertcoin.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Vertcoin", "shortcut": "VTC", @@ -15,17 +11,12 @@ "blockbook_internal": 9040, "blockbook_public": 9140 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-vertcoin", @@ -54,6 +45,17 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://insight.vertcoin.org", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/vertcoin_testnet.json b/configs/coins/vertcoin_testnet.json index e661f7c6..e6d00a50 100644 --- a/configs/coins/vertcoin_testnet.json +++ b/configs/coins/vertcoin_testnet.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Vertcoin Testnet", "shortcut": "TVTC", @@ -15,17 +11,12 @@ "blockbook_internal": 19040, "blockbook_public": 19140 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-vertcoin-testnet", @@ -54,6 +45,17 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://insight.vertcoin.org/", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/zcash.json b/configs/coins/zcash.json index 166b5843..0e3b2e82 100644 --- a/configs/coins/zcash.json +++ b/configs/coins/zcash.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Zcash", "shortcut": "ZEC", @@ -15,17 +11,12 @@ "blockbook_internal": 9032, "blockbook_public": 9132 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "mempool_workers": 4, - "mempool_sub_workers": 8, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-zcash", @@ -56,6 +47,17 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://zcash.blockexplorer.com/", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 4, + "mempool_sub_workers": 8, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } diff --git a/configs/coins/zcash_testnet.json b/configs/coins/zcash_testnet.json index d33ad7f4..7ad21820 100644 --- a/configs/coins/zcash_testnet.json +++ b/configs/coins/zcash_testnet.json @@ -1,8 +1,4 @@ { - "meta": { - "package_maintainer": "Jakub Matys", - "package_maintainer_email": "jakub.matys@satoshilabs.com" - }, "coin": { "name": "Zcash Testnet", "shortcut": "TAZ", @@ -15,17 +11,12 @@ "blockbook_internal": 19032, "blockbook_public": 19132 }, - "block_chain": { + "ipc": { "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, - "parse": true, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}", - "mempool_workers": 4, - "mempool_sub_workers": 8, - "block_addresses_to_keep": 300, - "additional_params": {} + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, "backend": { "package_name": "backend-zcash-testnet", @@ -56,6 +47,17 @@ "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", "explorer_url": "https://explorer.testnet.z.cash/", - "additional_params": "" + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 4, + "mempool_sub_workers": 8, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" } } From c71de0a696f98b123c158ef493d7d439df1234c6 Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Fri, 27 Jul 2018 12:10:01 +0200 Subject: [PATCH 07/11] Unified addresses in IPC section --- configs/coins/bcash.json | 2 +- configs/coins/bcash_testnet.json | 2 +- configs/coins/bgold.json | 2 +- configs/coins/bitcoin.json | 2 +- configs/coins/bitcoin_testnet.json | 2 +- configs/coins/dash.json | 2 +- configs/coins/dash_testnet.json | 2 +- configs/coins/dogecoin.json | 2 +- configs/coins/ethereum.json | 2 +- configs/coins/ethereum_testnet_ropsten.json | 2 +- configs/coins/litecoin.json | 2 +- configs/coins/litecoin_testnet.json | 2 +- configs/coins/namecoin.json | 2 +- configs/coins/vertcoin.json | 2 +- configs/coins/vertcoin_testnet.json | 2 +- configs/coins/zcash.json | 2 +- configs/coins/zcash_testnet.json | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/configs/coins/bcash.json b/configs/coins/bcash.json index e275f53e..e876e7f2 100644 --- a/configs/coins/bcash.json +++ b/configs/coins/bcash.json @@ -12,7 +12,7 @@ "blockbook_public": 9131 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/bcash_testnet.json b/configs/coins/bcash_testnet.json index 6d50a14b..5f1b4675 100644 --- a/configs/coins/bcash_testnet.json +++ b/configs/coins/bcash_testnet.json @@ -12,7 +12,7 @@ "blockbook_public": 19131 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/bgold.json b/configs/coins/bgold.json index 943a83aa..f27149d4 100644 --- a/configs/coins/bgold.json +++ b/configs/coins/bgold.json @@ -12,7 +12,7 @@ "blockbook_public": 9135 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/bitcoin.json b/configs/coins/bitcoin.json index 8450e756..fedfb0c2 100644 --- a/configs/coins/bitcoin.json +++ b/configs/coins/bitcoin.json @@ -12,7 +12,7 @@ "blockbook_public": 9130 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/bitcoin_testnet.json b/configs/coins/bitcoin_testnet.json index 9cba51ff..069f4194 100644 --- a/configs/coins/bitcoin_testnet.json +++ b/configs/coins/bitcoin_testnet.json @@ -12,7 +12,7 @@ "blockbook_public": 19130 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/dash.json b/configs/coins/dash.json index b3f71c65..f0a16660 100644 --- a/configs/coins/dash.json +++ b/configs/coins/dash.json @@ -12,7 +12,7 @@ "blockbook_public": 9133 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/dash_testnet.json b/configs/coins/dash_testnet.json index ea8c8ac0..c5162101 100644 --- a/configs/coins/dash_testnet.json +++ b/configs/coins/dash_testnet.json @@ -12,7 +12,7 @@ "blockbook_public": 19133 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/dogecoin.json b/configs/coins/dogecoin.json index cd996d46..7e5f19b9 100644 --- a/configs/coins/dogecoin.json +++ b/configs/coins/dogecoin.json @@ -12,7 +12,7 @@ "blockbook_public": 9138 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/ethereum.json b/configs/coins/ethereum.json index 299de8c1..3c2b4c7b 100644 --- a/configs/coins/ethereum.json +++ b/configs/coins/ethereum.json @@ -12,7 +12,7 @@ "blockbook_public": 9136 }, "ipc": { - "rpc_url_template": "ws://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "ws://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_timeout": 25 }, "backend": { diff --git a/configs/coins/ethereum_testnet_ropsten.json b/configs/coins/ethereum_testnet_ropsten.json index 8a22736f..63618c67 100644 --- a/configs/coins/ethereum_testnet_ropsten.json +++ b/configs/coins/ethereum_testnet_ropsten.json @@ -12,7 +12,7 @@ "blockbook_public": 19136 }, "ipc": { - "rpc_url_template": "ws://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "ws://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_timeout": 25 }, "backend": { diff --git a/configs/coins/litecoin.json b/configs/coins/litecoin.json index 36d5e719..75da9905 100644 --- a/configs/coins/litecoin.json +++ b/configs/coins/litecoin.json @@ -12,7 +12,7 @@ "blockbook_public": 9134 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/litecoin_testnet.json b/configs/coins/litecoin_testnet.json index a7e900b4..7649ea11 100644 --- a/configs/coins/litecoin_testnet.json +++ b/configs/coins/litecoin_testnet.json @@ -12,7 +12,7 @@ "blockbook_public": 19134 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/namecoin.json b/configs/coins/namecoin.json index 8253bf27..ff770c16 100644 --- a/configs/coins/namecoin.json +++ b/configs/coins/namecoin.json @@ -12,7 +12,7 @@ "blockbook_public": 9139 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/vertcoin.json b/configs/coins/vertcoin.json index 47de2d37..3f6199b8 100644 --- a/configs/coins/vertcoin.json +++ b/configs/coins/vertcoin.json @@ -12,7 +12,7 @@ "blockbook_public": 9140 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/vertcoin_testnet.json b/configs/coins/vertcoin_testnet.json index e6d00a50..94cab0d4 100644 --- a/configs/coins/vertcoin_testnet.json +++ b/configs/coins/vertcoin_testnet.json @@ -12,7 +12,7 @@ "blockbook_public": 19140 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/zcash.json b/configs/coins/zcash.json index 0e3b2e82..2ce82994 100644 --- a/configs/coins/zcash.json +++ b/configs/coins/zcash.json @@ -12,7 +12,7 @@ "blockbook_public": 9132 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, diff --git a/configs/coins/zcash_testnet.json b/configs/coins/zcash_testnet.json index 7ad21820..77440417 100644 --- a/configs/coins/zcash_testnet.json +++ b/configs/coins/zcash_testnet.json @@ -12,7 +12,7 @@ "blockbook_public": 19132 }, "ipc": { - "rpc_url_template": "http://localhost:{{.Ports.BackendRPC}}", + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", "rpc_pass": "rpc", "rpc_timeout": 25, From 077038e8f86cd5697676ddc1d635d3642882b1bb Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Fri, 27 Jul 2018 12:56:14 +0200 Subject: [PATCH 08/11] Fixed dogecoin config --- configs/coins/dogecoin.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/coins/dogecoin.json b/configs/coins/dogecoin.json index 7e5f19b9..39c4350f 100644 --- a/configs/coins/dogecoin.json +++ b/configs/coins/dogecoin.json @@ -14,7 +14,7 @@ "ipc": { "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", "rpc_user": "rpc", - "rpc_pass": "rpc", + "rpc_pass": "rpcp", "rpc_timeout": 25, "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" }, @@ -39,7 +39,9 @@ "config_file": "bitcoin.conf", "additional_params": { "whitelist": "127.0.0.1", - "rpcthreads": 32 + "rpcthreads": 16, + "upnp": 0, + "discover": 0 } }, "blockbook": { From a7101b3ca505fd51c970a4889b55b7c0b33c9a2a Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Tue, 31 Jul 2018 09:27:32 +0200 Subject: [PATCH 09/11] Fixed Ethereum config --- configs/coins/ethereum.json | 4 ++++ configs/coins/ethereum_testnet_ropsten.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/configs/coins/ethereum.json b/configs/coins/ethereum.json index 3c2b4c7b..98f0b3e2 100644 --- a/configs/coins/ethereum.json +++ b/configs/coins/ethereum.json @@ -41,6 +41,10 @@ "explorer_url": "https://etherscan.io/", "additional_params": "", "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, "additional_params": {} } }, diff --git a/configs/coins/ethereum_testnet_ropsten.json b/configs/coins/ethereum_testnet_ropsten.json index 63618c67..6b3637c9 100644 --- a/configs/coins/ethereum_testnet_ropsten.json +++ b/configs/coins/ethereum_testnet_ropsten.json @@ -41,6 +41,10 @@ "explorer_url": "https://ropsten.etherscan.io/", "additional_params": "", "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, "additional_params": {} } }, From a636a3197d83a9385ed0b1d69d096f380789faa2 Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Tue, 31 Jul 2018 10:30:11 +0200 Subject: [PATCH 10/11] Added additional params template for backend service --- build/templates/backend/debian/service | 1 + build/templates/generate.go | 50 +++++++++++---------- configs/coins/bcash.json | 1 + configs/coins/bcash_testnet.json | 1 + configs/coins/bgold.json | 1 + configs/coins/bitcoin.json | 1 + configs/coins/bitcoin_testnet.json | 1 + configs/coins/dash.json | 1 + configs/coins/dash_testnet.json | 1 + configs/coins/dogecoin.json | 1 + configs/coins/ethereum.json | 1 + configs/coins/ethereum_testnet_ropsten.json | 1 + configs/coins/litecoin.json | 1 + configs/coins/litecoin_testnet.json | 1 + configs/coins/namecoin.json | 1 + configs/coins/vertcoin.json | 1 + configs/coins/vertcoin_testnet.json | 1 + configs/coins/zcash.json | 1 + configs/coins/zcash_testnet.json | 1 + 19 files changed, 44 insertions(+), 24 deletions(-) diff --git a/build/templates/backend/debian/service b/build/templates/backend/debian/service index ec6deed3..b494c22c 100644 --- a/build/templates/backend/debian/service +++ b/build/templates/backend/debian/service @@ -15,6 +15,7 @@ PIDFile=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid {{else -}} Type=simple {{end}} +{{template "Backend.ServiceAdditionalParamsTemplate" .}} # Resource limits LimitNOFILE=500000 diff --git a/build/templates/generate.go b/build/templates/generate.go index 949577db..aa4bc8e3 100644 --- a/build/templates/generate.go +++ b/build/templates/generate.go @@ -48,23 +48,24 @@ type Config struct { MessageQueueBindingTemplate string `json:"message_queue_binding_template"` } `json:"ipc"` Backend struct { - PackageName string `json:"package_name"` - PackageRevision string `json:"package_revision"` - SystemUser string `json:"system_user"` - Version string `json:"version"` - BinaryURL string `json:"binary_url"` - VerificationType string `json:"verification_type"` - VerificationSource string `json:"verification_source"` - ExtractCommand string `json:"extract_command"` - ExcludeFiles []string `json:"exclude_files"` - ExecCommandTemplate string `json:"exec_command_template"` - LogrotateFilesTemplate string `json:"logrotate_files_template"` - PostinstScriptTemplate string `json:"postinst_script_template"` - ServiceType string `json:"service_type"` - ProtectMemory bool `json:"protect_memory"` - Mainnet bool `json:"mainnet"` - ConfigFile string `json:"config_file"` - AdditionalParams interface{} `json:"additional_params"` + PackageName string `json:"package_name"` + PackageRevision string `json:"package_revision"` + SystemUser string `json:"system_user"` + Version string `json:"version"` + BinaryURL string `json:"binary_url"` + VerificationType string `json:"verification_type"` + VerificationSource string `json:"verification_source"` + ExtractCommand string `json:"extract_command"` + ExcludeFiles []string `json:"exclude_files"` + ExecCommandTemplate string `json:"exec_command_template"` + LogrotateFilesTemplate string `json:"logrotate_files_template"` + PostinstScriptTemplate string `json:"postinst_script_template"` + ServiceType string `json:"service_type"` + ServiceAdditionalParamsTemplate string `json:"service_additional_params_template"` + ProtectMemory bool `json:"protect_memory"` + Mainnet bool `json:"mainnet"` + ConfigFile string `json:"config_file"` + AdditionalParams interface{} `json:"additional_params"` } `json:"backend"` Blockbook struct { PackageName string `json:"package_name"` @@ -95,13 +96,14 @@ func jsonToString(msg json.RawMessage) (string, error) { func (c *Config) ParseTemplate() *template.Template { templates := map[string]string{ - "IPC.RPCURLTemplate": c.IPC.RPCURLTemplate, - "IPC.MessageQueueBindingTemplate": c.IPC.MessageQueueBindingTemplate, - "Backend.ExecCommandTemplate": c.Backend.ExecCommandTemplate, - "Backend.LogrotateFilesTemplate": c.Backend.LogrotateFilesTemplate, - "Backend.PostinstScriptTemplate": c.Backend.PostinstScriptTemplate, - "Blockbook.InternalBindingTemplate": c.Blockbook.InternalBindingTemplate, - "Blockbook.PublicBindingTemplate": c.Blockbook.PublicBindingTemplate, + "IPC.RPCURLTemplate": c.IPC.RPCURLTemplate, + "IPC.MessageQueueBindingTemplate": c.IPC.MessageQueueBindingTemplate, + "Backend.ExecCommandTemplate": c.Backend.ExecCommandTemplate, + "Backend.LogrotateFilesTemplate": c.Backend.LogrotateFilesTemplate, + "Backend.PostinstScriptTemplate": c.Backend.PostinstScriptTemplate, + "Backend.ServiceAdditionalParamsTemplate": c.Backend.ServiceAdditionalParamsTemplate, + "Blockbook.InternalBindingTemplate": c.Blockbook.InternalBindingTemplate, + "Blockbook.PublicBindingTemplate": c.Blockbook.PublicBindingTemplate, } funcMap := template.FuncMap{ diff --git a/configs/coins/bcash.json b/configs/coins/bcash.json index e876e7f2..e1bfe518 100644 --- a/configs/coins/bcash.json +++ b/configs/coins/bcash.json @@ -34,6 +34,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": true, "config_file": "bitcoin.conf" diff --git a/configs/coins/bcash_testnet.json b/configs/coins/bcash_testnet.json index 5f1b4675..af58f66a 100644 --- a/configs/coins/bcash_testnet.json +++ b/configs/coins/bcash_testnet.json @@ -34,6 +34,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": false, "config_file": "bitcoin.conf" diff --git a/configs/coins/bgold.json b/configs/coins/bgold.json index f27149d4..5f7b245f 100644 --- a/configs/coins/bgold.json +++ b/configs/coins/bgold.json @@ -34,6 +34,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": true, "config_file": "bitcoin.conf", diff --git a/configs/coins/bitcoin.json b/configs/coins/bitcoin.json index fedfb0c2..0fa0f907 100644 --- a/configs/coins/bitcoin.json +++ b/configs/coins/bitcoin.json @@ -34,6 +34,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": true, "config_file": "bitcoin.conf", diff --git a/configs/coins/bitcoin_testnet.json b/configs/coins/bitcoin_testnet.json index 069f4194..d949cf5f 100644 --- a/configs/coins/bitcoin_testnet.json +++ b/configs/coins/bitcoin_testnet.json @@ -34,6 +34,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": false, "config_file": "bitcoin.conf", diff --git a/configs/coins/dash.json b/configs/coins/dash.json index f0a16660..d2895671 100644 --- a/configs/coins/dash.json +++ b/configs/coins/dash.json @@ -34,6 +34,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": true, "config_file": "bitcoin.conf", diff --git a/configs/coins/dash_testnet.json b/configs/coins/dash_testnet.json index c5162101..38407e37 100644 --- a/configs/coins/dash_testnet.json +++ b/configs/coins/dash_testnet.json @@ -34,6 +34,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": false, "config_file": "bitcoin.conf", diff --git a/configs/coins/dogecoin.json b/configs/coins/dogecoin.json index 39c4350f..cb9b7a68 100644 --- a/configs/coins/dogecoin.json +++ b/configs/coins/dogecoin.json @@ -34,6 +34,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": false, "mainnet": true, "config_file": "bitcoin.conf", diff --git a/configs/coins/ethereum.json b/configs/coins/ethereum.json index 98f0b3e2..c51ccec9 100644 --- a/configs/coins/ethereum.json +++ b/configs/coins/ethereum.json @@ -29,6 +29,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log", "postinst_script_template": "", "service_type": "simple", + "service_additional_params_template": "", "protect_memory": true, "mainnet": true, "config_file": "" diff --git a/configs/coins/ethereum_testnet_ropsten.json b/configs/coins/ethereum_testnet_ropsten.json index 6b3637c9..cb241065 100644 --- a/configs/coins/ethereum_testnet_ropsten.json +++ b/configs/coins/ethereum_testnet_ropsten.json @@ -29,6 +29,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log", "postinst_script_template": "", "service_type": "simple", + "service_additional_params_template": "", "protect_memory": true, "mainnet": false, "config_file": "" diff --git a/configs/coins/litecoin.json b/configs/coins/litecoin.json index 75da9905..9279940f 100644 --- a/configs/coins/litecoin.json +++ b/configs/coins/litecoin.json @@ -34,6 +34,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": true, "config_file": "bitcoin.conf", diff --git a/configs/coins/litecoin_testnet.json b/configs/coins/litecoin_testnet.json index 7649ea11..819ae8c0 100644 --- a/configs/coins/litecoin_testnet.json +++ b/configs/coins/litecoin_testnet.json @@ -34,6 +34,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet4/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": false, "config_file": "bitcoin.conf", diff --git a/configs/coins/namecoin.json b/configs/coins/namecoin.json index ff770c16..754ee628 100644 --- a/configs/coins/namecoin.json +++ b/configs/coins/namecoin.json @@ -34,6 +34,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": true, "config_file": "bitcoin.conf", diff --git a/configs/coins/vertcoin.json b/configs/coins/vertcoin.json index 3f6199b8..d68a0a0f 100644 --- a/configs/coins/vertcoin.json +++ b/configs/coins/vertcoin.json @@ -32,6 +32,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": true, "config_file": "bitcoin.conf", diff --git a/configs/coins/vertcoin_testnet.json b/configs/coins/vertcoin_testnet.json index 94cab0d4..314929c3 100644 --- a/configs/coins/vertcoin_testnet.json +++ b/configs/coins/vertcoin_testnet.json @@ -32,6 +32,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", "postinst_script_template": "", "service_type": "forking", + "service_additional_params_template": "", "protect_memory": true, "mainnet": false, "config_file": "bitcoin.conf", diff --git a/configs/coins/zcash.json b/configs/coins/zcash.json index 2ce82994..ab65b246 100644 --- a/configs/coins/zcash.json +++ b/configs/coins/zcash.json @@ -32,6 +32,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", "postinst_script_template": "HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/zcash-fetch-params", "service_type": "forking", + "service_additional_params_template": "Environment=\"HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend\"", "protect_memory": false, "mainnet": true, "config_file": "bitcoin.conf", diff --git a/configs/coins/zcash_testnet.json b/configs/coins/zcash_testnet.json index 77440417..c2793c96 100644 --- a/configs/coins/zcash_testnet.json +++ b/configs/coins/zcash_testnet.json @@ -32,6 +32,7 @@ "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", "postinst_script_template": "HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/zcash-fetch-params --testnet", "service_type": "forking", + "service_additional_params_template": "Environment=\"HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend\"", "protect_memory": false, "mainnet": false, "config_file": "bitcoin.conf", From f3d727f16e6c2a119759ea4ea4ac8ecc9681b70d Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Tue, 31 Jul 2018 10:46:15 +0200 Subject: [PATCH 11/11] Changes from master --- bchain/coins/btc/bitcoinrpc.go | 1 + bchain/coins/eth/ethrpc.go | 7 ++++--- build/templates/blockbook/blockchaincfg.json | 1 + configs/coins/bgold.json | 2 +- configs/coins/bitcoin.json | 2 +- configs/coins/bitcoin_testnet.json | 2 +- configs/coins/litecoin.json | 2 +- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/bchain/coins/btc/bitcoinrpc.go b/bchain/coins/btc/bitcoinrpc.go index 6b6142ed..e0176d16 100644 --- a/bchain/coins/btc/bitcoinrpc.go +++ b/bchain/coins/btc/bitcoinrpc.go @@ -37,6 +37,7 @@ type BitcoinRPC struct { type Configuration struct { CoinName string `json:"coin_name"` + CoinShortcut string `json:"coin_shortcut"` RPCURL string `json:"rpc_url"` RPCUser string `json:"rpc_user"` RPCPass string `json:"rpc_pass"` diff --git a/bchain/coins/eth/ethrpc.go b/bchain/coins/eth/ethrpc.go index d1fd5042..1285c354 100644 --- a/bchain/coins/eth/ethrpc.go +++ b/bchain/coins/eth/ethrpc.go @@ -30,9 +30,10 @@ const ( ) type Configuration struct { - CoinName string `json:"coin_name"` - RPCURL string `json:"rpc_url"` - RPCTimeout int `json:"rpc_timeout"` + CoinName string `json:"coin_name"` + CoinShortcut string `json:"coin_shortcut"` + RPCURL string `json:"rpc_url"` + RPCTimeout int `json:"rpc_timeout"` } // EthereumRPC is an interface to JSON-RPC eth service. diff --git a/build/templates/blockbook/blockchaincfg.json b/build/templates/blockbook/blockchaincfg.json index c24b3afc..f8acb70b 100644 --- a/build/templates/blockbook/blockchaincfg.json +++ b/build/templates/blockbook/blockchaincfg.json @@ -7,6 +7,7 @@ {{end}} "coin_name": "{{.Coin.Name}}", + "coin_shortcut": "{{.Coin.Shortcut}}", "rpc_url": "{{template "IPC.RPCURLTemplate" .}}", "rpc_user": "{{.IPC.RPCUser}}", "rpc_pass": "{{.IPC.RPCPass}}", diff --git a/configs/coins/bgold.json b/configs/coins/bgold.json index 5f7b245f..791deba1 100644 --- a/configs/coins/bgold.json +++ b/configs/coins/bgold.json @@ -239,7 +239,7 @@ "system_user": "blockbook-bgold", "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", - "explorer_url": "https://explorer.bitcoingold.org", + "explorer_url": "/explorer", "additional_params": "", "block_chain": { "parse": true, diff --git a/configs/coins/bitcoin.json b/configs/coins/bitcoin.json index 0fa0f907..f60bf39d 100644 --- a/configs/coins/bitcoin.json +++ b/configs/coins/bitcoin.json @@ -47,7 +47,7 @@ "system_user": "blockbook-bitcoin", "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", - "explorer_url": "https://btc-explorer.trezor.io", + "explorer_url": "/explorer", "additional_params": "", "block_chain": { "parse": true, diff --git a/configs/coins/bitcoin_testnet.json b/configs/coins/bitcoin_testnet.json index d949cf5f..760163be 100644 --- a/configs/coins/bitcoin_testnet.json +++ b/configs/coins/bitcoin_testnet.json @@ -47,7 +47,7 @@ "system_user": "blockbook-bitcoin", "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", - "explorer_url": "https://btc-testnet-explorer.trezor.io", + "explorer_url": "/explorer", "additional_params": "", "block_chain": { "parse": true, diff --git a/configs/coins/litecoin.json b/configs/coins/litecoin.json index 9279940f..67cbbb48 100644 --- a/configs/coins/litecoin.json +++ b/configs/coins/litecoin.json @@ -47,7 +47,7 @@ "system_user": "blockbook-litecoin", "internal_binding_template": ":{{.Ports.BlockbookInternal}}", "public_binding_template": ":{{.Ports.BlockbookPublic}}", - "explorer_url": "https://ltc-explorer.trezor.io", + "explorer_url": "/explorer", "additional_params": "", "block_chain": { "parse": true,