Skip to content

Commit dbfdcc5

Browse files
Merge #6618: refactor: various trivial fixes and dead code removals
e8de32c refactor: removed unused variable m_coinjoin_client (Konstantin Akimov) 542b2c8 chore: add src/dashbls/config.status.old to git-ignore list (Konstantin Akimov) 5033bde refactor: drop BIP16Height as have it always active on all chains (Konstantin Akimov) Pull request description: ## What was done? See each commit ## How Has This Been Tested? Run unit / functional tests ## Breaking Changes N/A ## Checklist: - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone ACKs for top commit: UdjinM6: utACK e8de32c kwvg: utACK e8de32c PastaPastaPasta: utACK e8de32c Tree-SHA512: f1c7383559e2746d5fdbfa2ae33be86a7168648781d8a1682d547b65c1df1d25f908d3e25f0cfb4c49203277abd1ea8e358547c704e3af5c0d3363a1f4a290aa
2 parents 2a3b8b8 + e8de32c commit dbfdcc5

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ build-aux/test-driver
3939
config.cache
4040
config.log
4141
config.status
42+
config.status.old
4243
configure
4344
libtool
4445
src/config/bitcoin-config.h

src/chainparams.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ class CMainParams : public CChainParams {
160160
CMainParams() {
161161
strNetworkID = CBaseChainParams::MAIN;
162162
consensus.nSubsidyHalvingInterval = 210240; // Note: actual number of blocks per calendar year with DGW v3 is ~200700 (for example 449750 - 249050)
163-
consensus.BIP16Height = 0;
164163
consensus.nMasternodePaymentsStartBlock = 100000; // not true, but it's ok as long as it's less then nMasternodePaymentsIncreaseBlock
165164
consensus.nMasternodePaymentsIncreaseBlock = 158000; // actual historical value
166165
consensus.nMasternodePaymentsIncreasePeriod = 576*30; // 17280 - actual historical value
@@ -358,7 +357,6 @@ class CTestNetParams : public CChainParams {
358357
CTestNetParams() {
359358
strNetworkID = CBaseChainParams::TESTNET;
360359
consensus.nSubsidyHalvingInterval = 210240;
361-
consensus.BIP16Height = 0;
362360
consensus.nMasternodePaymentsStartBlock = 4010; // not true, but it's ok as long as it's less then nMasternodePaymentsIncreaseBlock
363361
consensus.nMasternodePaymentsIncreaseBlock = 4030;
364362
consensus.nMasternodePaymentsIncreasePeriod = 10;
@@ -532,7 +530,6 @@ class CDevNetParams : public CChainParams {
532530
explicit CDevNetParams(const ArgsManager& args) {
533531
strNetworkID = CBaseChainParams::DEVNET;
534532
consensus.nSubsidyHalvingInterval = 210240;
535-
consensus.BIP16Height = 0;
536533
consensus.nMasternodePaymentsStartBlock = 4010; // not true, but it's ok as long as it's less then nMasternodePaymentsIncreaseBlock
537534
consensus.nMasternodePaymentsIncreaseBlock = 4030;
538535
consensus.nMasternodePaymentsIncreasePeriod = 10;
@@ -766,7 +763,6 @@ class CRegTestParams : public CChainParams {
766763
explicit CRegTestParams(const ArgsManager& args) {
767764
strNetworkID = CBaseChainParams::REGTEST;
768765
consensus.nSubsidyHalvingInterval = 150;
769-
consensus.BIP16Height = 0; // always enforce P2SH BIP16 on regtest
770766
consensus.nMasternodePaymentsStartBlock = 240;
771767
consensus.nMasternodePaymentsIncreaseBlock = 350;
772768
consensus.nMasternodePaymentsIncreasePeriod = 10;

src/consensus/params.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ struct Params {
9797
uint256 hashDevnetGenesisBlock;
9898
int nSubsidyHalvingInterval;
9999
/** Block height at which BIP16 becomes active */
100-
int BIP16Height;
101100
int nMasternodePaymentsStartBlock;
102101
int nMasternodePaymentsIncreaseBlock;
103102
int nMasternodePaymentsIncreasePeriod; // in blocks

src/validation.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,9 +2080,8 @@ static unsigned int GetBlockScriptFlags(const CBlockIndex* pindex, const Consens
20802080
unsigned int flags = SCRIPT_VERIFY_NONE;
20812081

20822082
// Start enforcing P2SH (BIP16)
2083-
if (pindex->nHeight >= consensusparams.BIP16Height) {
2084-
flags |= SCRIPT_VERIFY_P2SH;
2085-
}
2083+
// It always active on Dash chains
2084+
flags |= SCRIPT_VERIFY_P2SH;
20862085

20872086
// Enforce the DERSIG (BIP66) rule
20882087
if (DeploymentActiveAt(*pindex, consensusparams, Consensus::DEPLOYMENT_DERSIG)) {

src/wallet/interfaces.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,6 @@ class WalletImpl : public Wallet
549549

550550
WalletContext& m_context;
551551
std::shared_ptr<CWallet> m_wallet;
552-
std::unique_ptr<interfaces::CoinJoin::Client> m_coinjoin_client;
553552
};
554553

555554
class WalletLoaderImpl : public WalletLoader

0 commit comments

Comments
 (0)