This repository was archived by the owner on Jul 1, 2025. It is now read-only.
Commit 16de069
Replace waitforpeertask with ethpeers method (#8009)
* 7582: Add waitForPeer method to PeerSelector and EthPeers
Signed-off-by: Matilda Clerke <[email protected]>
* 7582: Replace all usages of WaitForPeer[s]Task with new EthPeers.waitForPeer method
Signed-off-by: Matilda Clerke <[email protected]>
* 7582: Fix PivotBlockConfirmerTest
Signed-off-by: Matilda Clerke <[email protected]>
* 7582: spotless
Signed-off-by: Matilda Clerke <[email protected]>
* 7582: Fix broken PivotBlockRetrieverTest
Signed-off-by: Matilda Clerke <[email protected]>
* 7582: Fix broken FastSyncActionsTest
Signed-off-by: Matilda Clerke <[email protected]>
* 7582: spotless
Signed-off-by: Matilda Clerke <[email protected]>
* 7582: Fix issues after merge
Signed-off-by: Matilda Clerke <[email protected]>
* 7582: Put AbstractSyncTargetManager.waitForPeerAndThenSetSyncTarget code back separate thread to avoid infinite loop waiting for peers during acceptance tests
Signed-off-by: Matilda Clerke <[email protected]>
* 7582: Remove pivot block checks when waiting for peer in FastSyncActions
Signed-off-by: Matilda Clerke <[email protected]>
* 7582: Remove estimated chain height check from PivotBlockConfirmer when waiting for peers
Signed-off-by: Matilda Clerke <[email protected]>
* 7582: Fix broken PivotBlockRetrieverTest
Signed-off-by: Matilda Clerke <[email protected]>
* Use isSuitablePeer as peer selection criteria when waiting for a peer in AbstractRetryingPeerTask
Signed-off-by: Matilda Clerke <[email protected]>
* Remove MetricsSystem from PivotSelectorFromPeers
Signed-off-by: Matilda Clerke <[email protected]>
---------
Signed-off-by: Matilda Clerke <[email protected]>1 parent c9a9f76 commit 16de069
File tree
18 files changed
+120
-538
lines changed- besu/src/main/java/org/hyperledger/besu/controller
- consensus/qbft/src
- main/java/org/hyperledger/besu/consensus/qbft
- test/java/org/hyperledger/besu/consensus/qbft/sync
- ethereum/eth/src
- main/java/org/hyperledger/besu/ethereum/eth
- manager
- peertask
- task
- sync
- backwardsync
- fastsync
- test/java/org/hyperledger/besu/ethereum/eth
- manager/task
- sync/fastsync
18 files changed
+120
-538
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
926 | | - | |
927 | 926 | | |
928 | 927 | | |
929 | 928 | | |
| |||
953 | 952 | | |
954 | 953 | | |
955 | 954 | | |
956 | | - | |
| 955 | + | |
957 | 956 | | |
958 | 957 | | |
959 | 958 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
| |||
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | | - | |
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
72 | | - | |
| 69 | + | |
73 | 70 | | |
74 | 71 | | |
75 | 72 | | |
| |||
Lines changed: 4 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
| |||
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 81 | + | |
90 | 82 | | |
91 | 83 | | |
92 | 84 | | |
| |||
104 | 96 | | |
105 | 97 | | |
106 | 98 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 99 | + | |
114 | 100 | | |
115 | 101 | | |
116 | 102 | | |
| |||
126 | 112 | | |
127 | 113 | | |
128 | 114 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 115 | + | |
136 | 116 | | |
137 | 117 | | |
138 | 118 | | |
| |||
145 | 125 | | |
146 | 126 | | |
147 | 127 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 128 | + | |
155 | 129 | | |
156 | 130 | | |
157 | 131 | | |
| |||
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
477 | 511 | | |
478 | 512 | | |
479 | 513 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | | - | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
Lines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 0 additions & 83 deletions
This file was deleted.
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 119 | | |
125 | 120 | | |
126 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| |||
0 commit comments