Adjust tests and benchmarks

This commit is contained in:
Sean Bowe
2018-05-11 06:42:35 -06:00
parent 31989317c9
commit 34f6ea95dc
3 changed files with 6 additions and 6 deletions

View File

@@ -77,11 +77,11 @@ void test_full_api(ZCJoinSplit* js)
); );
} }
auto sprout_proof = boost::relaxed_get<ZCProof, ZCProof, GrothProof>(&proof); auto sprout_proof = boost::get<ZCProof>(proof);
// Verify the transaction: // Verify the transaction:
ASSERT_TRUE(js->verify( ASSERT_TRUE(js->verify(
*sprout_proof, sprout_proof,
verifier, verifier,
pubKeyHash, pubKeyHash,
randomSeed, randomSeed,
@@ -155,11 +155,11 @@ void test_full_api(ZCJoinSplit* js)
); );
} }
sprout_proof = boost::relaxed_get<ZCProof, ZCProof, GrothProof>(&proof); sprout_proof = boost::get<ZCProof>(proof);
// Verify the transaction: // Verify the transaction:
ASSERT_TRUE(js->verify( ASSERT_TRUE(js->verify(
*sprout_proof, sprout_proof,
verifier, verifier,
pubKeyHash, pubKeyHash,
randomSeed, randomSeed,

View File

@@ -2640,7 +2640,7 @@ UniValue zc_sample_joinsplit(const UniValue& params, bool fHelp)
uint256 pubKeyHash; uint256 pubKeyHash;
uint256 anchor = ZCIncrementalMerkleTree().root(); uint256 anchor = ZCIncrementalMerkleTree().root();
JSDescription samplejoinsplit(false, JSDescription samplejoinsplit(true,
*pzcashParams, *pzcashParams,
pubKeyHash, pubKeyHash,
anchor, anchor,

View File

@@ -116,7 +116,7 @@ double benchmark_create_joinsplit()
struct timeval tv_start; struct timeval tv_start;
timer_start(tv_start); timer_start(tv_start);
JSDescription jsdesc(false, // TODO: ? JSDescription jsdesc(true,
*pzcashParams, *pzcashParams,
pubKeyHash, pubKeyHash,
anchor, anchor,