aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.cpp
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-01-31 17:28:23 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-01-31 17:35:01 +0100
commit365539c84691d470b44d35df374d8c049f8c1192 (patch)
tree5f2644692ed3076d35347bc79cef5790681165e6 /src/chainparams.cpp
parent63d4ee1968144cc3d115f92baef95785abf813ac (diff)
downloadbitcoin-365539c84691d470b44d35df374d8c049f8c1192.tar.xz
refactor: init vectors via std::{begin,end} to avoid pointer arithmetic
Diffstat (limited to 'src/chainparams.cpp')
-rw-r--r--src/chainparams.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp
index 88cf5ef0a8..a991922d58 100644
--- a/src/chainparams.cpp
+++ b/src/chainparams.cpp
@@ -10,7 +10,6 @@
#include <hash.h> // for signet block challenge hash
#include <tinyformat.h>
#include <util/system.h>
-#include <util/strencodings.h>
#include <versionbitsinfo.h>
#include <assert.h>
@@ -136,7 +135,7 @@ public:
bech32_hrp = "bc";
- vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));
+ vFixedSeeds = std::vector<SeedSpec6>(std::begin(pnSeed6_main), std::end(pnSeed6_main));
fDefaultConsistencyChecks = false;
fRequireStandard = true;
@@ -237,7 +236,7 @@ public:
bech32_hrp = "tb";
- vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));
+ vFixedSeeds = std::vector<SeedSpec6>(std::begin(pnSeed6_test), std::end(pnSeed6_test));
fDefaultConsistencyChecks = false;
fRequireStandard = false;