Skip to content

Commit 41eb1b2

Browse files
Merge dashpay#5878: backport: Merge bitcoin#21818, 21752
1e613f0 Merge bitcoin#21752: doc: Clarify that feerates are per virtual size. (Vijay Manikpuri) ad73978 Merge bitcoin#21818: doc: fixup -coinstatsindex help, update bitcoin.conf and files.md (fanquake) Pull request description: bitcoin backports Top commit has no ACKs. Tree-SHA512: d0db0e906a10a3168c8fbab64e960b8c1130313bb27c3db08b7e85734fa27e193c1411e45167f76089236f1f5f5dfceffb8d794574057ebe071f0394ac4f62bf
2 parents 4ff0c95 + 1e613f0 commit 41eb1b2

File tree

7 files changed

+12
-8
lines changed

7 files changed

+12
-8
lines changed

contrib/debian/examples/dash.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,11 @@
150150
# both prior transactions and several dozen future transactions.
151151
#keypool=100
152152

153+
# Maintain coinstats index used by the gettxoutsetinfo RPC (default: 0).
154+
#coinstatsindex=1
155+
153156
# Enable pruning to reduce storage requirements by deleting old blocks.
154-
# This mode is incompatible with -txindex and -rescan.
157+
# This mode is incompatible with -txindex, -coinstatsindex and -rescan.
155158
# 0 = default (no pruning).
156159
# 1 = allows manual pruning via RPC.
157160
# >=945 = target to stay under in MiB.

doc/files.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Subdirectory | File(s) | Description
5353
`indexes/txindex/` | LevelDB database | Transaction index; *optional*, used if `-txindex=1`
5454
`indexes/blockfilter/basic/db/` | LevelDB database | Blockfilter index LevelDB database for the basic filtertype; *optional*, used if `-blockfilterindex=basic`
5555
`indexes/blockfilter/basic/` | `fltrNNNNN.dat`<sup>[\[2\]](#note2)</sup> | Blockfilter index filters for the basic filtertype; *optional*, used if `-blockfilterindex=basic`
56+
`indexes/coinstats/db/` | LevelDB database | Coinstats index; *optional*, used if `-coinstatsindex=1`
5657
`wallets/` | | [Contains wallets](#multi-wallet-environment); can be specified by `-walletdir` option; if `wallets/` subdirectory does not exist, wallets reside in the [data directory](#data-directory-location)
5758
`./` | `anchors.dat` | Anchor IP address database, created on shutdown and deleted at startup. Anchors are last known outgoing block-relay-only peers that are tried to re-connect to on startup
5859
`evodb/` | |special txes and quorums database

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ void SetupServerArgs(NodeContext& node)
530530
#if HAVE_SYSTEM
531531
argsman.AddArg("-chainlocknotify=<cmd>", "Execute command when the best chainlock changes (%s in cmd is replaced by chainlocked block hash)", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
532532
#endif
533-
argsman.AddArg("-coinstatsindex", strprintf("Maintain coinstats index used by the gettxoutset RPC (default: %u)", DEFAULT_COINSTATSINDEX), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
533+
argsman.AddArg("-coinstatsindex", strprintf("Maintain coinstats index used by the gettxoutsetinfo RPC (default: %u)", DEFAULT_COINSTATSINDEX), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
534534
argsman.AddArg("-conf=<file>", strprintf("Specify path to read-only configuration file. Relative paths will be prefixed by datadir location. (default: %s)", BITCOIN_CONF_FILENAME), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
535535
argsman.AddArg("-datadir=<dir>", "Specify data directory", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
536536
argsman.AddArg("-dbbatchsize", strprintf("Maximum database write batch size in bytes (default: %u)", nDefaultDbBatchSize), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::OPTIONS);

src/rpc/blockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ static UniValue gettxoutsetinfo(const JSONRPCRequest& request)
13071307
"Note this call may take some time if you are not using coinstatsindex.\n",
13081308
{
13091309
{"hash_type", RPCArg::Type::STR, /* default */ "hash_serialized_2", "Which UTXO set hash should be calculated. Options: 'hash_serialized_2' (the legacy algorithm), 'muhash', 'none'."},
1310-
{"hash_or_height", RPCArg::Type::NUM, RPCArg::Optional::OMITTED, "The block hash or height of the target height (only available with coinstatsindex)", "", {"", "string or numeric"}},
1310+
{"hash_or_height", RPCArg::Type::NUM, RPCArg::Optional::OMITTED, "The block hash or height of the target height (only available with coinstatsindex).", "", {"", "string or numeric"}},
13111311
{"use_index", RPCArg::Type::BOOL, /* default */ "true", "Use coinstatsindex, if available."},
13121312
},
13131313
RPCResult{

src/wallet/init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ void WalletInit::AddWalletOptions(ArgsManager& argsman) const
7979
CURRENCY_UNIT, FormatMoney(DEFAULT_FALLBACK_FEE)), ArgsManager::ALLOW_ANY, OptionsCategory::WALLET_FEE);
8080
argsman.AddArg("-maxtxfee=<amt>", strprintf("Maximum total fees (in %s) to use in a single wallet transaction; setting this too low may abort large transactions (default: %s)",
8181
CURRENCY_UNIT, FormatMoney(DEFAULT_TRANSACTION_MAXFEE)), ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST);
82-
argsman.AddArg("-mintxfee=<amt>", strprintf("Fees (in %s/kB) smaller than this are considered zero fee for transaction creation (default: %s)",
82+
argsman.AddArg("-mintxfee=<amt>", strprintf("Fee rates (in %s/kB) smaller than this are considered zero fee for transaction creation (default: %s)",
8383
CURRENCY_UNIT, FormatMoney(DEFAULT_TRANSACTION_MINFEE)), ArgsManager::ALLOW_ANY, OptionsCategory::WALLET_FEE);
84-
argsman.AddArg("-paytxfee=<amt>", strprintf("Fee (in %s/kB) to add to transactions you send (default: %s)",
84+
argsman.AddArg("-paytxfee=<amt>", strprintf("Fee rate (in %s/kB) to add to transactions you send (default: %s)",
8585
CURRENCY_UNIT, FormatMoney(CFeeRate{DEFAULT_PAY_TX_FEE}.GetFeePerK())), ArgsManager::ALLOW_ANY, OptionsCategory::WALLET_FEE);
8686
argsman.AddArg("-txconfirmtarget=<n>", strprintf("If paytxfee is not set, include enough fee so transactions begin confirmation on average within n blocks (default: %u)", DEFAULT_TX_CONFIRM_TARGET), ArgsManager::ALLOW_ANY, OptionsCategory::WALLET_FEE);
8787

src/wallet/rpcwallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,10 +2319,10 @@ static UniValue listlockunspent(const JSONRPCRequest& request)
23192319
static UniValue settxfee(const JSONRPCRequest& request)
23202320
{
23212321
RPCHelpMan{"settxfee",
2322-
"\nSet the transaction fee per kB for this wallet. Overrides the global -paytxfee command line parameter.\n"
2322+
"\nSet the transaction fee rate in " + CURRENCY_UNIT + "/kB for this wallet. Overrides the global -paytxfee command line parameter.\n"
23232323
"Can be deactivated by passing 0 as the fee. In that case automatic fee selection will be used by default.\n",
23242324
{
2325-
{"amount", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "The transaction fee in " + CURRENCY_UNIT + "/kB"},
2325+
{"amount", RPCArg::Type::AMOUNT, RPCArg::Optional::NO, "The transaction fee rate in " + CURRENCY_UNIT + "/kB"},
23262326
},
23272327
RPCResult{
23282328
RPCResult::Type::BOOL, "", "Returns true if successful"

test/functional/rpc_blockchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def _test_gettxoutsetinfo(self):
287287
assert 'muhash' in res6
288288
assert(res['hash_serialized_2'] != res6['muhash'])
289289

290-
# muhash should not be included in gettxoutset unless requested.
290+
# muhash should not be returned unless requested.
291291
for r in [res, res2, res3, res4, res5]:
292292
assert 'muhash' not in r
293293

0 commit comments

Comments
 (0)