File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1237,7 +1237,7 @@ impl AsyncChainState {
1237
1237
///
1238
1238
/// This function finds a suitable historical snapshot that:
1239
1239
/// 1. Is not older than when the space was last updated.
1240
- /// 2. Falls within [ROOT_ANCHORS_COUNT] range (for proof verification)
1240
+ /// 2. Falls within [ROOT_ANCHORS_COUNT] range
1241
1241
/// 3. Skips the oldest trust anchors to prevent the proof from becoming stale too quickly.
1242
1242
///
1243
1243
/// Parameters:
@@ -1256,7 +1256,7 @@ impl AsyncChainState {
1256
1256
* COMMIT_BLOCK_INTERVAL ;
1257
1257
1258
1258
// Calculate the oldest allowed snapshot while maintaining safety margin
1259
- let lookback_window = USABLE_ANCHORS * COMMIT_BLOCK_INTERVAL ;
1259
+ let lookback_window = ( USABLE_ANCHORS - 1 ) * COMMIT_BLOCK_INTERVAL ;
1260
1260
let oldest_allowed_snapshot = current_tip_aligned. saturating_sub ( lookback_window) ;
1261
1261
1262
1262
// Choose the most recent of last update or oldest allowed snapshot
@@ -1294,6 +1294,7 @@ impl AsyncChainState {
1294
1294
} ;
1295
1295
1296
1296
let root = proof. compute_root ( ) ?. to_vec ( ) ;
1297
+ info ! ( "Proving with root anchor {}" , hex:: encode( root. as_slice( ) ) ) ;
1297
1298
let mut buf = vec ! [ 0u8 ; 4096 ] ;
1298
1299
let offset = proof. write_to_slice ( & mut buf) ?;
1299
1300
buf. truncate ( offset) ;
You can’t perform that action at this time.
0 commit comments