diff options
| author | Jonas Schnelli <[email protected]> | 2020-05-19 15:13:50 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2020-08-12 16:44:09 +0200 |
| commit | d42cb790687788c78aa2f0c1988238ab52050782 (patch) | |
| tree | dd67b88ba93f92c03d9cd7c2b1dbb010b9fcb173 /src/init.h | |
| parent | Add BlockAndHeaderTipInfo to the node interface/appInit (diff) | |
| download | discoin-d42cb790687788c78aa2f0c1988238ab52050782.tar.xz discoin-d42cb790687788c78aa2f0c1988238ab52050782.zip | |
Optionally populate BlockAndHeaderTipInfo during AppInitMain
Diffstat (limited to 'src/init.h')
| -rw-r--r-- | src/init.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/init.h b/src/init.h index 33fe96e8e..20008ba5b 100644 --- a/src/init.h +++ b/src/init.h @@ -11,6 +11,9 @@ #include <util/system.h> struct NodeContext; +namespace interfaces { +struct BlockAndHeaderTipInfo; +} namespace boost { class thread_group; } // namespace boost @@ -54,7 +57,7 @@ bool AppInitLockDataDirectory(); * @note This should only be done after daemonization. Call Shutdown() if this function fails. * @pre Parameters should be parsed and config file should be read, AppInitLockDataDirectory should have been called. */ -bool AppInitMain(const util::Ref& context, NodeContext& node); +bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info = nullptr); /** * Register all arguments with the ArgsManager |