diff options
author | Carl Dong <contact@carldong.me> | 2022-03-09 16:11:39 -0500 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-03-15 16:42:42 +0100 |
commit | 84b85786f0f5cb23cc257a4464ae345e1d372313 (patch) | |
tree | ef292571361801e2e0953d0c1a82e2e54b4717d2 /src/deploymentinfo.h | |
parent | 76cd4e7c96242398172989609f1b9a8843c404b4 (diff) |
Decouple RegTestChainParams from ArgsManager
RegTest chain params can now be initialized by configuring a
RegTestOptions struct, or with ArgsManager. This offers an interface for
creating RegTestChainParams without a gArgs object.
Diffstat (limited to 'src/deploymentinfo.h')
-rw-r--r-- | src/deploymentinfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/deploymentinfo.h b/src/deploymentinfo.h index 8b909dedb4..72ba297ea0 100644 --- a/src/deploymentinfo.h +++ b/src/deploymentinfo.h @@ -7,6 +7,7 @@ #include <consensus/params.h> +#include <optional> #include <string> struct VBDeploymentInfo { @@ -26,4 +27,6 @@ inline std::string DeploymentName(Consensus::DeploymentPos pos) return VersionBitsDeploymentInfo[pos].name; } +std::optional<Consensus::BuriedDeployment> GetBuriedDeployment(const std::string_view deployment_name); + #endif // BITCOIN_DEPLOYMENTINFO_H |