aboutsummaryrefslogtreecommitdiff
path: root/src/test/DoS_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2012-04-17 20:37:47 +0200
committerPieter Wuille <[email protected]>2012-04-17 20:37:47 +0200
commit0a83c0fcef87e34e3e0f05580fa2c1ad9208c367 (patch)
treec6c88f0b896916c5662d408c85819aa4bbfcca00 /src/test/DoS_tests.cpp
parentMerge remote-tracking branch 'jgarzik/mempool' (diff)
downloaddiscoin-0a83c0fcef87e34e3e0f05580fa2c1ad9208c367.tar.xz
discoin-0a83c0fcef87e34e3e0f05580fa2c1ad9208c367.zip
Fix tests after recent refactors
Diffstat (limited to 'src/test/DoS_tests.cpp')
-rw-r--r--src/test/DoS_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/DoS_tests.cpp b/src/test/DoS_tests.cpp
index 0b8941404..c0b00102a 100644
--- a/src/test/DoS_tests.cpp
+++ b/src/test/DoS_tests.cpp
@@ -168,7 +168,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
tx.vout[0].nValue = 1*CENT;
tx.vout[0].scriptPubKey.SetBitcoinAddress(key.GetPubKey());
- CDataStream ds;
+ CDataStream ds(SER_DISK, CLIENT_VERSION);
ds << tx;
AddOrphanTx(ds);
}
@@ -187,7 +187,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
tx.vout[0].scriptPubKey.SetBitcoinAddress(key.GetPubKey());
SignSignature(keystore, txPrev, tx, 0);
- CDataStream ds;
+ CDataStream ds(SER_DISK, CLIENT_VERSION);
ds << tx;
AddOrphanTx(ds);
}