-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from ActorForth/refactor
Refactor bch-toolkit
- Loading branch information
Showing
19 changed files
with
620 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule bch-api
deleted from
806369
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# Full node | ||
export RPC_BASEURL=http://localhost:18443/ | ||
export RPC_USERNAME=regtest | ||
export RPC_PASSWORD=regtest | ||
export NETWORK=regtest | ||
|
||
# SLPDB | ||
export SLPDB_URL=http://localhost:12300/ | ||
|
||
# Blockbook | ||
export BLOCKBOOK_URL=https://<Blockbook IP>:9131/ | ||
# Allow node.js to make network calls to https using self-signed certificate. | ||
export NODE_TLS_REJECT_UNAUTHORIZED=0 | ||
|
||
# Mainnet Fulcrum / ElectrumX | ||
export FULCRUM_URL=bitcoind-regtest | ||
export FULCRUM_PORT=50002 | ||
|
||
export SECURITY=false | ||
### require if SECURITY=true ### | ||
export TOKENSECRET=somelongpassword | ||
# Redis require for rate limite middleware | ||
export REDIS_HOST=6379 | ||
export REDIS_PORT=127.0.0.1 | ||
################################## | ||
|
||
npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
# Bitcoind config | ||
# BitcoinUnlimited config | ||
|
||
regtest=1 | ||
|
||
rpcuser=regtest | ||
rpcpassword=regtest | ||
|
||
rpcallowip=0.0.0.0/0 | ||
rpcbind=0.0.0.0:18332 | ||
rpcport=18332 | ||
rpcbind=0.0.0.0:18443 | ||
rpcport=18443 | ||
|
||
txindex=1 | ||
server=1 | ||
rest=1 | ||
|
||
### Pats settings | ||
maxconnections=0 | ||
#disablewallet=1 #leave this enabled until Bitcash has Coinbase support | ||
|
||
rpcworkqueue=10000 | ||
rpcthreads=8 | ||
zmqpubhashtx=tcp://*:28332 | ||
zmqpubrawtx=tcp://*:28332 | ||
zmqpubhashblock=tcp://*:28332 | ||
zmqpubrawblock=tcp://*:28332 | ||
### | ||
|
||
reindex=1 | ||
txindex=1 | ||
|
||
electrum=1 | ||
electrum.port=50001 | ||
electrum.host=0.0.0.0 | ||
|
||
debug=electrum | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Bitcoin Cash Node config | ||
|
||
regtest=1 | ||
|
||
txindex=1 | ||
reindex=1 | ||
server=1 | ||
rest=1 | ||
|
||
maxconnections=0 | ||
# disablewallet=1 | ||
|
||
rpcworkqueue=10000 | ||
rpcthreads=8 | ||
zmqpubhashtx=tcp://*:28332 | ||
zmqpubrawtx=tcp://*:28332 | ||
zmqpubhashblock=tcp://*:28332 | ||
zmqpubrawblock=tcp://*:28332 | ||
|
||
[regtest] | ||
rpcuser=regtest | ||
rpcpassword=regtest | ||
|
||
rpcallowip=0.0.0.0/0 | ||
rpcbind=0.0.0.0:18443 | ||
rpcport=18443 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# Quickstart Example Configuration File for Fulcrum | ||
# | ||
# This file is a quick sample config that has brief comments for the basic | ||
# options offered by Fulcrum. For a more complete description of all the | ||
# possible configuration variables, please see "fulcrum-example-config.conf" | ||
# from the doc/ directory of the Fulcrum source code. | ||
#------------------------------------------------------------------------------- | ||
|
||
# *REQUIRED* This is your database directory. The mountpoint needs about 35GB | ||
# free space if synching to mainnet and 8GB free space if synching to testnet. | ||
# NOTE: Use native path separators: '/' on Unix, '\' on Windows. | ||
datadir = /data # Windows: datadir = D:\FulcrumData\mainnet | ||
|
||
# *REQUIRED* This is the bitcoind RPC socket you configured usig rpcbind= and | ||
# rpcport= in your bitcoind .conf file. | ||
bitcoind = bitcoind-regtest:18443 | ||
|
||
# *OPTIONAL* Use this option to connect to bitcoind via HTTPS rather than the | ||
# usual HTTP. This option typically is only used with `bchd`. | ||
#bitcoind-tls = true | ||
|
||
# *REQUIRED* This is the bitcoind RPC username you specified in your bitciond | ||
# .conf file. This corresponds to the rpcuser= from that file. | ||
rpcuser = regtest | ||
|
||
# *REQUIRED* This is the bitcoind RPC password you specified in your bitciond | ||
# .conf file. This corresponds to the rpcpassword= from that file. | ||
rpcpassword = regtest | ||
|
||
# *RECOMMENDED* - TCP bind - 'tcp' - DEFAULT: 0.0.0.0:50001, Specifies the IPv4 | ||
# or IPv6 interface:port to bind to. | ||
tcp = 0.0.0.0:50001 | ||
|
||
# *RECOMMENDED* - SSL bind - 'ssl' - DEFAULT: Noting, Specifies the IPv4 or IPv6 | ||
# interface:port to bind to. The presence of this variable requires key= and | ||
# cert= both be specified. | ||
#ssl = 0.0.0.0:50002 | ||
|
||
# *RECOMMENDED* - WS bind - 'ws' - DEFAULT: Nothing, Specifies the IPv4 or IPv6 | ||
# interface:port to bind to for Web Socket support (ws://). | ||
#ws = 0.0.0.0:50003 | ||
|
||
# *RECOMMENDED* - WSS bind - 'wss' - DEFAULT: Nothing, Specifies the IPv4 or | ||
# IPv6 interface:port to bind to for Web Socket Secure support (wss://). The | ||
# presence of this variable requires key= and cert= both be specified. | ||
#wss = 0.0.0.0:50004 | ||
|
||
peering = false | ||
announce = false | ||
|
||
# SSL cert. - 'cert' - DEFAULT: None (required for SSL) (PEM, self-signed ok) | ||
#cert = /path/to/server-cert.pem | ||
|
||
# SSL private key - 'key' - DEFAULT: None (required for SSL) (PEM format) | ||
#key = /path/to/server-key.pem | ||
|
||
# WSS-specific cert. - 'wss-cert' - DEFAULT: None | ||
#wss-cert = /path/to/my-ca-signed-wss-fullchain.pem | ||
|
||
# Public SSL port - 'public_ssl_port' - DEFAULT: The first 'ssl' port configured | ||
#public_ssl_port = 50002 | ||
|
||
# Public WS port - 'public_ws_port' - DEFAULT: The first 'ws' port configured | ||
#public_ws_port = 50003 | ||
|
||
# Public WSS port - 'public_wss_port' - DEFAULT: The first 'wss' port configured | ||
#public_wss_port = 50004 | ||
|
||
# Admin RPC bind - 'admin' - DEFAULT: None -- *REQUIRED* to use "FulcrumAdmin" | ||
# admin = 8000 # <-- 1.2.3.4:8000 notation also accepted here | ||
|
||
# Donation address - 'donation' | ||
# - DEFAULT: bitcoincash:qplw0d304x9fshz420lkvys2jxup38m9symky6k028 | ||
# donation = bitcoincash:qplw0d304x9fshz420lkvys2jxup38m9symky6k028 | ||
|
||
# Server banner text file - 'banner' | ||
# - DEFAULT: Send a static string "Connected to a Fulcruim xx.x server" | ||
#banner = /path/to/banner.txt | ||
|
||
# HTTP stats bind - 'stats' - DEFAULT: None | ||
# stats = 8080 # <-- 1.2.3.4:8080 notation also accepted here | ||
|
||
# Bitcoin daemon poll interval - 'polltime' - Default: 2.0 seconds | ||
#polltime = 2.0 | ||
|
||
# Set this to a number in the 20-100 range if you want to limit memory | ||
# consumption to conservative levels at the expense of performance. Default | ||
# if unspecified is 20. | ||
#db_max_open_files = 20 | ||
|
||
#------------------------------------------------------------------------------- | ||
# TOR Configuration (optional) | ||
#------------------------------------------------------------------------------- | ||
|
||
# This is optional but if tor_hostname is set and if at least one tor_*_port is | ||
# specified, we will also announce ourselves on Tor (if announce=true). | ||
#tor_hostname=aykwhy6o2o4ixushlonpjooqv73fwx7jqgoreiknnqxuqv4dwffmb7qd.onion | ||
|
||
# Tor banner is optional. If unset, will just user the regular banner= | ||
#tor_banner=/path/to/another/alternate/banner_tor.txt | ||
|
||
# Specify which port(s) are Tor. One of: tor_tcp_port, tor_ssl_port, | ||
# tor_ws_port, or tor_wss_port (or any combination thereof) must be specified | ||
# otherwise we won't announce ourselves via Tor. | ||
#tor_tcp_port = 50001 | ||
#tor_ssl_port = 50002 | ||
#tor_ws_port = 50003 | ||
#tor_wss_port = 50004 | ||
|
||
# The proxy server to use to discover/connect-to Tor peers. | ||
#tor_proxy = 9050 # e.g. localhost 9050. IP addr or hostname ok too: 10.0.0.1:9150, fooproxy.com:9050, etc. | ||
#tor_user = # leave this out unless you specified this in your torrc | ||
#tor_pass = # leave this out unless you specified this in your torrcn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.