aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
AgeCommit message (Collapse)Author
2012-06-20Merge branch '0.4.x' into 0.5.xLuke Dashjr
Conflicts: src/main.cpp src/serialize.h
2012-06-18Don't overflow integer on 32-bit machines.Ricardo M. Correia
This was causing test_bitcoin to abort on a 32-bit system likely due to -ftrapv.
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-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-03-11Merge branch '0.5.0.x' into 0.5.xv0.5.3rc4v0.5.3Luke Dashjr
2012-03-11Merge branch '0.4.x' into 0.5.0.xLuke Dashjr
2012-03-11Resolves issue #922 - "wallet passphrase timeout of several years doesn't work"Gregory Maxwell
2^31 milliseconds is only about 25 days. Also clamps Sleep() to 10 years, because it currently sleeps for 0 seconds when the sleep time would cross 2^31 seconds since the epoch. Hopefully boost will be fixed by 2028.
2012-02-17Merge branch '0.5.0.x' into 0.5.xLuke Dashjr
2012-02-17Merge branch '0.4.x' into 0.5.0.xLuke Dashjr
2012-02-17Macros for manual critical sectionsPieter Wuille
2012-02-07Merge branch '0.5.0.x' into 0.5.xLuke Dashjr
Conflicts: src/qt/locale/bitcoin_ru.ts src/qt/locale/bitcoin_zh_TW.ts
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-01-23Merge branch '0.5.0.x' into 0.5.xLuke Dashjr
2012-01-23Replace tabs with four spaces to comply with coding standard in doc/coding.txtLars Rasmusson
2012-01-03Merge branch '0.5.0.x' into 0.5.xLuke Dashjr
2012-01-03Merge branch '0.4.x' into 0.5.0.xLuke Dashjr
Conflicts: src/util.cpp
2012-01-03Fix issue #659, and cleanup wallet/command-line argument handling a bitGavin Andresen
Conflicts: src/init.cpp src/util.cpp
2011-12-23Merge branch '0.5.0.x' into 0.5.xLuke Dashjr
2011-12-20Implement an mlock()'d string class for storing passphrasesDylan Noblesmith
SecureString is identical to std::string except with secure_allocator substituting for std::allocator. This makes casting between them impossible, so converting between the two at API boundaries requires calling ::c_str() for now.
2011-11-26Implement an mlock()'d string class for storing passphrasesDylan Noblesmith
SecureString is identical to std::string except with secure_allocator substituting for std::allocator. This makes casting between them impossible, so converting between the two at API boundaries requires calling ::c_str() for now.
2011-11-02Cleaned up the critical section macros.Clark Gaebel
2011-10-07Fix for 64bit buildVictor Leschuk
2011-10-07Fix build on windows and macGavin Andresen
Replaced all occurrences of #if* __WXMSW__ with WIN32, and all occurrences of __WXMAC_OSX__ with MAC_OSX, and made sure those are defined appropriately in the makefile and bitcoin-qt.pro.
2011-10-06Fix for 64bit buildVictor Leschuk
2011-09-30simpler ByteReverseNils Schneider
2011-09-30remove cryptopp dependency, add simple unittest for SHA256Transform()Nils Schneider
2011-09-30Merge pull request #524 from sipa/signandverifGavin Andresen
Sign and verify message with bitcoin address
2011-09-29Add assertion size>0 to MedianFilterWladimir J. van der Laan
2011-09-28Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
Conflicts: .gitignore (used upstream version) bitcoin-qt.pro
2011-09-28use median filter for peer-reported reported number of blocksWladimir J. van der Laan
- fixes problem that one misconfigured or malicious node can mess up progress bar - implementation in src/util.h - testcase in src/test/util_tests.cpp
2011-09-27Inline base64 encoder/decoderPieter Wuille
This replaces the openssl-based base64 encoder and decoder with a more efficient internal one. Tested against the rfc4648 test vectors. Decoder is based on JoelKatz' version.
2011-09-27Faster Base64 decoder.JoelKatz
2011-09-26Remove wxWidgetsGavin Andresen
Makefiles now build bitcoind only. qmake/make in top-level directory is used to build Bitcoin QT Deleted almost all #ifdef GUI from the code (left one possibly controversial one) Deleted xpm/ files.
2011-09-26Merge pull request #517 from gavinandresen/DoSpreventionGavin Andresen
Denial-of-service prevention
2011-09-21SetMockTime() for cleaner unit testingGavin Andresen
2011-09-06Revert "Define MSG_NOSIGNAL to 0 on platforms where it is unavailable."Jeff Garzik
This reverts commit 6a0296791d5e81102a12a3142f5be25cb40f9825. The change breaks build on Fedora Linux.
2011-09-06Define MSG_NOSIGNAL to 0 on platforms where it is unavailable.Venkatesh Srinivas
Enables building bitcoind on OpenBSD.
2011-09-02Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
Conflicts: src/main.cpp
2011-08-22Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
2011-08-19Move func 'REF' from util.h to serialize.hGiel van Schijndel
util.h doesn't use REF, serialize.h does, creating a dependency of serialize.h on util.h, but util.h already depends on serialize.h. To resolve this circular dependency the function 'REF' has now been moved closer to one of its two points of use. Signed-off-by: Giel van Schijndel <me@mortis.eu>
2011-08-17Compile with DEBUG_LOCKORDER to detect inconsistent lock orderings that can ↵Gavin Andresen
cause deadlocks
2011-08-16Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
2011-08-09Unify copyright notices.Matt Corallo
To a variation on: // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2011 The Bitcoin developers
2011-08-06Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
2011-07-25Fix UNIX-specific thread handle leak.JoelKatz
2011-07-15Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan
2011-07-13fix warnings: expression result unused [-Wunused-value]Giel van Schijndel
In the assert()s take advantage of the fact that string constants ("string") are effectively of type 'const char []', which when used in an expression yield a non-NULL pointer. An assertion that should always fail can thus be formulated as: assert(!"fail); An assertion where a text message should be added to the expression can be written as such: assert("message" && expression); Signed-off-by: Giel van Schijndel <me@mortis.eu>