Page MenuHomePhabricator

Add log for clearing the mempool during reorg
ClosedPublic

Authored by schancel on May 17 2018, 02:47.

Details

Summary

Add a trace level log for when the mempool is cleared by a reorg.

Test Plan
make check && ./test/functional/test_runner.py

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

deadalnix requested changes to this revision.May 17 2018, 04:05
deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
src/validation.cpp
2606 ↗(On Diff #3903)

::ALL is not meant to be a logging category, but mask representing all logging categories.

This revision now requires changes to proceed.May 17 2018, 04:05
src/validation.cpp
2606 ↗(On Diff #3903)

What do we use for trace level logs?

jasonbcox added inline comments.
src/validation.cpp
2606 ↗(On Diff #3903)

@deadalnix How about we make this more explicit? https://reviews.bitcoinabc.org/D1431 I've fallen into the same trap where I tried to log on ALL. Not that it was explicitly a compile or runtime issue, but it took me a while to realize that what I was doing was conceptually incorrect.

This revision is now accepted and ready to land.Jun 4 2018, 23:45
This revision was automatically updated to reflect the committed changes.