Skip to content

Commit ea68b3a

Browse files
committed
[move-only] Rename versionbitsinfo to deploymentinfo
1 parent c64b2c6 commit ea68b3a

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ BITCOIN_CORE_H = \
145145
core_memusage.h \
146146
cuckoocache.h \
147147
dbwrapper.h \
148+
deploymentinfo.h \
148149
deploymentstatus.h \
149150
external_signer.h \
150151
flatfile.h \
@@ -273,7 +274,6 @@ BITCOIN_CORE_H = \
273274
validation.h \
274275
validationinterface.h \
275276
versionbits.h \
276-
versionbitsinfo.h \
277277
wallet/bdb.h \
278278
wallet/coincontrol.h \
279279
wallet/coinselection.h \
@@ -542,6 +542,7 @@ libbitcoin_common_a_SOURCES = \
542542
compressor.cpp \
543543
core_read.cpp \
544544
core_write.cpp \
545+
deploymentinfo.cpp \
545546
external_signer.cpp \
546547
init/common.cpp \
547548
key.cpp \
@@ -563,7 +564,6 @@ libbitcoin_common_a_SOURCES = \
563564
script/sign.cpp \
564565
script/signingprovider.cpp \
565566
script/standard.cpp \
566-
versionbitsinfo.cpp \
567567
warnings.cpp \
568568
$(BITCOIN_CORE_H)
569569

src/chainparams.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
#include <chainparamsseeds.h>
99
#include <consensus/merkle.h>
10+
#include <deploymentinfo.h>
1011
#include <hash.h> // for signet block challenge hash
1112
#include <util/system.h>
12-
#include <versionbitsinfo.h>
1313

1414
#include <assert.h>
1515

src/consensus/params.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ enum DeploymentPos : uint16_t
2626
{
2727
DEPLOYMENT_TESTDUMMY,
2828
DEPLOYMENT_TAPROOT, // Deployment of Schnorr/Taproot (BIPs 340-342)
29-
// NOTE: Also add new deployments to VersionBitsDeploymentInfo in versionbits.cpp
29+
// NOTE: Also add new deployments to VersionBitsDeploymentInfo in deploymentinfo.cpp
3030
MAX_VERSION_BITS_DEPLOYMENTS
3131
};
3232
constexpr bool ValidDeployment(DeploymentPos dep) { return DEPLOYMENT_TESTDUMMY <= dep && dep <= DEPLOYMENT_TAPROOT; }

src/versionbitsinfo.cpp renamed to src/deploymentinfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <versionbitsinfo.h>
5+
#include <deploymentinfo.h>
66

77
#include <consensus/params.h>
88

src/versionbitsinfo.h renamed to src/deploymentinfo.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#ifndef BITCOIN_VERSIONBITSINFO_H
6-
#define BITCOIN_VERSIONBITSINFO_H
5+
#ifndef BITCOIN_DEPLOYMENTINFO_H
6+
#define BITCOIN_DEPLOYMENTINFO_H
77

88
struct VBDeploymentInfo {
99
/** Deployment name */
@@ -14,4 +14,4 @@ struct VBDeploymentInfo {
1414

1515
extern const struct VBDeploymentInfo VersionBitsDeploymentInfo[];
1616

17-
#endif // BITCOIN_VERSIONBITSINFO_H
17+
#endif // BITCOIN_DEPLOYMENTINFO_H

src/rpc/mining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <consensus/params.h>
1111
#include <consensus/validation.h>
1212
#include <core_io.h>
13+
#include <deploymentinfo.h>
1314
#include <deploymentstatus.h>
1415
#include <key_io.h>
1516
#include <miner.h>
@@ -35,7 +36,6 @@
3536
#include <util/translation.h>
3637
#include <validation.h>
3738
#include <validationinterface.h>
38-
#include <versionbitsinfo.h>
3939
#include <warnings.h>
4040

4141
#include <memory>

0 commit comments

Comments
 (0)