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