diff options
| author | Pieter Wuille <[email protected]> | 2017-04-25 11:29:25 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-06-01 11:56:06 -0700 |
| commit | cb2c7fdac2dc74368ed24ae4717ed72178956b92 (patch) | |
| tree | e00cdf124e4399033b2d9354e82e1f5496144903 /src/test/coins_tests.cpp | |
| parent | Introduce Coin, a single unspent output (diff) | |
| download | discoin-cb2c7fdac2dc74368ed24ae4717ed72178956b92.tar.xz discoin-cb2c7fdac2dc74368ed24ae4717ed72178956b92.zip | |
Replace CTxInUndo with Coin
The earlier CTxInUndo class now holds the same information as the Coin
class. Instead of duplicating functionality, replace CTxInUndo with a
serialization adapter for Coin.
Diffstat (limited to 'src/test/coins_tests.cpp')
| -rw-r--r-- | src/test/coins_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index 3735f6c86..e86c71994 100644 --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -17,7 +17,7 @@ #include <boost/test/unit_test.hpp> -int ApplyTxInUndo(const CTxInUndo& undo, CCoinsViewCache& view, const COutPoint& out); +int ApplyTxInUndo(const Coin& undo, CCoinsViewCache& view, const COutPoint& out); void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, CTxUndo &txundo, int nHeight); namespace @@ -371,7 +371,7 @@ BOOST_AUTO_TEST_CASE(updatecoins_simulation_test) // restore inputs if (!tx.IsCoinBase()) { const COutPoint &out = tx.vin[0].prevout; - const CTxInUndo &undoin = undo.vprevout[0]; + const Coin &undoin = undo.vprevout[0]; ApplyTxInUndo(undoin, *(stack.back()), out); } // Store as a candidate for reconnection |