]>
Git Repo - VerusCoin.git/log
Jeff Garzik [Sun, 22 Apr 2012 17:51:16 +0000 (13:51 -0400)]
Add casts for unavoidable signed/unsigned comparisons
At these code sites, it is preferable to cast rather than change
a variable's type.
Jeff Garzik [Sun, 22 Apr 2012 17:44:12 +0000 (13:44 -0400)]
Test ScriptSigArgsExpected() for error, before accumulating return value
Jeff Garzik [Mon, 23 Apr 2012 18:14:03 +0000 (14:14 -0400)]
SigOp and orphan-tx constants and counts are always unsigned.
Fixes several sign-comparison warnings.
Jeff Garzik [Sun, 22 Apr 2012 17:22:39 +0000 (13:22 -0400)]
Prefer 'unsigned int' for loop index variables tested against ::size()
C++ STL ::size() generally returns unsigned, which implies that "int idx"
style of loop variable will generate a signed-vs-unsigned comparison warning
when testing the loop exit condition "idx < blah.size()"
Update areas of the bitcoin code where loop variables may be more properly and
correctly defined as unsigned.
Pieter Wuille [Sat, 21 Apr 2012 23:49:32 +0000 (16:49 -0700)]
Merge pull request #1124 from sipa/rpcobj3
extension of #1103: encapsulate mapCommands in CRPCTable
Pieter Wuille [Sat, 21 Apr 2012 23:47:02 +0000 (16:47 -0700)]
Merge pull request #1131 from laanwj/2012_04_hexstr
Integrate @JoelKatz's optimized ToHex (#562) into current HexStr function
Pieter Wuille [Sat, 21 Apr 2012 23:43:31 +0000 (16:43 -0700)]
Merge pull request #1129 from laanwj/2012_04_opcodes
Add explicit numeric constant value for all opcodes
Gavin Andresen [Sat, 21 Apr 2012 23:36:41 +0000 (16:36 -0700)]
Merge pull request #1121 from gavinandresen/scripttest
Data-driven script evaluation unit tests (rebased to fix compiler warning).
Gavin Andresen [Tue, 17 Apr 2012 21:57:06 +0000 (17:57 -0400)]
Data-drive script evaluation unit tests.
Pieter Wuille [Sat, 21 Apr 2012 22:13:29 +0000 (15:13 -0700)]
Merge pull request #1126 from drizztbsd/master
Fix build with gcc 4.7
Wladimir J. van der Laan [Sat, 21 Apr 2012 18:15:25 +0000 (20:15 +0200)]
Integrate @JoelKatz's optimized ToHex (#562) into current HexStr function
Wladimir J. van der Laan [Sat, 21 Apr 2012 16:21:19 +0000 (18:21 +0200)]
Remove no-longer used UI hints in bitcoin core
The Qt UI has its own associated structures for temporary transaction state / cache.
Wladimir J. van der Laan [Sat, 21 Apr 2012 11:31:08 +0000 (13:31 +0200)]
change type of various bare chars to bool that are only used as bool (and never serialized)
Wladimir J. van der Laan [Sat, 21 Apr 2012 08:10:48 +0000 (10:10 +0200)]
Add explicit numeric constant value for all opcodes
- 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.
Pieter Wuille [Fri, 20 Apr 2012 23:37:34 +0000 (01:37 +0200)]
Expose CRPCTable via bitcoinrpc.h for testing
Pieter Wuille [Wed, 18 Apr 2012 20:42:17 +0000 (22:42 +0200)]
Encapsulate mapCommands in class CRPCTable
Jeff Garzik [Sun, 15 Apr 2012 03:55:05 +0000 (23:55 -0400)]
Encapsulate RPC command dispatch in an array of CRPCCommand's
Wladimir J. van der Laan [Fri, 20 Apr 2012 17:18:45 +0000 (10:18 -0700)]
Merge pull request #1122 from dlitz/unsigned-char-fix
Unsigned char fix & fix undefined phexdigits[255]
Timothy Redaelli [Fri, 20 Apr 2012 10:50:57 +0000 (12:50 +0200)]
Add missing includes. (Fix bulding under GCC 4.7)
Pieter Wuille [Thu, 19 Apr 2012 11:33:04 +0000 (04:33 -0700)]
Merge pull request #959 from rebroad/LoadBlockIndexKillable
Added ability to respond to signals during Block Loading stage.
R E Broadley [Wed, 18 Apr 2012 11:30:24 +0000 (12:30 +0100)]
Added ability to respond to signals during Block Loading stage.
Dwayne C. Litzenberger [Mon, 16 Apr 2012 05:32:55 +0000 (01:32 -0400)]
Fix bugs on 'unsigned char' platforms.
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.
Dwayne C. Litzenberger [Mon, 16 Apr 2012 05:31:38 +0000 (01:31 -0400)]
Fix phexdigits[255] is undefined.
Wladimir J. van der Laan [Tue, 17 Apr 2012 21:33:26 +0000 (14:33 -0700)]
Merge pull request #1118 from sipa/addbreaks
Add missing breaks in optionmodel's switch case
Pieter Wuille [Tue, 17 Apr 2012 21:27:59 +0000 (23:27 +0200)]
Add missing breaks in optionmodel's switch case
Pieter Wuille [Tue, 17 Apr 2012 21:23:31 +0000 (14:23 -0700)]
Merge pull request #1114 from sipa/lesssync
Reduce sync frequency for blkindex.dat
Pieter Wuille [Tue, 17 Apr 2012 18:37:47 +0000 (20:37 +0200)]
Fix tests after recent refactors
Pieter Wuille [Tue, 17 Apr 2012 18:12:48 +0000 (20:12 +0200)]
Merge remote-tracking branch 'jgarzik/mempool'
Pieter Wuille [Tue, 17 Apr 2012 18:05:02 +0000 (11:05 -0700)]
Merge pull request #1117 from sipa/deadlockfix
Fix potential deadlock
Pieter Wuille [Tue, 17 Apr 2012 18:04:29 +0000 (11:04 -0700)]
Merge pull request #1112 from sipa/saneserial
Further reduce header dependencies
Pieter Wuille [Mon, 16 Apr 2012 12:56:45 +0000 (14:56 +0200)]
Further reduce header dependencies
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.
Jeff Garzik [Sun, 15 Apr 2012 22:20:05 +0000 (18:20 -0400)]
Move proto version to version.h. Reduce header deps a bit more.
Jeff Garzik [Sun, 15 Apr 2012 21:39:49 +0000 (17:39 -0400)]
Move CWalletDB code to new walletdb module.
In addition to standard code separation, this change opens the door
to fixing several include inter-dependencies.
Pieter Wuille [Sun, 15 Apr 2012 20:10:54 +0000 (22:10 +0200)]
Remove headers.h
Gavin Andresen [Tue, 17 Apr 2012 17:55:56 +0000 (10:55 -0700)]
Merge pull request #1106 from jgarzik/sign-compare
Fix many sign-comparison warnings found in bitcoin codebase
Gavin Andresen [Tue, 17 Apr 2012 17:12:33 +0000 (10:12 -0700)]
Merge pull request #1115 from laanwj/2012_04_cleanupmisc
Delete unused, unreachable and commented code, add missing initializer
Pieter Wuille [Tue, 17 Apr 2012 16:50:45 +0000 (18:50 +0200)]
Fix potential deadlock
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.
Jeff Garzik [Tue, 17 Apr 2012 16:31:51 +0000 (12:31 -0400)]
main.cpp: replace tabs with spaces
Sometimes they sneak in through the 'vi' door
Jeff Garzik [Tue, 17 Apr 2012 16:30:00 +0000 (12:30 -0400)]
AlreadyHave(): only hold lock during mapTransactions access
Wladimir J. van der Laan [Mon, 16 Apr 2012 09:44:05 +0000 (11:44 +0200)]
Remove unused and unreachable code
Wladimir J. van der Laan [Mon, 16 Apr 2012 09:46:13 +0000 (11:46 +0200)]
Add forgotten initializer
Pieter Wuille [Tue, 17 Apr 2012 16:27:00 +0000 (18:27 +0200)]
Reduce sync frequency for blkindex.dat
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.
Jeff Garzik [Tue, 17 Apr 2012 16:23:49 +0000 (09:23 -0700)]
Merge pull request #1094 from jgarzik/already-have-locking
Locking fix for AlreadyHave()
Jeff Garzik [Tue, 17 Apr 2012 16:16:46 +0000 (12:16 -0400)]
Bump PROTOCOL_VERSION to 60001, thereby enabling BIP31
Jeff Garzik [Tue, 17 Apr 2012 15:51:17 +0000 (08:51 -0700)]
Merge pull request #1081 from jgarzik/pong
BIP 0031: pong message
Wladimir J. van der Laan [Mon, 16 Apr 2012 12:41:39 +0000 (05:41 -0700)]
Merge pull request #1092 from laanwj/2012_04_sendcoins_setlabelfix
When sending coins, set label when selecting address that already has a label
Wladimir J. van der Laan [Mon, 16 Apr 2012 07:55:37 +0000 (00:55 -0700)]
Merge pull request #1091 from Diapolo/GUI-BlockDL
revert to default OS theme for progressbar (fix #1071)
Jeff Garzik [Sun, 15 Apr 2012 21:00:20 +0000 (17:00 -0400)]
Fix misc. minor sign-comparison warnings
Jeff Garzik [Sun, 15 Apr 2012 20:59:48 +0000 (16:59 -0400)]
CNode's nHeaderStart may be negative, so change its type
Jeff Garzik [Sun, 15 Apr 2012 20:59:09 +0000 (16:59 -0400)]
serialize.h: CAutoFile's read and write may take size_t nSize
Jeff Garzik [Sun, 15 Apr 2012 20:58:32 +0000 (16:58 -0400)]
Fix sign-compare warnings: netbase's Lookup* max-solutions may be unsigned
Jeff Garzik [Sun, 15 Apr 2012 20:52:09 +0000 (16:52 -0400)]
Fix loop index var types, fixing many minor sign comparison warnings
foo.size() typically returns an unsigned integral type; make loop variables
match those types' signedness.
Jeff Garzik [Sun, 15 Apr 2012 20:47:24 +0000 (16:47 -0400)]
The string class returns string::npos, when find() fails.
Noticed when sign-comparison warnings were enabled.
Jeff Garzik [Fri, 13 Apr 2012 22:20:44 +0000 (18:20 -0400)]
CTxMemPool: add helper methods, to reduce global mempool.mapTx accesses
Jeff Garzik [Fri, 13 Apr 2012 21:34:22 +0000 (17:34 -0400)]
CTxMemPool: encapsulate AcceptToMemoryPool
Jeff Garzik [Fri, 13 Apr 2012 20:28:07 +0000 (16:28 -0400)]
CTxMemPool: encapsulate AddToMemoryPoolUnchecked(), RemoveFromMemoryPool(),
and nPooledTx
Jeff Garzik [Fri, 13 Apr 2012 20:03:09 +0000 (16:03 -0400)]
New class CTxMemPool, encapsulating TX memory pool data members
Jeff Garzik [Sun, 15 Apr 2012 18:39:15 +0000 (11:39 -0700)]
Merge pull request #1104 from laanwj/2012_04_clang
Enable and fix most compilation warnings
Jeff Garzik [Sun, 15 Apr 2012 16:25:29 +0000 (09:25 -0700)]
Merge pull request #1084 from dooglus/validate_secret
importprivkey doesn't check that it is given a private key
Wladimir J. van der Laan [Sun, 15 Apr 2012 16:22:26 +0000 (09:22 -0700)]
Merge pull request #1097 from laanwj/2012_04_runawayexception
Show a message box when runaway exception happens
Jeff Garzik [Sun, 15 Apr 2012 15:31:22 +0000 (08:31 -0700)]
Merge pull request #1100 from luke-jr/qrcode_errchk
Bugfix: Check that QRcode_encodeString didn't return NULL (error)
Wladimir J. van der Laan [Sun, 15 Apr 2012 11:27:00 +0000 (13:27 +0200)]
fix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
Wladimir J. van der Laan [Sun, 15 Apr 2012 11:03:28 +0000 (13:03 +0200)]
fix warnings: '&&' within '||' [-Wlogical-op-parentheses]
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:59:20 +0000 (12:59 +0200)]
fix warnings: delete called on 'XX' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:53:14 +0000 (12:53 +0200)]
fix warnings: unused variable 'XX' [-Wunused-variable]
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:42:52 +0000 (12:42 +0200)]
fix warnings: enumeration values 'XX' not handled in switch [-Wswitch-enum]
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:31:56 +0000 (12:31 +0200)]
fix warnings: 'XX' defined as a struct here but previously declared as a class [-Wmismatched-tags]
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:22:30 +0000 (12:22 +0200)]
fix warnings: array subscript is of type 'char' [-Wchar-subscripts]
Wladimir J. van der Laan [Sun, 15 Apr 2012 09:42:40 +0000 (11:42 +0200)]
work around issue in boost::program_options that prevents from compiling in clang
Wladimir J. van der Laan [Sun, 15 Apr 2012 10:24:03 +0000 (12:24 +0200)]
enable all warnings except invalid-offsetof, sign-compare, unused-parameter
Luke Dashjr [Sun, 15 Apr 2012 01:00:27 +0000 (21:00 -0400)]
Bugfix: Check that QRcode_encodeString didn't return NULL (error)
Without this, any error will segfault Bitcoin-Qt
Wladimir J. van der Laan [Sat, 14 Apr 2012 07:41:05 +0000 (09:41 +0200)]
Show a message box when runaway exception happens
This is more clear to users than when the program simply disappears (usually during initialization). It still logs the message to the console and debug log as well.
Wladimir J. van der Laan [Sat, 14 Apr 2012 16:32:30 +0000 (18:32 +0200)]
Rename make_windows_icon.py to .sh as it is a shell script (fixes #1099)
Jeff Garzik [Sat, 14 Apr 2012 15:50:43 +0000 (08:50 -0700)]
Merge pull request #1093 from jgarzik/tx-opt
Database micro-optimization for "tx" network message
Wladimir J. van der Laan [Sat, 14 Apr 2012 06:47:50 +0000 (23:47 -0700)]
Merge pull request #1089 from laanwj/2012_04_translationupdate
Update translations for bitcoin core
Wladimir J. van der Laan [Fri, 13 Apr 2012 06:45:26 +0000 (08:45 +0200)]
Update translations for bitcoin core
- Move scripts/qt to share/qt, to clean up toplevel directories
- Update english ts file which is used to source messages for Transifex
- In extract_strings_qt.py use a glob *.h *.cpp, this is safe now that the Wx UI files are removed
Wladimir J. van der Laan [Sat, 14 Apr 2012 06:27:23 +0000 (23:27 -0700)]
Merge pull request #1096 from laanwj/2012_04_tick
Do not show green tick unless all known blocks are downloaded (fixes #921)
Wladimir J. van der Laan [Sat, 14 Apr 2012 06:21:22 +0000 (08:21 +0200)]
Do not show green tick unless all known blocks are downloaded (fixes #921)
Jeff Garzik [Fri, 13 Apr 2012 22:24:55 +0000 (18:24 -0400)]
Locking fix for AlreadyHave()
Access to mapTransactions[] must be guarded by cs_mapTransactions lock.
Also, reformat long lines to make the switch statement more readable.
Jeff Garzik [Fri, 13 Apr 2012 21:48:15 +0000 (17:48 -0400)]
Database micro-optimization for "tx" network message
Open database once per "tx" message, rather than multiple times,
in the case of orphan transaction presence.
As a side effect, a now-unused CTransaction::AcceptToMemoryPool()
variant is removed.
Wladimir J. van der Laan [Fri, 13 Apr 2012 19:08:46 +0000 (21:08 +0200)]
Set label when selecting an address that already has a label. Fixes #1080.
Philip Kaufmann [Fri, 13 Apr 2012 16:25:56 +0000 (18:25 +0200)]
revert to default OS theme for progressbar / fix small glitches in bitcoingui.cpp
Wladimir J. van der Laan [Fri, 13 Apr 2012 07:16:46 +0000 (09:16 +0200)]
Add missing tooltip and key shortcut in settings dialog (#1088 without line break part)
Gavin Andresen [Fri, 13 Apr 2012 01:22:15 +0000 (18:22 -0700)]
Merge pull request #1087 from sipa/fix_1086
Fix #1086: add /testnet to passed datadir
Pieter Wuille [Fri, 13 Apr 2012 01:11:14 +0000 (03:11 +0200)]
Fix #1086: add /testnet to passed datadir
Jeff Garzik [Fri, 13 Apr 2012 00:07:49 +0000 (20:07 -0400)]
Replace several network protocol version numbers with named constants
stored in version.h.
Also, a minor CAddress code reformat while we're in there, fixing
some incorrect indentation.
Chris Moore [Thu, 12 Apr 2012 20:13:08 +0000 (13:13 -0700)]
CBitcoinSecret::SetString() now calls IsValid() to make sure it was passed something with the correct version.
Gavin Andresen [Thu, 12 Apr 2012 19:20:51 +0000 (12:20 -0700)]
Merge pull request #1041 from gavinandresen/listtransactionsfix
Bug fix listtransactions from/count handling.
Wladimir J. van der Laan [Thu, 12 Apr 2012 18:50:18 +0000 (20:50 +0200)]
make text in about box selectable (fixes #1055)
Wladimir J. van der Laan [Thu, 12 Apr 2012 18:38:36 +0000 (11:38 -0700)]
Merge pull request #1078 from Diapolo/QR-Code
QR-Code code update
Fixes problems reported on forum: https://bitcointalk.org/index.php?topic=73695.msg839804#msg839804
Philip Kaufmann [Thu, 12 Apr 2012 18:21:02 +0000 (20:21 +0200)]
enable wordWrap on lblQRCode / small code comment change
Philip Kaufmann [Thu, 12 Apr 2012 16:39:22 +0000 (18:39 +0200)]
limit length of generated URI to 255 chars to prevent a DoS against the QR-Code dialog
Philip Kaufmann [Wed, 11 Apr 2012 21:05:22 +0000 (23:05 +0200)]
updated to reflect pull-request suggestions / renamed some GUI elements
Philip Kaufmann [Wed, 11 Apr 2012 12:21:15 +0000 (14:21 +0200)]
fixed amount part of URI in QR-Codes / removed (no label) string if we have NO label / coding style updates / removed an unused variable
Jeff Garzik [Thu, 12 Apr 2012 17:24:00 +0000 (13:24 -0400)]
Remove obsolete Win32 AffinityBugWorkaround()
Reference miner exists for testnet-in-a-box type situations, and as a
reference. We don't care enough about highly optimized internal
mining to keep workarounds like this.
Jeff Garzik [Thu, 12 Apr 2012 16:23:58 +0000 (12:23 -0400)]
version.h: separate client, net sections. Move more constants to this file.
* move PROTOCOL_VERSION to version.h
* move CLIENT_VERSION* to version.h, make available past cpp stage
* clearly separate client, network version portions of version.h
Jeff Garzik [Wed, 11 Apr 2012 16:38:03 +0000 (12:38 -0400)]
BIP 0031: pong message
Add a pong message that is sent in reply to a ping. It echoes back a nonce
field that is now added to the ping message. Send a nonce of zero in ping
messages.
Original author: Mike Hearn @ Google
Modified Mike's change to introduce a mild form of protocol documentation in
version.h.
Gavin Andresen [Thu, 12 Apr 2012 15:14:46 +0000 (11:14 -0400)]
Fix OSX build errors.
Wladimir J. van der Laan [Thu, 12 Apr 2012 06:02:18 +0000 (23:02 -0700)]
Merge pull request #855 from sje397/ToggleHide
Toggle UI hide
Pieter Wuille [Wed, 11 Apr 2012 22:02:24 +0000 (15:02 -0700)]
Merge pull request #1072 from sipa/boostpaths
Use filesystem::path instead of manual string tinkering
This page took 0.063494 seconds and 4 git commands to generate.