mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Move common package version code to init/common
This commit is contained in:
parent
5bed2ab42c
commit
615965cfd1
3 changed files with 14 additions and 8 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include <config/bitcoin-config.h>
|
||||
#endif
|
||||
|
||||
#include <clientversion.h>
|
||||
#include <compat/sanity.h>
|
||||
#include <crypto/sha256.h>
|
||||
#include <key.h>
|
||||
|
|
@ -152,4 +153,15 @@ bool StartLogging(const ArgsManager& args)
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
void LogPackageVersion()
|
||||
{
|
||||
std::string version_string = FormatFullVersion();
|
||||
#ifdef DEBUG
|
||||
version_string += " (debug build)";
|
||||
#else
|
||||
version_string += " (release build)";
|
||||
#endif
|
||||
LogPrintf(PACKAGE_NAME " version %s\n", version_string);
|
||||
}
|
||||
} // namespace init
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue