diff --git a/src/validation.cpp b/src/validation.cpp index 458458d85d..9d7d1f1dc1 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4766,6 +4766,9 @@ bool DumpMempool() std::map mapDeltas; std::vector vinfo; + static Mutex dump_mutex; + LOCK(dump_mutex); + { LOCK(mempool.cs); for (const auto &i : mempool.mapDeltas) {