refactor: Use uint64_t over size_t for serialize corruption check in fees.dat

This commit is contained in:
MarcoFalke 2025-12-19 08:13:41 +01:00
parent 516ae5ede4
commit fa1d17d56c
No known key found for this signature in database

View File

@ -423,7 +423,7 @@ void TxConfirmStats::Read(AutoFile& filein, size_t numBuckets)
// Read data file and do some very basic sanity checking
// buckets and bucketMap are not updated yet, so don't access them
// If there is a read failure, we'll just discard this entire object anyway
size_t maxConfirms, maxPeriods;
uint64_t maxConfirms, maxPeriods;
// The current version will store the decay with each individual TxConfirmStats and also keep a scale factor
filein >> Using<EncodedDoubleFormatter>(decay);