versionbits: Use std::array instead of C-style arrays

This commit is contained in:
Anthony Towns
2023-12-07 09:20:03 +10:00
parent fa0c473d4c
commit 9bc41f1b48
4 changed files with 13 additions and 10 deletions

View File

@@ -8,6 +8,7 @@
#include <uint256.h>
#include <array>
#include <chrono>
#include <limits>
#include <map>
@@ -104,7 +105,7 @@ struct Params {
*/
uint32_t nRuleChangeActivationThreshold;
uint32_t nMinerConfirmationWindow;
BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS];
std::array<BIP9Deployment,MAX_VERSION_BITS_DEPLOYMENTS> vDeployments;
/** Proof of work parameters */
uint256 powLimit;
bool fPowAllowMinDifficultyBlocks;