Add benchmark for attempting decryption of notes
This commit is contained in:
@@ -56,7 +56,7 @@ function zcashd_valgrind_stop {
|
||||
case "$1" in
|
||||
*)
|
||||
case "$2" in
|
||||
verifyjoinsplit)
|
||||
verifyjoinsplit|trydecryptnotes)
|
||||
zcashd_start
|
||||
RAWJOINSPLIT=$(zcash_rpc zcsamplejoinsplit)
|
||||
zcashd_stop
|
||||
@@ -88,6 +88,9 @@ case "$1" in
|
||||
validatelargetx)
|
||||
zcash_rpc zcbenchmark validatelargetx 5
|
||||
;;
|
||||
trydecryptnotes)
|
||||
zcash_rpc zcbenchmark trydecryptnotes 1000 "\"$RAWJOINSPLIT\""
|
||||
;;
|
||||
*)
|
||||
zcashd_stop
|
||||
echo "Bad arguments."
|
||||
@@ -116,6 +119,9 @@ case "$1" in
|
||||
verifyequihash)
|
||||
zcash_rpc zcbenchmark verifyequihash 1
|
||||
;;
|
||||
trydecryptnotes)
|
||||
zcash_rpc zcbenchmark trydecryptnotes 1 "\"$RAWJOINSPLIT\""
|
||||
;;
|
||||
*)
|
||||
zcashd_massif_stop
|
||||
echo "Bad arguments."
|
||||
@@ -145,6 +151,9 @@ case "$1" in
|
||||
verifyequihash)
|
||||
zcash_rpc zcbenchmark verifyequihash 1
|
||||
;;
|
||||
trydecryptnotes)
|
||||
zcash_rpc zcbenchmark trydecryptnotes 1 "\"$RAWJOINSPLIT\""
|
||||
;;
|
||||
*)
|
||||
zcashd_valgrind_stop
|
||||
echo "Bad arguments."
|
||||
|
||||
Reference in New Issue
Block a user