diff --git a/src/Makefile.am b/src/Makefile.am index 4975634f1e..f1c4f11f8c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -280,6 +280,7 @@ BITCOIN_CORE_H = \ script/solver.h \ shutdown.h \ signet.h \ + stats/stats.h \ streams.h \ support/allocators/pool.h \ support/allocators/secure.h \ @@ -466,6 +467,8 @@ libbitcoin_node_a_SOURCES = \ script/sigcache.cpp \ shutdown.cpp \ signet.cpp \ + stats/rpc_stats.cpp \ + stats/stats.cpp \ timedata.cpp \ torcontrol.cpp \ txdb.cpp \ diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 835197612a..387220ccb3 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -169,6 +169,9 @@ BITCOIN_TESTS =\ test/versionbits_tests.cpp \ test/xoroshiro128plusplus_tests.cpp +BITCOIN_TESTS += \ + stats/test/stats_tests.cpp + if ENABLE_WALLET BITCOIN_TESTS += \ wallet/test/feebumper_tests.cpp \ diff --git a/src/common/args.cpp b/src/common/args.cpp index 9f6fe0f94f..e1a6fc40c6 100644 --- a/src/common/args.cpp +++ b/src/common/args.cpp @@ -652,6 +652,9 @@ std::string ArgsManager::GetHelpMessage() const case OptionsCategory::REGISTER_COMMANDS: usage += HelpMessageGroup("Register Commands:"); break; + case OptionsCategory::STATS: + usage += HelpMessageGroup("Statistic options:"); + break; default: break; } diff --git a/src/common/args.h b/src/common/args.h index 54ce21bcd2..200d3d4c08 100644 --- a/src/common/args.h +++ b/src/common/args.h @@ -63,6 +63,7 @@ enum class OptionsCategory { GUI, COMMANDS, REGISTER_COMMANDS, + STATS, HIDDEN // Always the last option to avoid printing these in the help }; diff --git a/src/init.cpp b/src/init.cpp index 7ca58d2588..aefcb32e61 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -67,6 +67,7 @@ #include #include