Generate JS for trydecryptnotes, make number of addresses a variable

This commit is contained in:
Jack Grigg
2016-12-09 16:55:01 +13:00
parent a513ea90d4
commit 88b7f3c28b
4 changed files with 12 additions and 15 deletions

View File

@@ -56,7 +56,7 @@ function zcashd_valgrind_stop {
case "$1" in
*)
case "$2" in
verifyjoinsplit|trydecryptnotes)
verifyjoinsplit)
zcashd_start
RAWJOINSPLIT=$(zcash_rpc zcsamplejoinsplit)
zcashd_stop
@@ -89,7 +89,7 @@ case "$1" in
zcash_rpc zcbenchmark validatelargetx 5
;;
trydecryptnotes)
zcash_rpc zcbenchmark trydecryptnotes 1000 "\"$RAWJOINSPLIT\""
zcash_rpc zcbenchmark trydecryptnotes 1000 "${@:3}"
;;
incnotewitnesses)
zcash_rpc zcbenchmark incnotewitnesses 100 "${@:3}"
@@ -123,7 +123,7 @@ case "$1" in
zcash_rpc zcbenchmark verifyequihash 1
;;
trydecryptnotes)
zcash_rpc zcbenchmark trydecryptnotes 1 "\"$RAWJOINSPLIT\""
zcash_rpc zcbenchmark trydecryptnotes 1 "${@:3}"
;;
incnotewitnesses)
zcash_rpc zcbenchmark incnotewitnesses 1 "${@:3}"
@@ -158,7 +158,7 @@ case "$1" in
zcash_rpc zcbenchmark verifyequihash 1
;;
trydecryptnotes)
zcash_rpc zcbenchmark trydecryptnotes 1 "\"$RAWJOINSPLIT\""
zcash_rpc zcbenchmark trydecryptnotes 1 "${@:3}"
;;
incnotewitnesses)
zcash_rpc zcbenchmark incnotewitnesses 1 "${@:3}"