Skip to content

Commit a94d643

Browse files
committed
[doc] clarify effective feerate
1 parent 9b1df49 commit a94d643

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rpc/mempool.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,8 @@ static RPCHelpMan submitpackage()
10891089
{RPCResult::Type::NUM, "vsize", /*optional=*/true, "Sigops-adjusted virtual transaction size."},
10901090
{RPCResult::Type::OBJ, "fees", /*optional=*/true, "Transaction fees", {
10911091
{RPCResult::Type::STR_AMOUNT, "base", "transaction fee in " + CURRENCY_UNIT},
1092-
{RPCResult::Type::STR_AMOUNT, "effective-feerate", /*optional=*/true, "if the transaction was not already in the mempool, the effective feerate in " + CURRENCY_UNIT + " per KvB. For example, the package feerate and/or feerate with modified fees from prioritisetransaction."},
1092+
{RPCResult::Type::STR_AMOUNT, "effective-feerate", /*optional=*/true, "if the transaction was not already in the mempool, the effective feerate in " + CURRENCY_UNIT +
1093+
" per KvB. For example, the package feerate and/or feerate with modified fees from prioritisetransaction. Not the same thing as chunk feerate."},
10931094
{RPCResult::Type::ARR, "effective-includes", /*optional=*/true, "if effective-feerate is provided, the wtxids of the transactions whose fees and vsizes are included in effective-feerate.",
10941095
{{RPCResult::Type::STR_HEX, "", "transaction wtxid in hex"},
10951096
}},
@@ -1244,6 +1245,8 @@ static RPCHelpMan submitpackage()
12441245
UniValue fees(UniValue::VOBJ);
12451246
fees.pushKV("base", ValueFromAmount(it->second.m_base_fees.value()));
12461247
if (tx_result.m_result_type == MempoolAcceptResult::ResultType::VALID) {
1248+
// Effective feerate (the feerate used at the time of validation) is not the same thing as chunk
1249+
// feerate (which is determined after adding the transaction to mempool).
12471250
// Effective feerate is not provided for MEMPOOL_ENTRY transactions even
12481251
// though modified fees is known, because it is unknown whether package
12491252
// feerate was used when it was originally submitted.

0 commit comments

Comments
 (0)