@ -411,7 +411,6 @@ void TxConfirmStats::Read(CAutoFile& filein, int nFileVersion, size_t numBuckets
size_t maxConfirms , maxPeriods ;
// The current version will store the decay with each individual TxConfirmStats and also keep a scale factor
if ( nFileVersion > = 149900 ) {
filein > > decay ;
if ( decay < = 0 | | decay > = 1 ) {
throw std : : runtime_error ( " Corrupt estimates file. Decay must be between 0 and 1 (non-inclusive) " ) ;
@ -420,7 +419,6 @@ void TxConfirmStats::Read(CAutoFile& filein, int nFileVersion, size_t numBuckets
if ( scale = = 0 ) {
throw std : : runtime_error ( " Corrupt estimates file. Scale must be non-zero " ) ;
}
}
filein > > avg ;
if ( avg . size ( ) ! = numBuckets ) {
@ -443,7 +441,6 @@ void TxConfirmStats::Read(CAutoFile& filein, int nFileVersion, size_t numBuckets
}
}
if ( nFileVersion > = 149900 ) {
filein > > failAvg ;
if ( maxPeriods ! = failAvg . size ( ) ) {
throw std : : runtime_error ( " Corrupt estimates file. Mismatch in confirms tracked for failures " ) ;
@ -453,12 +450,6 @@ void TxConfirmStats::Read(CAutoFile& filein, int nFileVersion, size_t numBuckets
throw std : : runtime_error ( " Corrupt estimates file. Mismatch in one of failure average bucket counts " ) ;
}
}
} else {
failAvg . resize ( confAvg . size ( ) ) ;
for ( unsigned int i = 0 ; i < failAvg . size ( ) ; i + + ) {
failAvg [ i ] . resize ( numBuckets ) ;
}
}
// Resize the current block variables which aren't stored in the data file
// to match the number of confirms and buckets