rpc: fix getmempoolfeeratediagram result description #37020

Manually merged
nervana21 merged 1 commit from rpc-mempool-diagram-desc into master 2026-11-30 16:42:16 +00:00 AGit
nervana21 commented 2026-11-30 13:40:38 +00:00 (Migrated from github.com)

In #36175, maflcko found that "mempool chunks" was incorrectly rendered as a result branch label.

Fix it to annotate the array instead.

help getmempoolfeeratediagram diff
-Result (mempool chunks):
-[                    (json array)
+Result:
+[                    (json array) mempool chunks
   {                  (json object)
     "weight" : n,    (numeric) cumulative sigops-adjusted weight
     "fee" : n        (numeric) cumulative fee
   },
   ...
 ]
In #36175, maflcko [found](https://github.com/bitcoin/bitcoin/pull/36175#issuecomment-6288269102) that `"mempool chunks"` was incorrectly rendered as a result branch label. Fix it to annotate the array instead. <details> <summary><code>help getmempoolfeeratediagram</code> diff</summary> ```diff -Result (mempool chunks): -[ (json array) +Result: +[ (json array) mempool chunks { (json object) "weight" : n, (numeric) cumulative sigops-adjusted weight "fee" : n (numeric) cumulative fee }, ... ] ``` </details>
DrahtBot commented 2026-11-30 13:40:48 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK maflcko

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/37020 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/37020.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/37020#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [maflcko](https://github.com/bitcoin/bitcoin/pull/37020#issuecomment-7280534520) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--5faf32d7da4f0f540f40219e4f7537a3-->
maflcko commented 2026-11-30 13:54:06 +00:00 (Migrated from github.com)

lgtm ACK 0b17fa0ac1

lgtm ACK 0b17fa0ac1091d8097b4da0c0bef896ede35a684
First-time contributor

I found no actionable issues in this static review.


Reviewed: 0b17fa0ac109 · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:312ddb2095238aa2ca395a9cc39b05ab5a38a7177afbdb0d69098df9c3e0bef9:9a7f127b15c6116c267953d38288a9f17ec7c7bcd3a975fb71a2db8bfd974dbf --> <!-- ralph-base:483ed3be8d13b50996bf0f81d4f55487b6b938dd --> <!-- ralph-head:0b17fa0ac1091d8097b4da0c0bef896ede35a684 --> <!-- ralph-case:a55a89d10416f7cb099077a9cd8ecbe0448bc672d7f6be633592f568168a61fe --> I found no actionable issues in this static review. <!-- Review tier: standard --> --- Reviewed: [`0b17fa0ac109`](<https://git.fish.foo/bitcoin/bitcoin/commit/0b17fa0ac1091d8097b4da0c0bef896ede35a684>) · [Review report](<https://review.fish.foo/report/37020-0b17fa0ac1091d8097b4da0c0bef896ede35a684-3350-1.html>) · [Previous reports](<https://review.fish.foo/traces/37020/>) [permalink](<https://review.fish.foo/report/37020-0b17fa0ac1091d8097b4da0c0bef896ede35a684-3350-1.html>)
fanquake commented 2026-11-30 17:37:08 +00:00 (Migrated from github.com)

Backported to 32.x in #36984.

Backported to `32.x` in #36984.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!37020
No description provided.