[Tests] Remove unused variable and inline another variable in evo_deterministicmns_tests.cpp (#2978)

* remove unused variable

Signed-off-by: Pasta <Pasta@dash.org>

* inline a variable which is used only once

Signed-off-by: Pasta <Pasta@dash.org>
This commit is contained in:
PastaPastaPasta 2019-06-18 06:32:43 -05:00 committed by UdjinM6
parent 2756cb7954
commit f14179ca03

View File

@ -20,9 +20,6 @@
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
static const CBitcoinAddress payoutAddress ("yRq1Ky1AfFmf597rnotj7QRxsDUKePVWNF");
static const std::string payoutKey ("cV3qrPWzDcnhzRMV4MqtTH4LhNPqPo26ZntGvfJhc8nqCi8Ae5xR");
typedef std::map<COutPoint, std::pair<int, CAmount>> SimpleUTXOMap; typedef std::map<COutPoint, std::pair<int, CAmount>> SimpleUTXOMap;
static SimpleUTXOMap BuildSimpleUtxoMap(const std::vector<CTransaction>& txs) static SimpleUTXOMap BuildSimpleUtxoMap(const std::vector<CTransaction>& txs)
@ -218,6 +215,7 @@ BOOST_FIXTURE_TEST_CASE(dip3_activation, TestChainDIP3BeforeActivationSetup)
auto utxos = BuildSimpleUtxoMap(coinbaseTxns); auto utxos = BuildSimpleUtxoMap(coinbaseTxns);
CKey ownerKey; CKey ownerKey;
CBLSSecretKey operatorKey; CBLSSecretKey operatorKey;
CBitcoinAddress payoutAddress("yRq1Ky1AfFmf597rnotj7QRxsDUKePVWNF");
auto tx = CreateProRegTx(utxos, 1, GetScriptForDestination(payoutAddress.Get()), coinbaseKey, ownerKey, operatorKey); auto tx = CreateProRegTx(utxos, 1, GetScriptForDestination(payoutAddress.Get()), coinbaseKey, ownerKey, operatorKey);
std::vector<CMutableTransaction> txns = {tx}; std::vector<CMutableTransaction> txns = {tx};