File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
stackslib/src/net/stackerdb Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ pub struct StackerDBSyncResult {
151
151
dead : HashSet < NeighborKey > ,
152
152
/// neighbors that misbehaved while syncing
153
153
broken : HashSet < NeighborKey > ,
154
+ /// neighbors that have stale views, but are otherwise online
155
+ pub ( crate ) stale : HashSet < NeighborAddress > ,
154
156
}
155
157
156
158
/// Settings for the Stacker DB
@@ -262,6 +264,8 @@ pub struct StackerDBSync<NC: NeighborComms> {
262
264
/// whether or not we should immediately re-fetch chunks because we learned about new chunks
263
265
/// from our peers when they replied to our chunk-pushes with new inventory state
264
266
need_resync : bool ,
267
+ /// Track stale neighbors
268
+ pub ( crate ) stale_neighbors : HashSet < NeighborAddress > ,
265
269
}
266
270
267
271
impl StackerDBSyncResult {
@@ -274,6 +278,7 @@ impl StackerDBSyncResult {
274
278
chunks_to_store : vec ! [ chunk. chunk_data] ,
275
279
dead : HashSet :: new ( ) ,
276
280
broken : HashSet :: new ( ) ,
281
+ stale : HashSet :: new ( ) ,
277
282
}
278
283
}
279
284
}
You can’t perform that action at this time.
0 commit comments