aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
AgeCommit message (Collapse)Author
2012-10-09Merge branch '0.5.x' into 0.6.0.xLuke Dashjr
Conflicts: src/qt/transactiondesc.cpp
2012-10-09Merge branch '0.4.x' into 0.5.xLuke Dashjr
Conflicts: src/bitcoinrpc.cpp src/init.cpp
2012-10-09Avoid crashes at shutdown due to printf() in global destructors.Gavin Andresen
2012-08-12Merge branch '0.5.x' into 0.6.0.xLuke Dashjr
Conflicts: doc/unit-tests.txt
2012-08-12Merge branch '0.4.x' into 0.5.xLuke Dashjr
2012-08-12Bugfix: Correct English grammar regarding "'s"Luke Dashjr
2012-07-22Merge branch '0.5.x' into 0.6.0.xLuke Dashjr
2012-07-22Merge branch '0.4.x' into 0.5.xLuke Dashjr
2012-07-22fix OpenSSL not written as proper noun in some commentsPhilip Kaufmann
2012-07-05Fix a few typosfanquake
2012-07-05Fix a few typosfanquake
2012-07-05Fix a few typosfanquake
2012-06-14Use std::numeric_limits<> for typesafe INT_MAX/etcGavin Andresen
(this fixes a Mac OS X gitian build error for 0.5.x)
2012-06-14Use std::numeric_limits<> for typesafe INT_MAX/etcGavin Andresen
(this fixes a Mac OS X gitian build error for 0.5.x)
2012-06-14Merge branch '0.5.x' into 0.6.0.xLuke Dashjr
Conflicts: src/main.h src/net.cpp src/serialize.h
2012-06-14Merge branch '0.4.x' into 0.5.xLuke Dashjr
Conflicts: doc/release-process.txt src/serialize.h
2012-06-06Serialize access to debug.log streamMichael Hendricks
Acquire an exclusive, advisory lock before sending output to debug.log and release it when we're done. This should avoid output from multiple threads being interspersed in the log file. We can't use CRITICAL_SECTION machinery for this because the debug log is written during startup and shutdown when that machinery is not available. (Thanks to Gavin for pointing out the CRITICAL_SECTION problems based on his earlier work in this area)
2012-05-20Update License in File HeadersFordy
I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
2012-05-20Update License in File HeadersFordy
I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
2012-05-20Update License in File HeadersFordy
I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
2012-05-04Merge branch '0.5.x' into 0.6.0.xLuke Dashjr
Conflicts: src/main.cpp src/serialize.h
2012-05-04Merge branch '0.4.x' into 0.5.xLuke Dashjr
2012-05-01fix compiler warning "suggest parentheses around assignment used as truthPhilip Kaufmann
value [-Wparentheses]" in util.cpp
2012-04-22Merge branch '0.4.x' into 0.5.xLuke Dashjr
Conflicts: src/main.cpp
2012-04-22Fix bugs on 'unsigned char' platforms.Dwayne C. Litzenberger
In ISO C++, the signedness of 'char' is undefined. On some platforms (e.g. ARM), 'char' is an unsigned type, but some of the code relies on 'char' being signed (as it is on x86). This is indicated by compiler warnings like this: bignum.h: In constructor 'CBigNum::CBigNum(char)': bignum.h:81:59: warning: comparison is always true due to limited range of data type [-Wtype-limits] util.cpp: In function 'bool IsHex(const string&)': util.cpp:427:28: warning: comparison is always false due to limited range of data type [-Wtype-limits] In particular, IsHex erroneously returned true regardless of the input characters, as long as the length of the string was a positive multiple of 2. Note: For testing, it's possible using GCC to force char to be unsigned by adding the -funsigned-char parameter to xCXXFLAGS.
2012-04-22Fix bugs on 'unsigned char' platforms.Dwayne C. Litzenberger
In ISO C++, the signedness of 'char' is undefined. On some platforms (e.g. ARM), 'char' is an unsigned type, but some of the code relies on 'char' being signed (as it is on x86). This is indicated by compiler warnings like this: bignum.h: In constructor 'CBigNum::CBigNum(char)': bignum.h:81:59: warning: comparison is always true due to limited range of data type [-Wtype-limits] util.cpp: In function 'bool IsHex(const string&)': util.cpp:427:28: warning: comparison is always false due to limited range of data type [-Wtype-limits] In particular, IsHex erroneously returned true regardless of the input characters, as long as the length of the string was a positive multiple of 2. Note: For testing, it's possible using GCC to force char to be unsigned by adding the -funsigned-char parameter to xCXXFLAGS.
2012-04-22Fix phexdigits[255] is undefined.Dwayne C. Litzenberger
2012-04-22Fix phexdigits[255] is undefined.Dwayne C. Litzenberger
2012-04-15Merge branch '0.5.x' into 0.6.0.xLuke Dashjr
Conflicts: src/qt/bitcoin.cpp src/qt/bitcoingui.cpp src/qt/guiutil.cpp src/qt/guiutil.h src/qt/sendcoinsdialog.cpp src/qt/sendcoinsdialog.h src/util.cpp
2012-04-15Merge branch '0.4.x' into 0.5.0.xLuke Dashjr
Conflicts: src/keystore.h
2012-04-15fix warnings: array subscript is of type 'char' [-Wchar-subscripts]Wladimir J. van der Laan
2012-04-15work around issue in boost::program_options that prevents from compiling in ↵Wladimir J. van der Laan
clang
2012-03-25remove unused functions from util.h/util.cppWladimir J. van der Laan
2012-03-03Merge branch '0.4.x' into 0.5.0.xLuke Dashjr
2012-03-03Bugfix: Fix possible buffer overflow (#901)Luke Dashjr
Upstream commit: 21ae37d (partial)
2012-03-03Bugfix: Check return value of SHGetSpecialFolderPath in MyGetSpecialFolderPathLuke Dashjr
Upstream commit: 21ae37d (partial)
2012-02-28Merge branch '2012_02_getspecialfolderpath_overflow' of ↵Gavin Andresen
https://github.com/laanwj/bitcoin
2012-02-26Reworked QT settingsGavin Andresen
2012-02-26Simplify MyGetSpecialFolderPath and fix possible buffer overflow (#901)Wladimir J. van der Laan
2012-02-16Fix #846. Allow negative options such as "nolisten=1" in bitcoin.conf as ↵Chris Moore
well as on the command line.
2012-02-07Merge branch '0.4.x' into 0.5.0.xLuke Dashjr
Conflicts: src/bitcoinrpc.cpp
2012-02-07Update copyrights to 2012 for files modified this yearLuke Dashjr
2012-02-07Update all copyrights to 2012Gavin Andresen
2012-02-07New GetArg features: allow --, and booleans can be -foo or -nofooGavin Andresen
2012-02-07Unit tests for the GetArg() methodsGavin Andresen
2012-02-06-bip16 option (default: 1) to support / not support BIP 16. And bumped ↵Gavin Andresen
default BIP16 switchover date from Feb 15 to Mar 1
2012-01-21Add DEBUG_LOCKCONTENTION, to warn each time a thread waits to lock.Matt Corallo
If compiled with -DDEBUG_LOCKCONTENTION, Bitcoin will print to debug.log each time a thread has to wait for a lock to continue.
2012-01-13Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16).Gavin Andresen
2012-01-06Network stack refactorPieter Wuille
This introduces CNetAddr and CService, respectively wrapping an (IPv6) IP address and an IP+port combination. This functionality used to be part of CAddress, which also contains network flags and connection attempt information. These extra fields are however not always necessary. These classes, along with logic for creating connections and doing name lookups, are moved to netbase.{h,cpp}, which does not depend on headers.h. Furthermore, CNetAddr is mostly IPv6-ready, though IPv6 functionality is not yet enabled for the application itself.
2012-01-03Merge branch '0.4.x' into 0.5.0.xLuke Dashjr
Conflicts: src/util.cpp