Commit e0d8378
committed
Merge bitcoin/bitcoin#27069: net: add
2d955ff net: add `Ensure{any}Banman` (brunoerg)
Pull request description:
This PR adds `Ensure{any}Banman` functions to avoid code repetition and make it cleaner. Same approach as done with argsman, chainman, connman and others.
ACKs for top commit:
davidgumberg:
ACK [2d955ff](bitcoin/bitcoin@2d955ff)
Tree-SHA512: 0beb7125312168a3df130c1793a1412ab423ef0f46023bfe2a121630c79df7e55d3d143fcf053bd09e2d96e9385a7a04594635da3e5c6be0c5d3a9cafbe3b631Ensure{any}Banman
3 files changed
+26
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
706 | | - | |
707 | | - | |
| 705 | + | |
708 | 706 | | |
709 | 707 | | |
710 | 708 | | |
| |||
726 | 724 | | |
727 | 725 | | |
728 | 726 | | |
729 | | - | |
| 727 | + | |
730 | 728 | | |
731 | 729 | | |
732 | 730 | | |
| |||
741 | 739 | | |
742 | 740 | | |
743 | 741 | | |
744 | | - | |
| 742 | + | |
745 | 743 | | |
746 | 744 | | |
747 | 745 | | |
748 | 746 | | |
749 | | - | |
| 747 | + | |
750 | 748 | | |
751 | 749 | | |
752 | 750 | | |
753 | 751 | | |
754 | 752 | | |
755 | 753 | | |
756 | 754 | | |
757 | | - | |
| 755 | + | |
758 | 756 | | |
759 | 757 | | |
760 | 758 | | |
| |||
785 | 783 | | |
786 | 784 | | |
787 | 785 | | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
| 786 | + | |
792 | 787 | | |
793 | 788 | | |
794 | | - | |
| 789 | + | |
795 | 790 | | |
796 | 791 | | |
797 | 792 | | |
| |||
825 | 820 | | |
826 | 821 | | |
827 | 822 | | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
| 823 | + | |
832 | 824 | | |
833 | | - | |
| 825 | + | |
834 | 826 | | |
835 | 827 | | |
836 | 828 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
42 | 56 | | |
43 | 57 | | |
44 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
0 commit comments