Skip to content

Commit

Permalink
testing/harness/dcr: Update vspd to client/v4.0.1.
Browse files Browse the repository at this point in the history
Use the downloaded vspd and vspadmin binaries.
  • Loading branch information
JoeGruffins committed Nov 18, 2024
1 parent 50005f4 commit 6772503
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dex/testing/dcr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The harness depends on [dcrd](https://github.com/decred/dcrd), [dcrwallet](https

## Using

You must have `dcrd` `dcrwallet` `vspd` and `dcrctl` in `PATH` to use the harness.
You must have `dcrd` `dcrwallet` and `dcrctl` in `PATH` to use the harness.

The harness script will create two connected simnet nodes and wallets, and
then mine some blocks and send some regular transactions. The result is a set of
Expand Down
18 changes: 13 additions & 5 deletions dex/testing/dcr/create-vspd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,22 @@ FEE_XPUB=$3

VSPD_DIR="${NODES_ROOT}/vspd"

git clone -b release-v1.3.2 --depth 1 https://github.com/decred/vspd ${VSPD_DIR}
git clone -b client/v4.0.1 --depth 1 https://github.com/decred/vspd ${VSPD_DIR}

cd ${VSPD_DIR}/cmd/vspadmin
go build
cd ${VSPD_DIR}/cmd/vspd
go build


DCRD_PORT="${ALPHA_NODE_RPC_PORT}"
DCRD_CERT="${NODES_ROOT}/alpha/rpc.cert"
USER="${RPC_USER}"
PASS="${RPC_PASS}"
WALLET_PORT="${VSPD_WALLET_RPC_PORT}"
DCRWALLET_RPC_PORT="${ALPHA_WALLET_RPC_PORT}"
VSPADMIN_BIN="${VSPD_DIR}/cmd/vspadmin/vspadmin"
VSPD_BIN="${VSPD_DIR}/cmd/vspd/vspd"

WALLET_CERT="${NODES_ROOT}/vspdwallet/rpc.cert"

Expand All @@ -43,9 +51,9 @@ tmux new-window -t $TMUX_WIN_ID -n vspd $SHELL
tmux send-keys -t $TMUX_WIN_ID "set +o history" C-m
tmux send-keys -t $TMUX_WIN_ID "cd ${VSPD_DIR}" C-m

echo "Creating simnet vspd"
tmux send-keys -t $TMUX_WIN_ID "vspd --homedir=${VSPD_DIR} --feexpub=${FEE_XPUB}; tmux wait-for -S vspd" C-m
tmux wait-for vspd
echo "Creating simnet vspd database"
tmux send-keys -t $TMUX_WIN_ID "${VSPADMIN_BIN} createdatabase ${FEE_XPUB} --network=simnet --homedir=${VSPD_DIR}; tmux wait-for -S vspadmin" C-m
tmux wait-for vspadmin

echo "Starting simnet vspd"
tmux send-keys -t $TMUX_WIN_ID "vspd --homedir=${VSPD_DIR}; tmux wait-for -S vspd" C-m
tmux send-keys -t $TMUX_WIN_ID "${VSPD_BIN} --homedir=${VSPD_DIR}; tmux wait-for -S vspd" C-m

0 comments on commit 6772503

Please sign in to comment.