Skip to content

Commit

Permalink
mempool: Log added for dumping mempool transactions to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
kevkevinpal committed Feb 7, 2024
1 parent 11b436a commit 8455b2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/kernel/mempool_persist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ bool DumpMempool(const CTxMemPool& pool, const fs::path& dump_path, FopenFn mock
}
file.SetXor(xor_key);

file << (uint64_t)vinfo.size();
uint64_t mempool_transactions_to_write(vinfo.size());
file << mempool_transactions_to_write;
LogInfo("Writing %u mempool transactions to disk %u mb ...\n", mempool_transactions_to_write, sizeof(vinfo));
for (const auto& i : vinfo) {
file << TX_WITH_WITNESS(*(i.tx));
file << int64_t{count_seconds(i.m_time)};
Expand Down

0 comments on commit 8455b2c

Please sign in to comment.