File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace benchmark {
8
8
namespace data {
9
9
10
10
#include < bench/data/block413567.raw.h>
11
- const std::vector<uint8_t > block413567{block413567_raw, block413567_raw + sizeof (block413567_raw) / sizeof (block413567_raw[ 0 ] )};
11
+ const std::vector<uint8_t > block413567{std::begin (block413567_raw), std::end (block413567_raw)};
12
12
13
13
} // namespace data
14
14
} // namespace benchmark
Original file line number Diff line number Diff line change 10
10
#include < hash.h> // for signet block challenge hash
11
11
#include < tinyformat.h>
12
12
#include < util/system.h>
13
- #include < util/strencodings.h>
14
13
#include < versionbitsinfo.h>
15
14
16
15
#include < assert.h>
@@ -136,7 +135,7 @@ class CMainParams : public CChainParams {
136
135
137
136
bech32_hrp = " bc" ;
138
137
139
- vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN (pnSeed6_main));
138
+ vFixedSeeds = std::vector<SeedSpec6>(std::begin ( pnSeed6_main), std::end (pnSeed6_main));
140
139
141
140
fDefaultConsistencyChecks = false ;
142
141
fRequireStandard = true ;
@@ -237,7 +236,7 @@ class CTestNetParams : public CChainParams {
237
236
238
237
bech32_hrp = " tb" ;
239
238
240
- vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN (pnSeed6_test));
239
+ vFixedSeeds = std::vector<SeedSpec6>(std::begin ( pnSeed6_test), std::end (pnSeed6_test));
241
240
242
241
fDefaultConsistencyChecks = false ;
243
242
fRequireStandard = false ;
Original file line number Diff line number Diff line change 5
5
6
6
#include < protocol.h>
7
7
8
- #include < util/strencodings.h>
9
8
#include < util/system.h>
10
9
11
10
static std::atomic<bool > g_initial_block_download_completed (false );
@@ -86,7 +85,7 @@ const static std::string allNetMessageTypes[] = {
86
85
NetMsgType::CFCHECKPT,
87
86
NetMsgType::WTXIDRELAY,
88
87
};
89
- const static std::vector<std::string> allNetMessageTypesVec (allNetMessageTypes, allNetMessageTypes+ARRAYLEN (allNetMessageTypes));
88
+ const static std::vector<std::string> allNetMessageTypesVec (std::begin( allNetMessageTypes), std::end (allNetMessageTypes));
90
89
91
90
CMessageHeader::CMessageHeader ()
92
91
{
You can’t perform that action at this time.
0 commit comments