|
|
|
@ -55,7 +55,7 @@ static CBlock BuildBlockTestCase() {
@@ -55,7 +55,7 @@ static CBlock BuildBlockTestCase() {
|
|
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(SimpleRoundTripTest) |
|
|
|
|
{ |
|
|
|
|
CTxMemPool pool(CFeeRate(0)); |
|
|
|
|
CTxMemPool pool; |
|
|
|
|
TestMemPoolEntryHelper entry; |
|
|
|
|
CBlock block(BuildBlockTestCase()); |
|
|
|
|
|
|
|
|
@ -154,7 +154,7 @@ public:
@@ -154,7 +154,7 @@ public:
|
|
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(NonCoinbasePreforwardRTTest) |
|
|
|
|
{ |
|
|
|
|
CTxMemPool pool(CFeeRate(0)); |
|
|
|
|
CTxMemPool pool; |
|
|
|
|
TestMemPoolEntryHelper entry; |
|
|
|
|
CBlock block(BuildBlockTestCase()); |
|
|
|
|
|
|
|
|
@ -220,7 +220,7 @@ BOOST_AUTO_TEST_CASE(NonCoinbasePreforwardRTTest)
@@ -220,7 +220,7 @@ BOOST_AUTO_TEST_CASE(NonCoinbasePreforwardRTTest)
|
|
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(SufficientPreforwardRTTest) |
|
|
|
|
{ |
|
|
|
|
CTxMemPool pool(CFeeRate(0)); |
|
|
|
|
CTxMemPool pool; |
|
|
|
|
TestMemPoolEntryHelper entry; |
|
|
|
|
CBlock block(BuildBlockTestCase()); |
|
|
|
|
|
|
|
|
@ -270,7 +270,7 @@ BOOST_AUTO_TEST_CASE(SufficientPreforwardRTTest)
@@ -270,7 +270,7 @@ BOOST_AUTO_TEST_CASE(SufficientPreforwardRTTest)
|
|
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(EmptyBlockRoundTripTest) |
|
|
|
|
{ |
|
|
|
|
CTxMemPool pool(CFeeRate(0)); |
|
|
|
|
CTxMemPool pool; |
|
|
|
|
CMutableTransaction coinbase; |
|
|
|
|
coinbase.vin.resize(1); |
|
|
|
|
coinbase.vin[0].scriptSig.resize(10); |
|
|
|
|