mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 03:03:22 -03:00
54de7b4746
The long term feerate is really the highest feerate that the user is comfortable with making consolidatory transactions. This is should thus be something that can be configured by the user via a new startup option -consolidatefeerate. The default value is 10 sat/vbyte, chosen arbitrarily (it seems like a reasonable number).
67 lines
1.8 KiB
C++
67 lines
1.8 KiB
C++
// Copyright (c) 2018-2020 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include <util/system.h>
|
|
#include <walletinitinterface.h>
|
|
|
|
class CWallet;
|
|
|
|
namespace interfaces {
|
|
class Chain;
|
|
class Handler;
|
|
class Wallet;
|
|
}
|
|
|
|
class DummyWalletInit : public WalletInitInterface {
|
|
public:
|
|
|
|
bool HasWalletSupport() const override {return false;}
|
|
void AddWalletOptions(ArgsManager& argsman) const override;
|
|
bool ParameterInteraction() const override {return true;}
|
|
void Construct(NodeContext& node) const override {LogPrintf("No wallet support compiled in!\n");}
|
|
};
|
|
|
|
void DummyWalletInit::AddWalletOptions(ArgsManager& argsman) const
|
|
{
|
|
argsman.AddHiddenArgs({
|
|
"-addresstype",
|
|
"-avoidpartialspends",
|
|
"-changetype",
|
|
"-consolidatefeerate=<amt>",
|
|
"-disablewallet",
|
|
"-discardfee=<amt>",
|
|
"-fallbackfee=<amt>",
|
|
"-keypool=<n>",
|
|
"-maxapsfee=<n>",
|
|
"-maxtxfee=<amt>",
|
|
"-mintxfee=<amt>",
|
|
"-paytxfee=<amt>",
|
|
"-rescan",
|
|
"-salvagewallet",
|
|
"-signer=<cmd>",
|
|
"-spendzeroconfchange",
|
|
"-txconfirmtarget=<n>",
|
|
"-wallet=<path>",
|
|
"-walletbroadcast",
|
|
"-walletdir=<dir>",
|
|
"-walletnotify=<cmd>",
|
|
"-walletrbf",
|
|
"-dblogsize=<n>",
|
|
"-flushwallet",
|
|
"-privdb",
|
|
"-walletrejectlongchains",
|
|
"-unsafesqlitesync",
|
|
});
|
|
}
|
|
|
|
const WalletInitInterface& g_wallet_init_interface = DummyWalletInit();
|
|
|
|
namespace interfaces {
|
|
|
|
std::unique_ptr<Wallet> MakeWallet(const std::shared_ptr<CWallet>& wallet)
|
|
{
|
|
throw std::logic_error("Wallet function called in non-wallet build.");
|
|
}
|
|
|
|
} // namespace interfaces
|