You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
568 B
22 lines
568 B
#!/bin/bash
|
|
set -e
|
|
|
|
indexer_options=(
|
|
-vvvv
|
|
--index-batch-size="$INDEXER_BATCH_SIZE"
|
|
--jsonrpc-import
|
|
--db-dir="/home/indexer/db"
|
|
--indexer-rpc-addr="172.28.1.6:50001"
|
|
--daemon-rpc-addr="$BITCOIND_IP:$BITCOIND_RPC_PORT"
|
|
--cookie="$BITCOIND_RPC_USER:$BITCOIND_RPC_PASSWORD"
|
|
--txid-limit="$INDEXER_TXID_LIMIT"
|
|
--blocktxids-cache-size-mb="$INDEXER_BLK_TXIDS_CACHE_SIZE_MB"
|
|
)
|
|
|
|
if [ "$COMMON_BTC_NETWORK" == "testnet" ]; then
|
|
bitcoind_options+=(--network="testnet")
|
|
else
|
|
bitcoind_options+=(--network="mainnet")
|
|
fi
|
|
|
|
addrindexrs "${indexer_options[@]}"
|
|
|