mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user