Skip to content

Commit

Permalink
fix test script
Browse files Browse the repository at this point in the history
  • Loading branch information
tellnobody1 committed May 6, 2023
1 parent 6d68112 commit a568318
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 2 additions & 0 deletions doc/bsv/test-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,6 @@ docker run --rm --network container:bitcoind bitcoinsv/bitcoin-sv bitcoin-cli -r

bitcoin-cli getbalance
bitcoin-cli setban "172.17.0.1" "remove"

./test_bsv.sh
```
21 changes: 10 additions & 11 deletions test_bsv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ OUT_PNT=0 # unpent voud
DATA="68656c6c6f2c7361696c6f72" # your message
NETWORK="bsv-reg"

IN_ADD=""
CHANGE="-1"
DUST="-1"
OUT_ADD=""
DST_ADD=""

RUST_BACKTRACE=1 cargo run -- $NETWORK \
--in_address $IN_ADD --in_amount $AMOUNT --secret $SECRET \
--outpoint_hash $OUT_HSH --outpoint_index $OUT_PNT \
--out_address $OUT_ADD --change $CHANGE \
--dust_address $DST_ADD --dust_amount $DUST \
--data $DATA
--in_address "" \
--in_amount $AMOUNT \
--secret $SECRET \
--outpoint_hash $OUT_HSH \
--outpoint_index $OUT_PNT \
--out_address "" \
--change "0" \
--dust_address "0" \
--dust_amount "0" \
--data $DATA

0 comments on commit a568318

Please sign in to comment.