@@ -59,7 +59,7 @@ use crate::cost_estimates::fee_scalar::ScalarFeeRateEstimator;
59
59
use crate :: cost_estimates:: metrics:: { CostMetric , ProportionalDotProduct , UnitMetric } ;
60
60
use crate :: cost_estimates:: { CostEstimator , FeeEstimator , PessimisticEstimator , UnitEstimator } ;
61
61
use crate :: net:: atlas:: AtlasConfig ;
62
- use crate :: net:: connection:: ConnectionOptions ;
62
+ use crate :: net:: connection:: { ConnectionOptions , DEFAULT_BLOCK_PROPOSAL_MAX_AGE_SECS } ;
63
63
use crate :: net:: { Neighbor , NeighborAddress , NeighborKey } ;
64
64
use crate :: types:: chainstate:: BurnchainHeaderHash ;
65
65
use crate :: types:: EpochList ;
@@ -2240,6 +2240,7 @@ pub struct ConnectionOptionsFile {
2240
2240
pub antientropy_retry : Option < u64 > ,
2241
2241
pub reject_blocks_pushed : Option < bool > ,
2242
2242
pub stackerdb_hint_replicas : Option < String > ,
2243
+ pub block_proposal_max_age_secs : Option < u64 > ,
2243
2244
}
2244
2245
2245
2246
impl ConnectionOptionsFile {
@@ -2388,6 +2389,9 @@ impl ConnectionOptionsFile {
2388
2389
. transpose ( ) ?
2389
2390
. map ( HashMap :: from_iter)
2390
2391
. unwrap_or ( default. stackerdb_hint_replicas ) ,
2392
+ block_proposal_max_age_secs : self
2393
+ . block_proposal_max_age_secs
2394
+ . unwrap_or ( DEFAULT_BLOCK_PROPOSAL_MAX_AGE_SECS ) ,
2391
2395
..default
2392
2396
} )
2393
2397
}
0 commit comments