Move `extern params` to beginning of `test_checktransaction`.

This commit is contained in:
Sean Bowe 2018-07-31 08:33:33 -06:00
parent 291895fac7
commit 3d75e8b3e7
1 changed files with 2 additions and 2 deletions

View File

@ -6,6 +6,8 @@
#include "primitives/transaction.h" #include "primitives/transaction.h"
#include "consensus/validation.h" #include "consensus/validation.h"
extern ZCJoinSplit* params;
TEST(checktransaction_tests, check_vpub_not_both_nonzero) { TEST(checktransaction_tests, check_vpub_not_both_nonzero) {
CMutableTransaction tx; CMutableTransaction tx;
tx.nVersion = 2; tx.nVersion = 2;
@ -710,8 +712,6 @@ class UNSAFE_CTransaction : public CTransaction {
UNSAFE_CTransaction(const CMutableTransaction &tx) : CTransaction(tx, true) {} UNSAFE_CTransaction(const CMutableTransaction &tx) : CTransaction(tx, true) {}
}; };
extern ZCJoinSplit* params;
TEST(checktransaction_tests, SaplingSproutInputSumsTooLarge) { TEST(checktransaction_tests, SaplingSproutInputSumsTooLarge) {
CMutableTransaction mtx = GetValidTransaction(); CMutableTransaction mtx = GetValidTransaction();
mtx.vjoinsplit.resize(0); mtx.vjoinsplit.resize(0);