Move extern params to beginning of test_checktransaction.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user