mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Merge #16402: Remove wallet settings from chainparams
fa4a605a4c611abe9af4c18aab20f4d1d039170f Remove wallet settings from chainparams (MarcoFalke) Pull request description: Feels a bit odd to have wallet setting in the chainparams, so remove them from there ACKs for top commit: promag: ACK fa4a605a4c611abe9af4c18aab20f4d1d039170f, missed s/2018/2019? practicalswift: utACK fa4a605a4c611abe9af4c18aab20f4d1d039170f darosior: ACK fa4a605a4c611abe9af4c18aab20f4d1d039170f Tree-SHA512: 2b3a5ee85d36af290d7db80bed1339e3c684607f1ce61cc65c906726e9174e40325fb1f67a34d8780f2a61fa39a1785e7c3a1cef5b6d6c364f38db5300cdbe3a
This commit is contained in:
parent
8ca90f3f99
commit
0f6c7b98a5
@ -360,9 +360,6 @@ public:
|
|||||||
// (the tx=... number in the ChainStateFlushed debug.log lines)
|
// (the tx=... number in the ChainStateFlushed debug.log lines)
|
||||||
0.3 // * estimated number of transactions per second after that timestamp
|
0.3 // * estimated number of transactions per second after that timestamp
|
||||||
};
|
};
|
||||||
|
|
||||||
/* disable fallback fee on mainnet */
|
|
||||||
m_fallback_fee_enabled = false;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -556,9 +553,6 @@ public:
|
|||||||
// (the tx=... number in the ChainStateFlushed debug.log lines)
|
// (the tx=... number in the ChainStateFlushed debug.log lines)
|
||||||
0.01 // * estimated number of transactions per second after that timestamp
|
0.01 // * estimated number of transactions per second after that timestamp
|
||||||
};
|
};
|
||||||
|
|
||||||
/* enable fallback fee on testnet */
|
|
||||||
m_fallback_fee_enabled = true;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1025,9 +1019,6 @@ public:
|
|||||||
params->minSize = threshold;
|
params->minSize = threshold;
|
||||||
params->threshold = threshold;
|
params->threshold = threshold;
|
||||||
params->dkgBadVotesThreshold = threshold;
|
params->dkgBadVotesThreshold = threshold;
|
||||||
|
|
||||||
/* enable fallback fee on regtest */
|
|
||||||
m_fallback_fee_enabled = true;
|
|
||||||
}
|
}
|
||||||
void UpdateLLMQTestParametersFromArgs(const ArgsManager& args);
|
void UpdateLLMQTestParametersFromArgs(const ArgsManager& args);
|
||||||
};
|
};
|
||||||
|
@ -70,7 +70,7 @@ public:
|
|||||||
bool RequireStandard() const { return fRequireStandard; }
|
bool RequireStandard() const { return fRequireStandard; }
|
||||||
/** Require addresses specified with "-externalip" parameter to be routable */
|
/** Require addresses specified with "-externalip" parameter to be routable */
|
||||||
bool RequireRoutableExternalIP() const { return fRequireRoutableExternalIP; }
|
bool RequireRoutableExternalIP() const { return fRequireRoutableExternalIP; }
|
||||||
/** If this is a test chain */
|
/** If this chain is exclusively used for testing */
|
||||||
bool IsTestChain() const { return m_is_test_chain; }
|
bool IsTestChain() const { return m_is_test_chain; }
|
||||||
uint64_t PruneAfterHeight() const { return nPruneAfterHeight; }
|
uint64_t PruneAfterHeight() const { return nPruneAfterHeight; }
|
||||||
/** Minimum free space (in GB) needed for data directory */
|
/** Minimum free space (in GB) needed for data directory */
|
||||||
@ -87,8 +87,6 @@ public:
|
|||||||
int LLMQConnectionRetryTimeout() const { return nLLMQConnectionRetryTimeout; }
|
int LLMQConnectionRetryTimeout() const { return nLLMQConnectionRetryTimeout; }
|
||||||
/** Return the BIP70 network string (main, test or regtest) */
|
/** Return the BIP70 network string (main, test or regtest) */
|
||||||
std::string NetworkIDString() const { return strNetworkID; }
|
std::string NetworkIDString() const { return strNetworkID; }
|
||||||
/** Return true if the fallback fee is by default enabled for this network */
|
|
||||||
bool IsFallbackFeeEnabled() const { return m_fallback_fee_enabled; }
|
|
||||||
/** Return the list of hostnames to look up for DNS seeds */
|
/** Return the list of hostnames to look up for DNS seeds */
|
||||||
const std::vector<std::string>& DNSSeeds() const { return vSeeds; }
|
const std::vector<std::string>& DNSSeeds() const { return vSeeds; }
|
||||||
const std::vector<unsigned char>& Base58Prefix(Base58Type type) const { return base58Prefixes[type]; }
|
const std::vector<unsigned char>& Base58Prefix(Base58Type type) const { return base58Prefixes[type]; }
|
||||||
@ -138,7 +136,6 @@ protected:
|
|||||||
int nLLMQConnectionRetryTimeout;
|
int nLLMQConnectionRetryTimeout;
|
||||||
CCheckpointData checkpointData;
|
CCheckpointData checkpointData;
|
||||||
ChainTxData chainTxData;
|
ChainTxData chainTxData;
|
||||||
bool m_fallback_fee_enabled;
|
|
||||||
int nPoolMinParticipants;
|
int nPoolMinParticipants;
|
||||||
int nPoolMaxParticipants;
|
int nPoolMaxParticipants;
|
||||||
int nFulfilledRequestExpireTime;
|
int nFulfilledRequestExpireTime;
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CBaseChainParams defines the base parameters (shared between dash-cli and dashd)
|
* CBaseChainParams defines the base parameters (shared between dash-cli and dashd)
|
||||||
|
@ -5103,8 +5103,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
|
|||||||
walletInstance->m_min_fee = CFeeRate(n);
|
walletInstance->m_min_fee = CFeeRate(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: enable when IsFallbackFeeEnabled is backported
|
walletInstance->m_allow_fallback_fee = Params().IsTestChain();
|
||||||
// walletInstance->m_allow_fallback_fee = Params().IsFallbackFeeEnabled();
|
|
||||||
if (gArgs.IsArgSet("-fallbackfee")) {
|
if (gArgs.IsArgSet("-fallbackfee")) {
|
||||||
CAmount nFeePerK = 0;
|
CAmount nFeePerK = 0;
|
||||||
if (!ParseMoney(gArgs.GetArg("-fallbackfee", ""), nFeePerK)) {
|
if (!ParseMoney(gArgs.GetArg("-fallbackfee", ""), nFeePerK)) {
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include <interfaces/handler.h>
|
#include <interfaces/handler.h>
|
||||||
#include <policy/feerate.h>
|
#include <policy/feerate.h>
|
||||||
#include <saltedhasher.h>
|
#include <saltedhasher.h>
|
||||||
#include <streams.h>
|
|
||||||
#include <script/ismine.h>
|
#include <script/ismine.h>
|
||||||
#include <tinyformat.h>
|
#include <tinyformat.h>
|
||||||
#include <ui_interface.h>
|
#include <ui_interface.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user