Add Bitcoin Testnet4
This commit is contained in:
parent
0cc953fcca
commit
d8c68f2b6b
@ -67,6 +67,7 @@ var BlockChainFactories = make(map[string]blockChainFactory)
|
||||
func init() {
|
||||
BlockChainFactories["Bitcoin"] = btc.NewBitcoinRPC
|
||||
BlockChainFactories["Testnet"] = btc.NewBitcoinRPC
|
||||
BlockChainFactories["Testnet4"] = btc.NewBitcoinRPC
|
||||
BlockChainFactories["Signet"] = btc.NewBitcoinRPC
|
||||
BlockChainFactories["Regtest"] = btc.NewBitcoinRPC
|
||||
BlockChainFactories["Zcash"] = zec.NewZCashRPC
|
||||
|
||||
38
build/templates/backend/config/bitcoin_testnet4.conf
Normal file
38
build/templates/backend/config/bitcoin_testnet4.conf
Normal file
@ -0,0 +1,38 @@
|
||||
{{define "main" -}}
|
||||
daemon=1
|
||||
server=1
|
||||
{{if .Backend.Mainnet}}mainnet=1{{else}}testnet4=1{{end}}
|
||||
nolisten=1
|
||||
txindex=1
|
||||
disablewallet=1
|
||||
|
||||
zmqpubhashtx={{template "IPC.MessageQueueBindingTemplate" .}}
|
||||
zmqpubhashblock={{template "IPC.MessageQueueBindingTemplate" .}}
|
||||
|
||||
rpcworkqueue=1100
|
||||
maxmempool=4096
|
||||
mempoolexpiry=8760
|
||||
mempoolfullrbf=1
|
||||
|
||||
dbcache=1000
|
||||
|
||||
deprecatedrpc=warnings
|
||||
|
||||
{{- 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}}
|
||||
|
||||
{{if .Backend.Mainnet}}[main]{{else}}[testnet4]{{end}}
|
||||
{{generateRPCAuth .IPC.RPCUser .IPC.RPCPass -}}
|
||||
rpcport={{.Ports.BackendRPC}}
|
||||
|
||||
{{end}}
|
||||
80
configs/coins/bitcoin_testnet4.json
Normal file
80
configs/coins/bitcoin_testnet4.json
Normal file
@ -0,0 +1,80 @@
|
||||
{
|
||||
"coin": {
|
||||
"name": "Testnet4",
|
||||
"shortcut": "TEST",
|
||||
"label": "Bitcoin Testnet4",
|
||||
"alias": "bitcoin_testnet4"
|
||||
},
|
||||
"ports": {
|
||||
"backend_rpc": 18029,
|
||||
"backend_message_queue": 48329,
|
||||
"blockbook_internal": 19029,
|
||||
"blockbook_public": 19129
|
||||
},
|
||||
"ipc": {
|
||||
"rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}",
|
||||
"rpc_user": "rpc",
|
||||
"rpc_pass": "rpc",
|
||||
"rpc_timeout": 25,
|
||||
"message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}"
|
||||
},
|
||||
"backend": {
|
||||
"package_name": "backend-bitcoin-testnet4",
|
||||
"package_revision": "satoshilabs-1",
|
||||
"system_user": "bitcoin",
|
||||
"version": "28.0",
|
||||
"binary_url": "https://bitcoincore.org/bin/bitcoin-core-28.0/bitcoin-28.0-x86_64-linux-gnu.tar.gz",
|
||||
"verification_type": "sha256",
|
||||
"verification_source": "7fe294b02b25b51acb8e8e0a0eb5af6bbafa7cd0c5b0e5fcbb61263104a82fbc",
|
||||
"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/testnet4/*.log",
|
||||
"postinst_script_template": "",
|
||||
"service_type": "forking",
|
||||
"service_additional_params_template": "",
|
||||
"protect_memory": true,
|
||||
"mainnet": false,
|
||||
"server_config_file": "bitcoin_testnet4.conf",
|
||||
"client_config_file": "bitcoin_client.conf",
|
||||
"additional_params": {
|
||||
"deprecatedrpc": "estimatefee"
|
||||
},
|
||||
"platforms": {
|
||||
"arm64": {
|
||||
"binary_url": "https://bitcoincore.org/bin/bitcoin-core-28.0/bitcoin-28.0-aarch64-linux-gnu.tar.gz",
|
||||
"verification_source": "7fa582d99a25c354d23e371a5848bd9e6a79702870f9cbbf1292b86e647d0f4e"
|
||||
}
|
||||
}
|
||||
},
|
||||
"blockbook": {
|
||||
"package_name": "blockbook-bitcoin-testnet4",
|
||||
"system_user": "blockbook-bitcoin",
|
||||
"internal_binding_template": ":{{.Ports.BlockbookInternal}}",
|
||||
"public_binding_template": ":{{.Ports.BlockbookPublic}}",
|
||||
"explorer_url": "",
|
||||
"additional_params": "-enablesubnewtx -extendedindex",
|
||||
"block_chain": {
|
||||
"parse": true,
|
||||
"mempool_workers": 8,
|
||||
"mempool_sub_workers": 2,
|
||||
"block_addresses_to_keep": 10000,
|
||||
"xpub_magic": 70617039,
|
||||
"xpub_magic_segwit_p2sh": 71979618,
|
||||
"xpub_magic_segwit_native": 73342198,
|
||||
"slip44": 1,
|
||||
"additional_params": {
|
||||
"block_golomb_filter_p": 20,
|
||||
"block_filter_scripts": "taproot-noordinals",
|
||||
"block_filter_use_zeroed_key": true,
|
||||
"mempool_golomb_filter_p": 20,
|
||||
"mempool_filter_scripts": "taproot",
|
||||
"mempool_filter_use_zeroed_key": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"package_maintainer": "IT",
|
||||
"package_maintainer_email": "it@satoshilabs.com"
|
||||
}
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
# Registry of ports
|
||||
|
||||
| coin | blockbook public | blockbook internal | backend rpc | backend service ports (zmq) |
|
||||
|----------------------------------|------------------|--------------------|-------------|-----------------------------------------------------|
|
||||
| -------------------------------- | ---------------- | ------------------ | ----------- | --------------------------------------------------- |
|
||||
| Ethereum Archive | 9116 | 9016 | 8016 | 38316 p2p, 8116 http, 8516 authrpc |
|
||||
| Bitcoin | 9130 | 9030 | 8030 | 38330 |
|
||||
| Bitcoin Cash | 9131 | 9031 | 8031 | 38331 |
|
||||
@ -58,6 +58,7 @@
|
||||
| Ethereum Testnet Holesky | 19116 | 19016 | 18016 | 18116 http, 18516 authrpc, 48316 p2p |
|
||||
| Bitcoin Signet | 19120 | 19020 | 18020 | 48320 |
|
||||
| Bitcoin Regtest | 19121 | 19021 | 18021 | 48321 |
|
||||
| Bitcoin Testnet4 | 19129 | 19029 | 18029 | 48329 |
|
||||
| Bitcoin Testnet | 19130 | 19030 | 18030 | 48330 |
|
||||
| Bitcoin Cash Testnet | 19131 | 19031 | 18031 | 48331 |
|
||||
| Zcash Testnet | 19132 | 19032 | 18032 | 48332 |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user