@@ -44,7 +44,7 @@ bool LoadMempool(CTxMemPool& pool, const fs::path& load_path, Chainstate& active
44
44
45
45
AutoFile file{opts.mockable_fopen_function (load_path, " rb" )};
46
46
if (file.IsNull ()) {
47
- LogPrintf (" Failed to open mempool file from disk . Continuing anyway.\n " );
47
+ LogInfo (" Failed to open mempool file. Continuing anyway.\n " );
48
48
return false ;
49
49
}
50
50
@@ -70,12 +70,12 @@ bool LoadMempool(CTxMemPool& pool, const fs::path& load_path, Chainstate& active
70
70
uint64_t total_txns_to_load;
71
71
file >> total_txns_to_load;
72
72
uint64_t txns_tried = 0 ;
73
- LogInfo (" Loading %u mempool transactions from disk ...\n " , total_txns_to_load);
73
+ LogInfo (" Loading %u mempool transactions from file ...\n " , total_txns_to_load);
74
74
int next_tenth_to_report = 0 ;
75
75
while (txns_tried < total_txns_to_load) {
76
76
const int percentage_done (100.0 * txns_tried / total_txns_to_load);
77
77
if (next_tenth_to_report < percentage_done / 10 ) {
78
- LogInfo (" Progress loading mempool transactions from disk : %d%% (tried %u, %u remaining)\n " ,
78
+ LogInfo (" Progress loading mempool transactions from file : %d%% (tried %u, %u remaining)\n " ,
79
79
percentage_done, txns_tried, total_txns_to_load - txns_tried);
80
80
next_tenth_to_report = percentage_done / 10 ;
81
81
}
@@ -138,11 +138,11 @@ bool LoadMempool(CTxMemPool& pool, const fs::path& load_path, Chainstate& active
138
138
}
139
139
}
140
140
} catch (const std::exception& e) {
141
- LogPrintf (" Failed to deserialize mempool data on disk : %s. Continuing anyway.\n " , e.what ());
141
+ LogInfo (" Failed to deserialize mempool data on file : %s. Continuing anyway.\n " , e.what ());
142
142
return false ;
143
143
}
144
144
145
- LogPrintf (" Imported mempool transactions from disk : %i succeeded, %i failed, %i expired, %i already there, %i waiting for initial broadcast\n " , count, failed, expired, already_there, unbroadcast);
145
+ LogInfo (" Imported mempool transactions from file : %i succeeded, %i failed, %i expired, %i already there, %i waiting for initial broadcast\n " , count, failed, expired, already_there, unbroadcast);
146
146
return true ;
147
147
}
148
148
@@ -186,7 +186,7 @@ bool DumpMempool(const CTxMemPool& pool, const fs::path& dump_path, FopenFn mock
186
186
187
187
uint64_t mempool_transactions_to_write (vinfo.size ());
188
188
file << mempool_transactions_to_write;
189
- LogInfo (" Writing %u mempool transactions to disk ...\n " , mempool_transactions_to_write);
189
+ LogInfo (" Writing %u mempool transactions to file ...\n " , mempool_transactions_to_write);
190
190
for (const auto & i : vinfo) {
191
191
file << TX_WITH_WITNESS (*(i.tx ));
192
192
file << int64_t {count_seconds (i.m_time )};
@@ -196,7 +196,7 @@ bool DumpMempool(const CTxMemPool& pool, const fs::path& dump_path, FopenFn mock
196
196
197
197
file << mapDeltas;
198
198
199
- LogPrintf (" Writing %d unbroadcast transactions to disk .\n " , unbroadcast_txids.size ());
199
+ LogInfo (" Writing %d unbroadcast transactions to file .\n " , unbroadcast_txids.size ());
200
200
file << unbroadcast_txids;
201
201
202
202
if (!skip_file_commit && !FileCommit (file.Get ()))
@@ -212,7 +212,7 @@ bool DumpMempool(const CTxMemPool& pool, const fs::path& dump_path, FopenFn mock
212
212
Ticks<SecondsDouble>(last - mid),
213
213
fs::file_size (dump_path));
214
214
} catch (const std::exception& e) {
215
- LogPrintf (" Failed to dump mempool: %s. Continuing anyway.\n " , e.what ());
215
+ LogInfo (" Failed to dump mempool: %s. Continuing anyway.\n " , e.what ());
216
216
return false ;
217
217
}
218
218
return true ;
0 commit comments