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/test_bitcoin.h | |
parent | b1fdfc1a8c072f798305f21d5e69207c9e1bed89 (diff) |
tests: Avoid copies of CTransaction
Diffstat (limited to 'src/test/test_bitcoin.h')
-rw-r--r-- | src/test/test_bitcoin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_bitcoin.h b/src/test/test_bitcoin.h index 8136da3aa9..1f91eb622c 100644 --- a/src/test/test_bitcoin.h +++ b/src/test/test_bitcoin.h @@ -87,7 +87,7 @@ struct TestChain100Setup : public TestingSetup { ~TestChain100Setup(); - std::vector<CTransaction> coinbaseTxns; // For convenience, coinbase transactions + std::vector<CTransactionRef> m_coinbase_txns; // For convenience, coinbase transactions CKey coinbaseKey; // private/public key needed to spend coinbase transactions }; @@ -107,8 +107,8 @@ struct TestMemPoolEntryHelper nFee(0), nTime(0), nHeight(1), spendsCoinbase(false), sigOpCost(4) { } - CTxMemPoolEntry FromTx(const CMutableTransaction &tx); - CTxMemPoolEntry FromTx(const CTransaction &tx); + CTxMemPoolEntry FromTx(const CMutableTransaction& tx); + CTxMemPoolEntry FromTx(const CTransactionRef& tx); // Change the default value TestMemPoolEntryHelper &Fee(CAmount _fee) { nFee = _fee; return *this; } |