Skip to content

Commit

Permalink
Merge #482: Remove git created macros to make builds deterministic
Browse files Browse the repository at this point in the history
4b42303 Remove git created macros to make builds deterministic (dexX7)
  • Loading branch information
dexX7 committed Jun 27, 2017
2 parents 88d32f1 + 4b42303 commit cad404d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 40 deletions.
1 change: 0 additions & 1 deletion src/omnicore/omnicore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2117,7 +2117,6 @@ int mastercore_init()

PrintToLog("\nInitializing Omni Core v%s [%s]\n", OmniCoreVersion(), Params().NetworkIDString());
PrintToLog("Startup time: %s\n", DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime()));
PrintToLog("Build date: %s, based on commit: %s\n", BuildDate(), BuildCommit());

InitDebugLogLevels();
ShrinkDebugLog();
Expand Down
4 changes: 1 addition & 3 deletions src/omnicore/rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,6 @@ UniValue omni_getinfo(const UniValue& params, bool fHelp)
" \"omnicoreversion\" : \"x.x.x.x-xxx\", (string) client version\n"
" \"mastercoreversion\" : \"x.x.x.x-xxx\", (string) client version (DEPRECIATED)\n"
" \"bitcoincoreversion\" : \"x.x.x\", (string) Bitcoin Core version\n"
" \"commitinfo\" : \"xxxxxxx\", (string) build commit identifier\n"
" \"block\" : nnnnnn, (number) index of the last processed block\n"
" \"blocktime\" : nnnnnnnnnn, (number) timestamp of the last processed block\n"
" \"blocktransactions\" : nnnn, (number) Omni transactions found in the last processed block\n"
Expand All @@ -1859,12 +1858,11 @@ UniValue omni_getinfo(const UniValue& params, bool fHelp)

UniValue infoResponse(UniValue::VOBJ);

// provide the mastercore and bitcoin version and if available commit id
// provide the mastercore and bitcoin version
infoResponse.push_back(Pair("omnicoreversion_int", OMNICORE_VERSION));
infoResponse.push_back(Pair("omnicoreversion", OmniCoreVersion()));
infoResponse.push_back(Pair("mastercoreversion", OmniCoreVersion()));
infoResponse.push_back(Pair("bitcoincoreversion", BitcoinCoreVersion()));
infoResponse.push_back(Pair("commitinfo", BuildCommit()));

// provide the current block details
int block = GetHeight();
Expand Down
30 changes: 0 additions & 30 deletions src/omnicore/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@
# include "build.h"
#endif

#ifndef COMMIT_ID
# ifdef GIT_ARCHIVE
# define COMMIT_ID "$Format:%h$"
# elif defined(BUILD_SUFFIX)
# define COMMIT_ID STRINGIZE(BUILD_SUFFIX)
# else
# define COMMIT_ID ""
# endif
#endif

#ifndef BUILD_DATE
# ifdef GIT_COMMIT_DATE
# define BUILD_DATE GIT_COMMIT_DATE
# else
# define BUILD_DATE __DATE__ ", " __TIME__
# endif
#endif

#ifdef OMNICORE_VERSION_STATUS
# define OMNICORE_VERSION_SUFFIX STRINGIZE(OMNICORE_VERSION_STATUS)
#else
Expand Down Expand Up @@ -66,15 +48,3 @@ const std::string BitcoinCoreVersion()
CLIENT_VERSION_REVISION);
}
}

//! Returns build date
const std::string BuildDate()
{
return std::string(BUILD_DATE);
}

//! Returns commit identifier, if available
const std::string BuildCommit()
{
return std::string(COMMIT_ID);
}
6 changes: 0 additions & 6 deletions src/omnicore/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ const std::string OmniCoreVersion();
//! Returns formatted Bitcoin Core version, e.g. "0.10", "0.9.3"
const std::string BitcoinCoreVersion();

//! Returns build date
const std::string BuildDate();

//! Returns commit identifier, if available
const std::string BuildCommit();


#endif // WINDRES_PREPROC

Expand Down

0 comments on commit cad404d

Please sign in to comment.