Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing/harness/dcr: Update vspd to client/v4.0.1. #3084

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading