diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-09-12 13:01:07 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-09-12 22:49:49 +0200 |
commit | 9be330b654cfbd792620295f3867f592059d6a7a (patch) | |
tree | d1596eed457af928c181b2332c292d1c7a982b85 /src/kernel/chainparams.cpp | |
parent | 37e2b011136ca1cf00dfb9e575d12f0d035a6a2c (diff) | |
download | bitcoin-9be330b654cfbd792620295f3867f592059d6a7a.tar.xz |
[refactor] Define MessageStartChars as std::array
Diffstat (limited to 'src/kernel/chainparams.cpp')
-rw-r--r-- | src/kernel/chainparams.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/chainparams.cpp b/src/kernel/chainparams.cpp index 733a3339b3..c41559ad98 100644 --- a/src/kernel/chainparams.cpp +++ b/src/kernel/chainparams.cpp @@ -359,7 +359,7 @@ public: HashWriter h{}; h << consensus.signet_challenge; uint256 hash = h.GetHash(); - memcpy(pchMessageStart, hash.begin(), 4); + std::copy_n(hash.begin(), 4, pchMessageStart.begin()); nDefaultPort = 38333; nPruneAfterHeight = 1000; |