Skip to content

Commit

Permalink
dcr: update simnet harness for new pow (#2358)
Browse files Browse the repository at this point in the history
  • Loading branch information
chappjc committed Jun 17, 2023
1 parent 8aad3fa commit 9908805
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions dex/testing/dcr/create-wallet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ cat >> "${WALLET_DIR}/${NAME}.conf" <<EOF
enablevoting=1
enableticketbuyer=1
ticketbuyer.limit=6
; NOTE: when regenerating the chain from genesis, might need to comment out this line:
ticketbuyer.balancetomaintainabsolute=1000
EOF
fi
Expand Down
9 changes: 3 additions & 6 deletions dex/testing/dcr/harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,6 @@ if [ "$MINE" = "1" ]; then
echo "Mining 600 blocks on alpha"
echo "Mining blocks 0 through 99"
tmux send-keys -t $SESSION:0 "./mine-alpha 100${WAIT}" C-m\; wait-for donedcr

# Send beta some dough while we're here.
tmux send-keys -t $SESSION:0 "./alpha sendtoaddress ${BETA_MINING_ADDR} 1000${WAIT}" C-m\; wait-for donedcr

echo "Mining blocks 100 through 199"
tmux send-keys -t $SESSION:0 "./mine-alpha 100${WAIT}" C-m\; wait-for donedcr
echo "Mining blocks 200 through 299"
Expand All @@ -351,11 +347,12 @@ if [ "$MINE" = "1" ]; then
tmux send-keys -t $SESSION:0 "./mine-alpha 100${WAIT}" C-m\; wait-for donedcr
echo "Mining blocks 400 through 499"
tmux send-keys -t $SESSION:0 "./mine-alpha 100${WAIT}" C-m\; wait-for donedcr
# Don't stop here. There's a period of high ticket price where the avaialable
# balance for alpha is really low. Go to 600 to get through it.
echo "Mining blocks 500 through 599"
tmux send-keys -t $SESSION:0 "./mine-alpha 100${WAIT}" C-m\; wait-for donedcr

# Send beta some dough while we're here.
tmux send-keys -t $SESSION:0 "./alpha sendtoaddress ${BETA_MINING_ADDR} 1000${WAIT}" C-m\; wait-for donedcr

# Have alpha send some credits to the other wallets
for i in 10 18 5 7 1 15 3 25
do
Expand Down
Binary file modified dex/testing/dcr/harnesschain.tar.gz
Binary file not shown.

0 comments on commit 9908805

Please sign in to comment.