Skip to content

Commit

Permalink
check that CreateNewBlock removes just 1 invalid transaction per block
Browse files Browse the repository at this point in the history
  • Loading branch information
eu321 committed Feb 18, 2020
1 parent bef1a47 commit 2e9eb1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vbk/test/unit/updated_mempool_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ BOOST_FIXTURE_TEST_CASE(check_CreateNewBlock_with_blockPopValidation_fail, Testi
// succeeds or we make a suspiciously large number of attempts
bool success = false;
for(int i = 0; i < popTxCount; i++) {
BOOST_TEST(mempool.size() + i == popTxCount);
try {
std::unique_ptr<CBlockTemplate> pblockTemplate = blkAssembler.CreateNewBlock(scriptPubKey);

Expand Down

0 comments on commit 2e9eb1c

Please sign in to comment.