Remove wallet settings from chainparams
This commit is contained in:
5 files changed
+2
-16
No files matched your search
@@ -167,9 +167,6 @@ public:
|
|||||||
/* nTxCount */ 383732546,
|
/* nTxCount */ 383732546,
|
||||||
/* dTxRate */ 3.685496590998308
|
/* dTxRate */ 3.685496590998308
|
||||||
};
|
};
|
||||||
|
|
||||||
/* disable fallback fee on mainnet */
|
|
||||||
m_fallback_fee_enabled = false;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -262,9 +259,6 @@ public:
|
|||||||
/* nTxCount */ 19438708,
|
/* nTxCount */ 19438708,
|
||||||
/* dTxRate */ 0.626
|
/* dTxRate */ 0.626
|
||||||
};
|
};
|
||||||
|
|
||||||
/* enable fallback fee on testnet */
|
|
||||||
m_fallback_fee_enabled = true;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -346,9 +340,6 @@ public:
|
|||||||
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
|
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
|
||||||
|
|
||||||
bech32_hrp = "bcrt";
|
bech32_hrp = "bcrt";
|
||||||
|
|
||||||
/* enable fallback fee on regtest */
|
|
||||||
m_fallback_fee_enabled = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-4
@@ -66,7 +66,7 @@ public:
|
|||||||
bool DefaultConsistencyChecks() const { return fDefaultConsistencyChecks; }
|
bool DefaultConsistencyChecks() const { return fDefaultConsistencyChecks; }
|
||||||
/** Policy: Filter transactions that do not match well-defined patterns */
|
/** Policy: Filter transactions that do not match well-defined patterns */
|
||||||
bool RequireStandard() const { return fRequireStandard; }
|
bool RequireStandard() const { return fRequireStandard; }
|
||||||
/** 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 */
|
||||||
@@ -77,8 +77,6 @@ public:
|
|||||||
bool MineBlocksOnDemand() const { return consensus.fPowNoRetargeting; }
|
bool MineBlocksOnDemand() const { return consensus.fPowNoRetargeting; }
|
||||||
/** 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]; }
|
||||||
@@ -106,7 +104,6 @@ protected:
|
|||||||
bool m_is_test_chain;
|
bool m_is_test_chain;
|
||||||
CCheckpointData checkpointData;
|
CCheckpointData checkpointData;
|
||||||
ChainTxData chainTxData;
|
ChainTxData chainTxData;
|
||||||
bool m_fallback_fee_enabled;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CBaseChainParams defines the base parameters (shared between bitcoin-cli and bitcoind)
|
* CBaseChainParams defines the base parameters (shared between bitcoin-cli and bitcoind)
|
||||||
|
|||||||
@@ -4388,7 +4388,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
|
|||||||
walletInstance->m_min_fee = CFeeRate(n);
|
walletInstance->m_min_fee = CFeeRate(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
walletInstance->m_allow_fallback_fee = Params().IsFallbackFeeEnabled();
|
walletInstance->m_allow_fallback_fee = Params().IsTestChain();
|
||||||
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 <outputtype.h>
|
#include <outputtype.h>
|
||||||
#include <policy/feerate.h>
|
#include <policy/feerate.h>
|
||||||
#include <script/sign.h>
|
#include <script/sign.h>
|
||||||
#include <streams.h>
|
|
||||||
#include <tinyformat.h>
|
#include <tinyformat.h>
|
||||||
#include <ui_interface.h>
|
#include <ui_interface.h>
|
||||||
#include <util/strencodings.h>
|
#include <util/strencodings.h>
|
||||||
|
|||||||
Reference in new issue
Block a user