diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-04-11 13:51:28 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-04-11 14:59:53 -0400 |
commit | fae58eca934b5c7165b589c3bec1751d1b432b48 (patch) | |
tree | 5d0c8b10608dcced118dc59d7812f8498fcfc012 /src/test/txvalidationcache_tests.cpp | |
parent | b1fdfc1a8c072f798305f21d5e69207c9e1bed89 (diff) |
tests: Avoid copies of CTransaction
Diffstat (limited to 'src/test/txvalidationcache_tests.cpp')
-rw-r--r-- | src/test/txvalidationcache_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/txvalidationcache_tests.cpp b/src/test/txvalidationcache_tests.cpp index 87976a9a07..c08de7cd7c 100644 --- a/src/test/txvalidationcache_tests.cpp +++ b/src/test/txvalidationcache_tests.cpp @@ -48,7 +48,7 @@ BOOST_FIXTURE_TEST_CASE(tx_mempool_block_doublespend, TestChain100Setup) { spends[i].nVersion = 1; spends[i].vin.resize(1); - spends[i].vin[0].prevout.hash = coinbaseTxns[0].GetHash(); + spends[i].vin[0].prevout.hash = m_coinbase_txns[0]->GetHash(); spends[i].vin[0].prevout.n = 0; spends[i].vout.resize(1); spends[i].vout[0].nValue = 11*CENT; @@ -167,7 +167,7 @@ BOOST_FIXTURE_TEST_CASE(checkinputs_test, TestChain100Setup) spend_tx.nVersion = 1; spend_tx.vin.resize(1); - spend_tx.vin[0].prevout.hash = coinbaseTxns[0].GetHash(); + spend_tx.vin[0].prevout.hash = m_coinbase_txns[0]->GetHash(); spend_tx.vin[0].prevout.n = 0; spend_tx.vout.resize(4); spend_tx.vout[0].nValue = 11*CENT; |