Default experimental mode
This commit is contained in:
@@ -844,7 +844,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
const CChainParams& chainparams = Params();
|
const CChainParams& chainparams = Params();
|
||||||
|
|
||||||
// Set this early so that experimental features are correctly enabled/disabled
|
// Set this early so that experimental features are correctly enabled/disabled
|
||||||
fExperimentalMode = GetBoolArg("-experimentalfeatures", false);
|
fExperimentalMode = GetBoolArg("-experimentalfeatures", true);
|
||||||
|
|
||||||
// Fail early if user has set experimental options without the global flag
|
// Fail early if user has set experimental options without the global flag
|
||||||
if (!fExperimentalMode) {
|
if (!fExperimentalMode) {
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ static int64_t nTimeBestReceived = 0;
|
|||||||
CWaitableCriticalSection csBestBlock;
|
CWaitableCriticalSection csBestBlock;
|
||||||
CConditionVariable cvBlockChange;
|
CConditionVariable cvBlockChange;
|
||||||
int nScriptCheckThreads = 0;
|
int nScriptCheckThreads = 0;
|
||||||
bool fExperimentalMode = false;
|
bool fExperimentalMode = true;
|
||||||
bool fImporting = false;
|
bool fImporting = false;
|
||||||
bool fReindex = false;
|
bool fReindex = false;
|
||||||
bool fTxIndex = false;
|
bool fTxIndex = false;
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ saplingNoteInputs_(saplingNoteInputs), recipient_(recipient), fee_(fee), context
|
|||||||
lock_notes();
|
lock_notes();
|
||||||
|
|
||||||
// Enable payment disclosure if requested
|
// Enable payment disclosure if requested
|
||||||
paymentDisclosureMode = fExperimentalMode && GetBoolArg("-paymentdisclosure", false);
|
paymentDisclosureMode = fExperimentalMode && GetBoolArg("-paymentdisclosure", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
AsyncRPCOperation_mergetoaddress::~AsyncRPCOperation_mergetoaddress()
|
AsyncRPCOperation_mergetoaddress::~AsyncRPCOperation_mergetoaddress()
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ public:
|
|||||||
|
|
||||||
bool testmode = false; // Set to true to disable sending txs and generating proofs
|
bool testmode = false; // Set to true to disable sending txs and generating proofs
|
||||||
|
|
||||||
bool paymentDisclosureMode = false; // Set to true to save esk for encrypted notes in payment disclosure database.
|
bool paymentDisclosureMode = true; // Set to true to save esk for encrypted notes in payment disclosure database.
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class TEST_FRIEND_AsyncRPCOperation_mergetoaddress; // class for unit testing
|
friend class TEST_FRIEND_AsyncRPCOperation_mergetoaddress; // class for unit testing
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ AsyncRPCOperation_sendmany::AsyncRPCOperation_sendmany(
|
|||||||
|
|
||||||
|
|
||||||
// Enable payment disclosure if requested
|
// Enable payment disclosure if requested
|
||||||
paymentDisclosureMode = fExperimentalMode && GetBoolArg("-paymentdisclosure", false);
|
paymentDisclosureMode = fExperimentalMode && GetBoolArg("-paymentdisclosure", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
AsyncRPCOperation_sendmany::~AsyncRPCOperation_sendmany() {
|
AsyncRPCOperation_sendmany::~AsyncRPCOperation_sendmany() {
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ public:
|
|||||||
|
|
||||||
bool testmode = false; // Set to true to disable sending txs and generating proofs
|
bool testmode = false; // Set to true to disable sending txs and generating proofs
|
||||||
|
|
||||||
bool paymentDisclosureMode = false; // Set to true to save esk for encrypted notes in payment disclosure database.
|
bool paymentDisclosureMode = true; // Set to true to save esk for encrypted notes in payment disclosure database.
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class TEST_FRIEND_AsyncRPCOperation_sendmany; // class for unit testing
|
friend class TEST_FRIEND_AsyncRPCOperation_sendmany; // class for unit testing
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ AsyncRPCOperation_shieldcoinbase::AsyncRPCOperation_shieldcoinbase(
|
|||||||
lock_utxos();
|
lock_utxos();
|
||||||
|
|
||||||
// Enable payment disclosure if requested
|
// Enable payment disclosure if requested
|
||||||
paymentDisclosureMode = fExperimentalMode && GetBoolArg("-paymentdisclosure", false);
|
paymentDisclosureMode = fExperimentalMode && GetBoolArg("-paymentdisclosure", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
AsyncRPCOperation_shieldcoinbase::~AsyncRPCOperation_shieldcoinbase() {
|
AsyncRPCOperation_shieldcoinbase::~AsyncRPCOperation_shieldcoinbase() {
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ public:
|
|||||||
bool testmode = false; // Set to true to disable sending txs and generating proofs
|
bool testmode = false; // Set to true to disable sending txs and generating proofs
|
||||||
bool cheatSpend = false; // set when this is shielding a cheating coinbase
|
bool cheatSpend = false; // set when this is shielding a cheating coinbase
|
||||||
|
|
||||||
bool paymentDisclosureMode = false; // Set to true to save esk for encrypted notes in payment disclosure database.
|
bool paymentDisclosureMode = true; // Set to true to save esk for encrypted notes in payment disclosure database.
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class ShieldToAddress;
|
friend class ShieldToAddress;
|
||||||
|
|||||||
Reference in New Issue
Block a user