-
Notifications
You must be signed in to change notification settings - Fork 36.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpc: Add maxmempool and effective min fee to getmempoolinfo #6877
Conversation
7915afe
to
507f1b5
Compare
Makes sense. Concept ACK |
@@ -772,6 +772,9 @@ UniValue mempoolInfoToJSON() | |||
ret.push_back(Pair("size", (int64_t) mempool.size())); | |||
ret.push_back(Pair("bytes", (int64_t) mempool.GetTotalTxSize())); | |||
ret.push_back(Pair("usage", (int64_t) mempool.DynamicMemoryUsage())); | |||
size_t maxmempool = GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000; | |||
ret.push_back(Pair("maxmempool", (int64_t) maxmempool)); | |||
ret.push_back(Pair("effectiveminfee", ValueFromAmount(mempool.GetMinFee(maxmempool).GetFeePerK()))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"effectiveminfee" seems misleading if your GetMinFee() is 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better suggestions?
Hm maybe just 'minfee' (context is getmempoolinfo, after all) or 'mempoolminfee'. I agree it's not really the effective number used and shouldn't be named that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mempoolminfee?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems we have two votes for mempoolminfee
- changing to that
ACK |
507f1b5
to
10e2eae
Compare
10e2eae rpc: Add maxmempool and effective min fee to getmempoolinfo (Wladimir J. van der Laan)
@@ -772,6 +772,9 @@ UniValue mempoolInfoToJSON() | |||
ret.push_back(Pair("size", (int64_t) mempool.size())); | |||
ret.push_back(Pair("bytes", (int64_t) mempool.GetTotalTxSize())); | |||
ret.push_back(Pair("usage", (int64_t) mempool.DynamicMemoryUsage())); | |||
size_t maxmempool = GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000; | |||
ret.push_back(Pair("maxmempool", (int64_t) maxmempool)); | |||
ret.push_back(Pair("mempoolminfee", ValueFromAmount(mempool.GetMinFee(maxmempool).GetFeePerK()))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'd need to update help getmempoolinfo
as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documented in #7118.
I think these can be useful.
Context: lots of these in my log
Which doesn't give information about the transaction size, so can't reason back to what the effective minfee was.