Commit 4d0373f
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 parent 46a187a commit 4d0373f
1 file changed
+13
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
623 | | - | |
| 623 | + | |
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | 627 | | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
647 | 632 | | |
648 | | - | |
649 | 633 | | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 634 | | |
654 | 635 | | |
655 | | - | |
656 | | - | |
657 | 636 | | |
658 | 637 | | |
659 | 638 | | |
660 | 639 | | |
661 | 640 | | |
662 | 641 | | |
663 | | - | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
664 | 648 | | |
665 | | - | |
666 | 649 | | |
667 | | - | |
| 650 | + | |
668 | 651 | | |
669 | 652 | | |
670 | 653 | | |
| |||
982 | 965 | | |
983 | 966 | | |
984 | 967 | | |
985 | | - | |
986 | | - | |
| 968 | + | |
987 | 969 | | |
988 | 970 | | |
989 | 971 | | |
| |||
0 commit comments