decred.org/dcrdex@v1.0.5/dex/testing/btc/harness.sh (about)

     1  #!/usr/bin/env bash
     2  export SYMBOL="btc"
     3  export DAEMON="bitcoind"
     4  export CLI="bitcoin-cli"
     5  export RPC_USER="user"
     6  export RPC_PASS="pass"
     7  export ALPHA_LISTEN_PORT="20575"
     8  export BETA_LISTEN_PORT="20576"
     9  export ALPHA_RPC_PORT="20556"
    10  export BETA_RPC_PORT="20557"
    11  export WALLET_PASSWORD="abc"
    12  # For a descriptor wallet (no seed), a [wallet_name]-desc.json file is used with
    13  # importdescriptors to set the wallet keys.
    14  export ALPHA_WALLET_SEED="cMndqchcXSCUQDDZQSKU2cUHbPb5UfFL9afspxsBELeE6qx6ac9n"
    15  export ALPHA_MINING_ADDR="bcrt1qy7agjj62epx0ydnqskgwlcfwu52xjtpj36hr0d"
    16  export BETA_MINING_ADDR="bcrt1q8hzxze4zrjtpm27lrlanc20uhtswteye8ad7gx"
    17  # Gamma is a named wallet in the alpha wallet directory.
    18  export GAMMA_ADDRESS="bcrt1qt2xf2s5dkm4t34zm69w9my2dhwmnskwv4st3ly"
    19  # Delta is a named wallet in the beta wallet directory.
    20  export DELTA_WALLET_SEED="cURsyTZ8icuTHwWxSfTC2Geu2F6dMRtnzt1gvSaxHdc9Zf6eviJN"
    21  export DELTA_ADDRESS="bcrt1q4clywna5re22qh9mexqty8u8mqvhjh8cwhp5ms"
    22  export EXTRA_ARGS="--blockfilterindex --peerblockfilters --rpcbind=0.0.0.0 --rpcallowip=0.0.0.0/0"
    23  export CREATE_DEFAULT_WALLET="1"
    24  export VERSION_26_TEMP_DEPRICATED_DBD="1"
    25  
    26  
    27  # The new-wallet script creates a new wallet with keys (not blank), and no
    28  # passphrase. $1 is the node to create the wallet on, $2 is the wallet
    29  # passphrase, and $3 (optional) is true/false for a descriptor wallet.
    30  # For reference, possible arguments to createwallet are:
    31  # "wallet_name" ( disable_private_keys blank(boolean) "passphrase" avoid_reuse descriptors load_on_startup external_signer )
    32  export NEW_WALLET_CMD="./\$1 -named createwallet wallet_name=\$2 descriptors=\${3:-false} load_on_startup=true"
    33  
    34  # Run the harness
    35  export HARNESS_VER="1" # for outdated chain archive detection
    36  ./base-harness.sh