wallet: use FormatFullVersion instead of CLIENT_BUILD in rpcdump

This commit is contained in:
fanquake
2021-08-16 14:10:34 +08:00
parent 3facf0a8ae
commit 14b4802405
3 changed files with 3 additions and 4 deletions

View File

@ -42,8 +42,6 @@ const std::string CLIENT_NAME("Satoshi");
#endif
#endif
const std::string CLIENT_BUILD(BUILD_DESC BUILD_SUFFIX);
static std::string FormatVersion(int nVersion)
{
return strprintf("%d.%d.%d", nVersion / 10000, (nVersion / 100) % 100, nVersion % 100);
@ -51,6 +49,7 @@ static std::string FormatVersion(int nVersion)
std::string FormatFullVersion()
{
static const std::string CLIENT_BUILD(BUILD_DESC BUILD_SUFFIX);
return CLIENT_BUILD;
}