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. The two line-number columns refer to before and after.
src/test/miner_tests.cpp
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
#include <util/check.h>
|
|
21
21
|
#include <util/feefrac.h>
|
|
22
22
|
#include <util/strencodings.h>
|
|
23
|
+
#include <util/string.h>
|
|
23
24
|
#include <util/time.h>
|
|
24
25
|
#include <util/translation.h>
|
|
25
26
|
#include <validation.h>
|
|
@@ -29,7 +30,6 @@
|
|
|
29
30
|
#include <test/util/setup_common.h>
|
|
30
31
|
|
|
31
32
|
#include <memory>
|
|
32
|
-
#include <string>
|
|
33
33
|
#include <vector>
|
|
34
34
|
|
|
35
35
|
#include <boost/test/unit_test.hpp>
|
|
@@ -805,7 +805,7 @@ void MinerTestingSetup::TestPriorityPhaseStaleAncestors(const CScript& scriptPub
|
|
|
805
805
|
|
|
806
806
|
// The assembler reserves 1000 bytes before adding transactions;
|
|
807
807
|
// end the priority phase immediately after including the parents.
|
|
808
|
-
gArgs.ForceSetArg("-blockprioritysize", std::to_string(1000 + priority_tx_size));
|
|
808
|
+
gArgs.ForceSetArg("-blockprioritysize", util::ToString(1000 + priority_tx_size));
|
|
809
809
|
const auto priority_template = BlockAssembler{m_node.chainman->ActiveChainstate(), &tx_mempool, options}.CreateNewBlock();
|
|
810
810
|
BOOST_REQUIRE(priority_template);
|
|
811
811
|
BOOST_REQUIRE_EQUAL(priority_template->block.vtx.size(), parent_count + 2);
|