aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | Make GetDataDir return absolute pathsPieter Wuille2012-04-224-7/+12
|/ / / / / / /
* | | | | | | Merge pull request #1124 from sipa/rpcobj3Pieter Wuille2012-04-213-106/+130
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | extension of #1103: encapsulate mapCommands in CRPCTable
| * | | | | | Expose CRPCTable via bitcoinrpc.h for testingPieter Wuille2012-04-213-33/+41
| | | | | | |
| * | | | | | Encapsulate mapCommands in class CRPCTablePieter Wuille2012-04-211-27/+38
| | | | | | |
| * | | | | | Encapsulate RPC command dispatch in an array of CRPCCommand'sJeff Garzik2012-04-211-84/+89
| | | | | | |
* | | | | | | Merge pull request #1131 from laanwj/2012_04_hexstrPieter Wuille2012-04-212-9/+25
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Integrate @JoelKatz's optimized ToHex (#562) into current HexStr function
| * | | | | | | Integrate @JoelKatz's optimized ToHex (#562) into current HexStr functionWladimir J. van der Laan2012-04-212-9/+25
| |/ / / / / /
* | | | | | | Merge pull request #1129 from laanwj/2012_04_opcodesPieter Wuille2012-04-214-129/+121
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Add explicit numeric constant value for all opcodes
| * | | | | | | Remove no-longer used UI hints in bitcoin coreWladimir J. van der Laan2012-04-212-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Qt UI has its own associated structures for temporary transaction state / cache.
| * | | | | | | change type of various bare chars to bool that are only used as bool (and ↵Wladimir J. van der Laan2012-04-212-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | never serialized)
| * | | | | | | Add explicit numeric constant value for all opcodesWladimir J. van der Laan2012-04-211-115/+115
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Easier for debugging (what opcode was 0x... again?) - Clarifies that the opcodes are set in stone in the protocol, and signals that it is impossible to insert opcodes in between.
* | | | | | | Data-drive script evaluation unit tests.Gavin Andresen2012-04-213-0/+253
| | | | | | |
* | | | | | | Merge pull request #1126 from drizztbsd/masterPieter Wuille2012-04-212-0/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Fix build with gcc 4.7
| * | | | | | Add missing includes. (Fix bulding under GCC 4.7)Timothy Redaelli2012-04-202-0/+2
| | | | | | |
* | | | | | | Merge pull request #1122 from dlitz/unsigned-char-fixWladimir J. van der Laan2012-04-204-10/+13
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Unsigned char fix & fix undefined phexdigits[255]
| * | | | | | Fix bugs on 'unsigned char' platforms.Dwayne C. Litzenberger2012-04-184-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | Fix phexdigits[255] is undefined.Dwayne C. Litzenberger2012-04-181-1/+1
| | |_|/ / / | |/| | | |
* / | | | | Added ability to respond to signals during Block Loading stage.R E Broadley2012-04-182-2/+14
|/ / / / /
* | | | | Add missing breaks in optionmodel's switch casePieter Wuille2012-04-171-0/+2
| | | | |
* | | | | Merge pull request #1114 from sipa/lesssyncPieter Wuille2012-04-171-0/+2
|\ \ \ \ \ | | | | | | | | | | | | Reduce sync frequency for blkindex.dat
| * | | | | Reduce sync frequency for blkindex.datPieter Wuille2012-04-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since auto-remove-db-logs was enabled, each time a CTxDB was closed outside of the initial download window, it causes a checkpoint + log cleanup. This is overkill, so reduce the sync frequency to once per minute at most.
* | | | | | Fix tests after recent refactorsPieter Wuille2012-04-174-5/+6
| | | | | |
* | | | | | Merge remote-tracking branch 'jgarzik/mempool'Pieter Wuille2012-04-173-76/+104
|\ \ \ \ \ \
| * | | | | | CTxMemPool: add helper methods, to reduce global mempool.mapTx accessesJeff Garzik2012-04-152-8/+26
| | | | | | |
| * | | | | | CTxMemPool: encapsulate AcceptToMemoryPoolJeff Garzik2012-04-152-40/+48
| | | | | | |
| * | | | | | CTxMemPool: encapsulate AddToMemoryPoolUnchecked(), RemoveFromMemoryPool(),Jeff Garzik2012-04-153-28/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and nPooledTx
| * | | | | | New class CTxMemPool, encapsulating TX memory pool data membersJeff Garzik2012-04-152-30/+37
| | | | | | |
* | | | | | | Merge pull request #1117 from sipa/deadlockfixPieter Wuille2012-04-171-2/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix potential deadlock
| * | | | | | | Fix potential deadlockPieter Wuille2012-04-171-2/+2
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflict: * cs_main in ProcessMessages() (before calling ProcessMessages) * cs_vSend in CNode::BeginMessage versus: * cs_vSend in ThreadMessageHandler2 (before calling SendMessages) * cs_main in SendMessages Even though cs_vSend is a try_lock, if it succeeds simultaneously with the locking of cs_main in ProcessMessages(), it could cause a deadlock.
* | | | | | | Further reduce header dependenciesPieter Wuille2012-04-1726-105/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes the dependency of serialize.h on PROTOCOL_VERSION, and makes this parameter required instead of implicit. This is much saner, as it makes the places where changing a version number can have an influence obvious.
* | | | | | | Move proto version to version.h. Reduce header deps a bit more.Jeff Garzik2012-04-173-3/+4
| | | | | | |
* | | | | | | Move CWalletDB code to new walletdb module.Jeff Garzik2012-04-1714-591/+622
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to standard code separation, this change opens the door to fixing several include inter-dependencies.
* | | | | | | Remove headers.hPieter Wuille2012-04-1738-327/+288
| | | | | | |
* | | | | | | Merge pull request #1106 from jgarzik/sign-compareGavin Andresen2012-04-1717-68/+68
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix many sign-comparison warnings found in bitcoin codebase
| * | | | | | | Fix misc. minor sign-comparison warningsJeff Garzik2012-04-153-4/+4
| | | | | | | |
| * | | | | | | CNode's nHeaderStart may be negative, so change its typeJeff Garzik2012-04-151-4/+4
| | | | | | | |
| * | | | | | | serialize.h: CAutoFile's read and write may take size_t nSizeJeff Garzik2012-04-151-2/+2
| | | | | | | |
| * | | | | | | Fix sign-compare warnings: netbase's Lookup* max-solutions may be unsignedJeff Garzik2012-04-152-7/+7
| | | | | | | |
| * | | | | | | Fix loop index var types, fixing many minor sign comparison warningsJeff Garzik2012-04-1510-44/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | foo.size() typically returns an unsigned integral type; make loop variables match those types' signedness.
| * | | | | | | The string class returns string::npos, when find() fails.Jeff Garzik2012-04-153-7/+7
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | Noticed when sign-comparison warnings were enabled.
* | | | | | | Merge pull request #1115 from laanwj/2012_04_cleanupmiscGavin Andresen2012-04-174-59/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Delete unused, unreachable and commented code, add missing initializer
| * | | | | | | Remove unused and unreachable codeWladimir J. van der Laan2012-04-173-58/+0
| | | | | | | |
| * | | | | | | Add forgotten initializerWladimir J. van der Laan2012-04-171-1/+1
| | |/ / / / / | |/| | | | |
* | | | | | | main.cpp: replace tabs with spacesJeff Garzik2012-04-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes they sneak in through the 'vi' door
* | | | | | | AlreadyHave(): only hold lock during mapTransactions accessJeff Garzik2012-04-171-2/+6
| | | | | | |
* | | | | | | Merge pull request #1094 from jgarzik/already-have-lockingJeff Garzik2012-04-171-2/+11
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Locking fix for AlreadyHave()
| * | | | | | | Locking fix for AlreadyHave()Jeff Garzik2012-04-131-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Access to mapTransactions[] must be guarded by cs_mapTransactions lock. Also, reformat long lines to make the switch statement more readable.
* | | | | | | | Bump PROTOCOL_VERSION to 60001, thereby enabling BIP31Jeff Garzik2012-04-171-1/+1
| | | | | | | |
* | | | | | | | Merge pull request #1081 from jgarzik/pongJeff Garzik2012-04-176-26/+73
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | BIP 0031: pong message
| * | | | | | | Replace several network protocol version numbers with named constantsJeff Garzik2012-04-124-10/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stored in version.h. Also, a minor CAddress code reformat while we're in there, fixing some incorrect indentation.