(2 . 6)(2 . 7)
104 // Copyright (c) 2009-2012 The Bitcoin developers
105 // Distributed under the MIT/X11 software license, see the accompanying
106 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
107 #include "knobs.h"
108 #include "headers.h"
109 #include "strlcpy.h"
110 #include <boost/program_options/detail/config_file.hpp>
(32 . 7)(33 . 7)
112 bool fNoListen = false;
113 bool fLogTimestamps = false;
114
115
116 std::string CLIENT_NAME(DEFAULT_CLIENT_NAME);
117
118
119 // Workaround for "multiple definition of `_tls_used'"
(889 . 14)(890 . 18)
121
122 string FormatFullVersion()
123 {
124 string s = FormatVersion(VERSION) + pszSubVer;
125 if (VERSION_IS_BETA) {
126 s += "-";
127 s += _("beta");
128 }
129 string s = FormatVersion(VERSION);
130 return s;
131 }
132
133 std::string FormatSubVersion(const std::string& name, int nClientVersion)
134 {
135 std::ostringstream ss;
136 ss << "/";
137 ss << name << ":" << FormatVersion(nClientVersion);
138 ss << "/";
139 return ss.str();
140 }
141
142
143