v30.3-roots.1 · Commit 34: [PATCH 34/68] test(mining): use locale-independent priority size formatting
src/test/miner_tests.cpp
Before: src/test/miner_tests.cpp · After: src/test/miner_tests.cpp
File metadata
index 383c87bc0fbd91e1baa798c7ba44c652469b2d44..5ae3485d5cc895b9d48e3092a4466b620af78b88 100644
Download original patch · Release notes
Diff rows 1–22 of 22. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/test/miner_tests.cpp
CHANGED
|
@@ -20,6 +20,7 @@
|
|
| 20 |
#include <util/check.h>
|
| 21 |
#include <util/feefrac.h>
|
| 22 |
#include <util/strencodings.h>
|
|
|
|
| 23 |
#include <util/time.h>
|
| 24 |
#include <util/translation.h>
|
| 25 |
#include <validation.h>
|
|
@@ -29,7 +30,6 @@
|
|
| 29 |
#include <test/util/setup_common.h>
|
| 30 |
|
| 31 |
#include <memory>
|
| 32 |
-
#include <string>
|
| 33 |
#include <vector>
|
| 34 |
|
| 35 |
#include <boost/test/unit_test.hpp>
|
|
@@ -805,7 +805,7 @@ void MinerTestingSetup::TestPriorityPhaseStaleAncestors(const CScript& scriptPub
|
|
| 805 |
|
| 806 |
// The assembler reserves 1000 bytes before adding transactions;
|
| 807 |
// end the priority phase immediately after including the parents.
|
| 808 |
-
gArgs.ForceSetArg("-blockprioritysize", std::to_string(1000 + priority_tx_size));
|
| 809 |
const auto priority_template = BlockAssembler{m_node.chainman->ActiveChainstate(), &tx_mempool, options}.CreateNewBlock();
|
| 810 |
BOOST_REQUIRE(priority_template);
|
| 811 |
BOOST_REQUIRE_EQUAL(priority_template->block.vtx.size(), parent_count + 2);
|
|
|
|
| 20 |
#include <util/check.h>
|
| 21 |
#include <util/feefrac.h>
|
| 22 |
#include <util/strencodings.h>
|
| 23 |
+
#include <util/string.h>
|
| 24 |
#include <util/time.h>
|
| 25 |
#include <util/translation.h>
|
| 26 |
#include <validation.h>
|
|
|
|
| 30 |
#include <test/util/setup_common.h>
|
| 31 |
|
| 32 |
#include <memory>
|
|
|
|
| 33 |
#include <vector>
|
| 34 |
|
| 35 |
#include <boost/test/unit_test.hpp>
|
|
|
|
| 805 |
|
| 806 |
// The assembler reserves 1000 bytes before adding transactions;
|
| 807 |
// end the priority phase immediately after including the parents.
|
| 808 |
+
gArgs.ForceSetArg("-blockprioritysize", util::ToString(1000 + priority_tx_size));
|
| 809 |
const auto priority_template = BlockAssembler{m_node.chainman->ActiveChainstate(), &tx_mempool, options}.CreateNewBlock();
|
| 810 |
BOOST_REQUIRE(priority_template);
|
| 811 |
BOOST_REQUIRE_EQUAL(priority_template->block.vtx.size(), parent_count + 2);
|