Move `extern params` to beginning of `test_checktransaction`.
This commit is contained in:
parent
291895fac7
commit
3d75e8b3e7
|
@ -6,6 +6,8 @@
|
|||
#include "primitives/transaction.h"
|
||||
#include "consensus/validation.h"
|
||||
|
||||
extern ZCJoinSplit* params;
|
||||
|
||||
TEST(checktransaction_tests, check_vpub_not_both_nonzero) {
|
||||
CMutableTransaction tx;
|
||||
tx.nVersion = 2;
|
||||
|
@ -710,8 +712,6 @@ class UNSAFE_CTransaction : public CTransaction {
|
|||
UNSAFE_CTransaction(const CMutableTransaction &tx) : CTransaction(tx, true) {}
|
||||
};
|
||||
|
||||
extern ZCJoinSplit* params;
|
||||
|
||||
TEST(checktransaction_tests, SaplingSproutInputSumsTooLarge) {
|
||||
CMutableTransaction mtx = GetValidTransaction();
|
||||
mtx.vjoinsplit.resize(0);
|
||||
|
|
Loading…
Reference in New Issue