Commit 7d3817b
MacroFake
Merge bitcoin#25760: rest: clean-up for
acbea66 rest: clean-up for `mempool` endpoints (brunoerg)
Pull request description:
The functions `rest_mempool_info` and `rest_mempool_contents` are similar, the only difference between them is:
`rest_mempool_info` uses `MempoolInfoToJSON` to get the mempool informations and `rest_mempool_contents` uses `MempoolToJSON`, for this reason this PR creates a new function to handle it and reduce duplicated code.
Also,
1. Rename `strURIPart` to `str_uri_part`.
2. Rename `strJSON` to `str_json`.
ACKs for top commit:
stickies-v:
re-ACK acbea66 - verified that just the error message was updated since bitcoin@da0c612
theStack:
re-ACK acbea66
Tree-SHA512: 35f6f0732a573fe8a6cdcc782f89ae3427a1de19f069a68c9c51bb525118c2b07e20303cbe19b9d4b7d1ad055d69c32def2d0fb8f886c851da562dd9ce33ad6amempool endpoints1 file changed
+13
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
| 593 | + | |
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | 597 | | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
614 | 602 | | |
615 | | - | |
616 | 603 | | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | 604 | | |
621 | 605 | | |
622 | | - | |
623 | | - | |
624 | 606 | | |
625 | 607 | | |
626 | 608 | | |
627 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
628 | 615 | | |
629 | | - | |
630 | 616 | | |
631 | | - | |
| 617 | + | |
632 | 618 | | |
633 | 619 | | |
634 | 620 | | |
| |||
946 | 932 | | |
947 | 933 | | |
948 | 934 | | |
949 | | - | |
950 | | - | |
| 935 | + | |
951 | 936 | | |
952 | 937 | | |
953 | 938 | | |
| |||
0 commit comments