Skip to content

Commit 725ea92

Browse files
authored
Merge pull request #76 from JaredTate/feature/8.22.0
Fix "Unknown new rules activated" Error & Uninitialized Variable nMinerConfirmationWindow, Revert Changes
2 parents 9044278 + 45441e8 commit 725ea92

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

src/chainparams.cpp

+1-9
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class CMainParams : public CChainParams {
9090
consensus.nMinerConfirmationWindow = 40320; // nPowTargetTimespan / nPowTargetSpacing 40320 blocks main net - 1 week
9191

9292
// Need to make sure we ignore activation warnings below Odo activation height, also ignores Segwit activation
93-
consensus.MinBIP9WarningHeight = consensus.OdoHeight + consensus.nMinerConfirmationWindow;
93+
consensus.MinBIP9WarningHeight = 9152640; // Odo height + miner confirmation window, nMinerConfirmationWindow was un initialized before, so hard coded now
9494

9595
// DigiByte Hard Fork Block Heights
9696
consensus.multiAlgoDiffChangeTarget = 145000; // Block 145,000 MultiAlgo Hard Fork
@@ -104,14 +104,6 @@ class CMainParams : public CChainParams {
104104
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008
105105
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].min_activation_height = 0; // No activation delay
106106

107-
// Deployment of Odo proof-of-work hardfork
108-
consensus.vDeployments[Consensus::DEPLOYMENT_ODO].bit = 6;
109-
consensus.vDeployments[Consensus::DEPLOYMENT_ODO].nStartTime = 1556668800; // 1 May, 2019
110-
consensus.vDeployments[Consensus::DEPLOYMENT_ODO].nTimeout = 1588291200; // 1 May, 2020
111-
112-
// Block 9112320 hash 906b712a7b1f54f10b0faf86111e832ddb7b8ce86ac71a4edd2c61e5ccfe9428
113-
consensus.vDeployments[Consensus::DEPLOYMENT_ODO].min_activation_height = 9112320;
114-
115107
// Deployment of Taproot (BIPs 340-342)
116108
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].bit = 2;
117109
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nStartTime = 1630454400; // Sept 1st, 2021

src/dummywallet.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ void DummyWalletInit::AddWalletOptions(ArgsManager& argsman) const
2828
"-addresstype",
2929
"-avoidpartialspends",
3030
"-changetype",
31+
"-disabledandelion",
3132
"-disablewallet",
3233
"-discardfee=<amt>",
3334
"-fallbackfee=<amt>",

src/versionbits.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static const int32_t VERSIONBITS_TOP_BITS = 0x20000000UL;
1818
/** What bitmask determines whether versionbits is in use */
1919
static const int32_t VERSIONBITS_TOP_MASK = 0xF0000000UL;
2020
/** Total bits available for versionbits */
21-
static const int32_t VERSIONBITS_NUM_BITS = 16;
21+
static const int32_t VERSIONBITS_NUM_BITS = 29;
2222

2323
/** BIP 9 defines a finite-state-machine to deploy a softfork in multiple stages.
2424
* State transitions happen during retarget period if conditions are met

src/wallet/init.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void WalletInit::AddWalletOptions(ArgsManager& argsman) const
4646
argsman.AddArg("-addresstype", strprintf("What type of addresses to use (\"legacy\", \"p2sh-segwit\", or \"bech32\", default: \"%s\")", FormatOutputType(DEFAULT_ADDRESS_TYPE)), ArgsManager::ALLOW_ANY, OptionsCategory::WALLET);
4747
argsman.AddArg("-avoidpartialspends", strprintf("Group outputs by address, selecting many (possibly all) or none, instead of selecting on a per-output basis. Privacy is improved as addresses are mostly swept with fewer transactions and outputs are aggregated in clean change addresses. It may result in higher fees due to less optimal coin selection caused by this added limitation and possibly a larger-than-necessary number of inputs being used. Always enabled for wallets with \"avoid_reuse\" enabled, otherwise default: %u.", DEFAULT_AVOIDPARTIALSPENDS), ArgsManager::ALLOW_ANY, OptionsCategory::WALLET);
4848
argsman.AddArg("-changetype", "What type of change to use (\"legacy\", \"p2sh-segwit\", or \"bech32\"). Default is same as -addresstype, except when -addresstype=p2sh-segwit a native segwit output is used when sending to a native segwit address)", ArgsManager::ALLOW_ANY, OptionsCategory::WALLET);
49-
argsman.AddArg("-disable-dandelion", "Disable dandelion support (anonymous transaction relay)", false, OptionsCategory::OPTIONS);
49+
argsman.AddArg("-disabledandelion", "Disable dandelion support (anonymous transaction relay)", false, OptionsCategory::OPTIONS);
5050
argsman.AddArg("-disablewallet", "Do not load the wallet and disable wallet RPC calls", ArgsManager::ALLOW_ANY, OptionsCategory::WALLET);
5151
argsman.AddArg("-discardfee=<amt>", strprintf("The fee rate (in %s/kvB) that indicates your tolerance for discarding change by adding it to the fee (default: %s). "
5252
"Note: An output is discarded if it is dust at this rate, but we will always discard up to the dust relay fee and a discard fee above that is limited by the fee estimate for the longest target",

0 commit comments

Comments
 (0)