|
114 | 114 | #include <zmq/zmqrpc.h> |
115 | 115 | #endif |
116 | 116 |
|
117 | | -using kernel::DEFAULT_STOPAFTERBLOCKIMPORT; |
| 117 | +using node::DEFAULT_STOPAFTERBLOCKIMPORT; |
| 118 | +using node::DEFAULT_STOPATHEIGHT; |
118 | 119 | using kernel::DumpMempool; |
119 | 120 | using kernel::ValidationCacheSizes; |
120 | 121 |
|
@@ -566,7 +567,7 @@ void SetupServerArgs(ArgsManager& argsman) |
566 | 567 | argsman.AddArg("-checkpoints", strprintf("Enable rejection of any forks from the known historical chain until block %s (default: %u)", defaultChainParams->Checkpoints().GetHeight(), DEFAULT_CHECKPOINTS_ENABLED), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); |
567 | 568 | argsman.AddArg("-deprecatedrpc=<method>", "Allows deprecated RPC method(s) to be used", ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); |
568 | 569 | argsman.AddArg("-stopafterblockimport", strprintf("Stop running after importing blocks from disk (default: %u)", DEFAULT_STOPAFTERBLOCKIMPORT), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); |
569 | | - argsman.AddArg("-stopatheight", strprintf("Stop running after reaching the given height in the main chain (default: %u)", DEFAULT_STOPATHEIGHT), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); |
| 570 | + argsman.AddArg("-stopatheight", strprintf("Shut down the node after validating and attaching a block greater or equal to the given height to the chain. This option is mostly useful for benchmarking. (default: %u)", DEFAULT_STOPATHEIGHT), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); |
570 | 571 | argsman.AddArg("-limitancestorcount=<n>", strprintf("Do not accept transactions if number of in-mempool ancestors is <n> or more (default: %u)", DEFAULT_ANCESTOR_LIMIT), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); |
571 | 572 | argsman.AddArg("-limitancestorsize=<n>", strprintf("Do not accept transactions whose size with all in-mempool ancestors exceeds <n> kilobytes (default: %u)", DEFAULT_ANCESTOR_SIZE_LIMIT_KVB), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); |
572 | 573 | argsman.AddArg("-limitdescendantcount=<n>", strprintf("Do not accept transactions if any ancestor would have <n> or more in-mempool descendants (default: %u)", DEFAULT_DESCENDANT_LIMIT), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); |
@@ -1409,6 +1410,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) |
1409 | 1410 | // ********************************************************* Step 7: load block chain |
1410 | 1411 |
|
1411 | 1412 | node.notifications = std::make_unique<KernelNotifications>(node.exit_status); |
| 1413 | + ReadNotificationArgs(args, *node.notifications); |
1412 | 1414 | fReindex = args.GetBoolArg("-reindex", false); |
1413 | 1415 | bool fReindexChainState = args.GetBoolArg("-reindex-chainstate", false); |
1414 | 1416 | ChainstateManager::Options chainman_opts{ |
|
0 commit comments