dogecoin/src
Gavin Andresen d5d1425657 Bug fix: CDataStream::GetAndClear() when nReadPos > 0
Changed CDataStream::GetAndClear() to use the most obvious
get get and clear instead of a tricky swap().

Added a unit test for CDataStream insert/erase/GetAndClear.

Note: GetAndClear() is not performance critical, it is used only
by the send-a-message-to-the-network code. Bug was not noticed
before now because the send-a-message code never erased from the
stream.
2013-10-29 11:20:14 +10:00
..
json Revert "JSON Spirit updated to v4.06" 2013-10-22 05:43:46 -04:00
leveldb Merge src/leveldb changes for LevelDB 1.13 2013-08-24 22:21:41 +02:00
m4 autotools: fix subdir m4 check, never let it return -I 2013-09-18 17:11:41 -04:00
obj
obj-test
qt Merge pull request #3158 from Diapolo/guiutil 2013-10-27 03:35:30 -07:00
test Bug fix: CDataStream::GetAndClear() when nReadPos > 0 2013-10-29 11:20:14 +10:00
.gitignore Add src/.gitignore: ignore src/test_bitcoin 2013-09-18 07:07:41 -04:00
addrman.cpp Replace printf with LogPrintf / LogPrint 2013-09-18 20:39:25 +10:00
addrman.h Replace printf with LogPrintf / LogPrint 2013-09-18 20:39:25 +10:00
alert.cpp Replace printf with LogPrintf / LogPrint 2013-09-18 20:39:25 +10:00
alert.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
allocators.cpp Changing LockedPageManager to use a managed instance 2013-10-20 14:29:24 +07:00
allocators.h Merge pull request #3046 from sarchar/lockedpage-change 2013-10-20 16:14:26 -07:00
base58.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
bignum.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
bitcoin-cli-res.rc Add separate bitcoin-rpc client 2013-10-21 09:22:48 +02:00
bitcoin-cli.cpp Add separate bitcoin-rpc client 2013-10-21 09:22:48 +02:00
bitcoind-res.rc rename bitcoin-res.rc to bitcoind-res.rc 2013-10-03 15:06:31 +02:00
bitcoind.cpp Add separate bitcoin-rpc client 2013-10-21 09:22:48 +02:00
bitcoinrpc.cpp Revert "JSON Spirit updated to v4.06" 2013-10-22 05:43:46 -04:00
bitcoinrpc.h RPC: error code changes and prevent crash with walletpassphrase 2013-10-24 09:03:02 +02:00
bloom.cpp Performance optimization for bloom filters. 2013-08-20 02:27:26 -07:00
bloom.h Performance optimization for bloom filters. 2013-08-20 02:27:26 -07:00
chainparams.cpp Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
chainparams.h misc spelling / space / style fixes 2013-10-15 12:13:54 +02:00
checkpoints.cpp Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
checkpoints.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
checkqueue.h Port Thread* methods to boost::thread_group 2013-04-03 19:57:13 -04:00
clientversion.h autotools: switch to autotools buildsystem 2013-09-05 21:31:03 -04:00
compat.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
core.cpp Replace printf with LogPrintf / LogPrint 2013-09-18 20:39:25 +10:00
core.h Move CBlockLocator to core.h 2013-10-15 11:09:29 +02:00
crypter.cpp Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
crypter.h Merge pull request #3046 from sarchar/lockedpage-change 2013-10-20 16:14:26 -07:00
db.cpp Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
db.h Merge pull request #3119 2013-10-20 22:25:44 +02:00
hash.cpp Add HMAC-SHA512 to hash 2013-06-24 00:56:45 +02:00
hash.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
init.cpp remove duplicate -rpcsslciphers help message from init 2013-10-22 20:43:19 +02:00
init.h Add separate bitcoin-rpc client 2013-10-21 09:22:48 +02:00
key.cpp Merge pull request #3119 2013-10-20 22:25:44 +02:00
key.h improve wallet load time by removing duplicated calls to EC_KEY_check_key and adding a hash for vchPubKey/vchPrivKey entries in wallet.dat 2013-08-28 23:53:26 -07:00
keystore.cpp Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
keystore.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
leveldb.cpp Replace printf with LogPrintf / LogPrint 2013-09-18 20:39:25 +10:00
leveldb.h Replace printf with LogPrintf / LogPrint 2013-09-18 20:39:25 +10:00
limitedmap.h Add a limitedmap class similar to mruset 2013-04-01 11:56:22 -04:00
main.cpp Fix comparison tool by asking for blocks more aggressively 2013-10-27 02:23:36 -04:00
main.h Fix comparison tool by asking for blocks more aggressively 2013-10-27 02:23:36 -04:00
Makefile.am Add separate bitcoin-rpc client 2013-10-21 09:22:48 +02:00
Makefile.include autotools: fix the Makefile.include to be safely included anywhere. 2013-09-18 17:12:39 -04:00
miner.cpp Merge pull request #3119 2013-10-20 22:25:44 +02:00
miner.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
mruset.h If (for example) the new max_size must be 5 then at the end the queue.size() must be <= 5, so the exit condition must be <=, so the continuing condition must be > (and not >= as it was). 2012-06-19 09:48:00 +03:00
net.cpp Adding new "addrlocal" field to RPC getpeerinfo. 2013-10-21 02:23:05 -07:00
net.h Adding new "addrlocal" field to RPC getpeerinfo. 2013-10-21 02:23:05 -07:00
netbase.cpp Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
netbase.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
noui.cpp Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
protocol.cpp Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
protocol.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
rpcblockchain.cpp Merge pull request #3119 2013-10-20 22:25:44 +02:00
rpcdump.cpp Merge pull request #3119 2013-10-20 22:25:44 +02:00
rpcmining.cpp Merge pull request #3119 2013-10-20 22:25:44 +02:00
rpcnet.cpp RPC: error code changes and prevent crash with walletpassphrase 2013-10-24 09:03:02 +02:00
rpcrawtransaction.cpp Merge pull request #3119 2013-10-20 22:25:44 +02:00
rpcwallet.cpp RPC: error code changes and prevent crash with walletpassphrase 2013-10-24 09:03:02 +02:00
script.cpp Merge pull request #2738 from jgarzik/op_return 2013-10-21 22:47:24 -07:00
script.h Merge pull request #2738 from jgarzik/op_return 2013-10-21 22:47:24 -07:00
serialize.h Bug fix: CDataStream::GetAndClear() when nReadPos > 0 2013-10-29 11:20:14 +10:00
sync.cpp Make -DDEBUGLOCKORDER + -debug less noisy 2013-10-20 15:41:15 +10:00
sync.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
threadsafety.h o Added threadsafety.h - a set of macros using the -Wthread-safety 2012-11-11 00:53:00 -03:00
txdb.cpp Merge pull request #3119 2013-10-20 22:25:44 +02:00
txdb.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
ui_interface.h Have Qt poll for shutdown requested, the QT way. 2013-04-03 19:58:47 -04:00
uint256.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
util.cpp Merge pull request #3046 from sarchar/lockedpage-change 2013-10-20 16:14:26 -07:00
util.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
version.cpp Fix build date for from-tarball builds 2013-06-29 14:16:50 +02:00
version.h Bump PROTOCOL_VERSION for filter messages. 2013-01-16 12:48:02 -05:00
wallet.cpp Merge branch 'bugfix_unknownoutputs' of git://github.com/luke-jr/bitcoin 2013-10-22 15:34:11 +10:00
wallet.h Bump Year Number to 2013 2013-10-20 15:25:06 -04:00
walletdb.cpp Merge pull request #3119 2013-10-20 22:25:44 +02:00
walletdb.h Merge pull request #3119 2013-10-20 22:25:44 +02:00