Commit 2ab61d0
committed
Merge rust-bitcoin#204: Reduce duplication using conditional initialization in addnode test
a2e2092 Reduce duplication using conditional initialization in addnode test (GideonBature)
Pull request description:
This is done to reduce the duplication of code in the add_node test. It is also done to maintain consistency with existing tests already using such approach.
ACKs for top commit:
tcharding:
ACK a2e2092
Tree-SHA512: d64ba3caea2158d3932457ad6a361a40a81033f3e0ccbd63347bacc8abaa48179ecb95b75f5a30e9c761baa11259f00a72e9f719edc48eb30f1aba0c94fd12c41 file changed
+10
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
| |||
0 commit comments