diff options
| author | Calvin Kim <[email protected]> | 2020-05-30 21:52:47 +0900 |
|---|---|---|
| committer | Calvin Kim <[email protected]> | 2020-06-07 17:50:22 +0900 |
| commit | 501e6ab4e778d8f4e95fdc807eeb8644df16203b (patch) | |
| tree | d62143ee1b4c872af37d43e9f435523bfafe3b71 /src/validation.cpp | |
| parent | Merge #19159: test: Make valgrind.supp work on aarch64 (diff) | |
| download | discoin-501e6ab4e778d8f4e95fdc807eeb8644df16203b.tar.xz discoin-501e6ab4e778d8f4e95fdc807eeb8644df16203b.zip | |
doc: Add documentation for 'checklevel' argument in 'verifychain' RPC call
Diffstat (limited to 'src/validation.cpp')
| -rw-r--r-- | src/validation.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 1e6fa0b39..c8eec1faa 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -77,6 +77,14 @@ static constexpr std::chrono::hours DATABASE_WRITE_INTERVAL{1}; static constexpr std::chrono::hours DATABASE_FLUSH_INTERVAL{24}; /** Maximum age of our tip for us to be considered current for fee estimation */ static constexpr std::chrono::hours MAX_FEE_ESTIMATION_TIP_AGE{3}; +const std::vector<std::string> CHECKLEVEL_DOC { + "level 0 reads the blocks from disk", + "level 1 verifies block validity", + "level 2 verifies undo data", + "level 3 checks disconnection of tip blocks", + "level 4 tries to reconnect the blocks", + "each level includes the checks of the previous levels", +}; bool CBlockIndexWorkComparator::operator()(const CBlockIndex *pa, const CBlockIndex *pb) const { // First sort by most total work, ... |