fees: delete unused dummy field
- This commit deletes a dummy field that is "dummy" and unused.
This commit is contained in:
1 file changed
+2
-3
@@ -980,7 +980,6 @@ bool CBlockPolicyEstimator::Write(AutoFile& fileout) const
|
|||||||
try {
|
try {
|
||||||
LOCK(m_cs_fee_estimator);
|
LOCK(m_cs_fee_estimator);
|
||||||
fileout << CURRENT_FEES_FILE_VERSION;
|
fileout << CURRENT_FEES_FILE_VERSION;
|
||||||
fileout << int{0}; // Unused dummy field. Written files may contain any value in [0, 289900]
|
|
||||||
fileout << nBestSeenHeight;
|
fileout << nBestSeenHeight;
|
||||||
if (BlockSpan() > HistoricalBlockSpan()/2) {
|
if (BlockSpan() > HistoricalBlockSpan()/2) {
|
||||||
fileout << firstRecordedHeight << nBestSeenHeight;
|
fileout << firstRecordedHeight << nBestSeenHeight;
|
||||||
@@ -1004,8 +1003,8 @@ bool CBlockPolicyEstimator::Read(AutoFile& filein)
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
LOCK(m_cs_fee_estimator);
|
LOCK(m_cs_fee_estimator);
|
||||||
int nVersionRequired, dummy;
|
int nVersionRequired;
|
||||||
filein >> nVersionRequired >> dummy;
|
filein >> nVersionRequired;
|
||||||
if (nVersionRequired > CURRENT_FEES_FILE_VERSION) {
|
if (nVersionRequired > CURRENT_FEES_FILE_VERSION) {
|
||||||
throw std::runtime_error{strprintf("File version (%d) too high to be read.", nVersionRequired)};
|
throw std::runtime_error{strprintf("File version (%d) too high to be read.", nVersionRequired)};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user