Refactor test code to better test JSDescription::Randomized()

This commit is contained in:
Jack Grigg
2016-10-18 12:44:56 -05:00
parent 2eeb6bebde
commit 3774c944f8
8 changed files with 110 additions and 43 deletions

View File

@@ -7,6 +7,7 @@
#define BITCOIN_PRIMITIVES_TRANSACTION_H
#include "amount.h"
#include "random.h"
#include "script/script.h"
#include "serialize.h"
#include "uint256.h"
@@ -88,7 +89,8 @@ public:
boost::array<size_t, ZC_NUM_JS_OUTPUTS>& outputMap,
CAmount vpub_old,
CAmount vpub_new,
bool computeProof = true // Set to false in some tests
bool computeProof = true, // Set to false in some tests
std::function<int(int)> gen = GetRandInt
);
// Verifies that the JoinSplit proof is correct.