From 3d75e8b3e7131ae10afc45463b488d52eee2685b Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Tue, 31 Jul 2018 08:33:33 -0600 Subject: [PATCH] Move `extern params` to beginning of `test_checktransaction`. --- src/gtest/test_checktransaction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtest/test_checktransaction.cpp b/src/gtest/test_checktransaction.cpp index f2552c0ed..8e82f3850 100644 --- a/src/gtest/test_checktransaction.cpp +++ b/src/gtest/test_checktransaction.cpp @@ -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);