bitcoin/src
Pieter Wuille eb0b56b190 Simplify serialize.h's exception handling
Remove the 'state' and 'exceptmask' from serialize.h's stream implementations,
as well as related methods.

As exceptmask always included 'failbit', and setstate was always called with
bits = failbit, all it did was immediately raise an exception. Get rid of
those variables, and replace the setstate with direct exception throwing
(which also removes some dead code).

As a result, good() is never reached after a failure (there are only 2
calls, one of which is in tests), and can just be replaced by !eof().

fail(), clear(n) and exceptions() are just never called. Delete them.
2014-08-09 01:43:23 +02:00
..
compat build: fix build weirdness after 54372482. 2014-06-23 14:04:38 -04:00
config build: move bitcoin-config.h to its own directory 2014-06-21 19:47:43 +02:00
crypto Add <Hasher>::OUTPUT_SIZE 2014-06-21 19:47:43 +02:00
json json_spirit: #include <stdint.h> 2014-05-13 11:41:59 +02:00
leveldb Merge src/leveldb changes for LevelDB 1.17. 2014-05-09 18:23:34 +02:00
m4 build: fix whitespace in pkg-config variable 2014-07-17 22:15:21 -04:00
obj
obj-test
qt qt: Remove '0 BTC' placeholder from translation 2014-08-01 07:51:24 +02:00
secp256k1 secp256k1: Add build-side changes for libsecp256k1 2014-07-01 12:27:19 -04:00
test Simplify serialize.h's exception handling 2014-08-09 01:43:23 +02:00
univalue univalue: remove unused methods getArray, getObject 2014-07-30 23:25:30 -04:00
addrman.cpp Remove redundant .c_str()s 2014-01-23 16:05:01 +01:00
addrman.h Break up CAddrMan's IMPLEMENT_SERIALIZE 2014-07-16 21:14:26 +02:00
alert.cpp Move network-time related functions to timedata.cpp/h 2014-06-25 09:24:50 +02:00
alert.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
allocators.cpp Changing LockedPageManager to use a managed instance 2013-10-20 14:29:24 +07:00
allocators.h Fix typos in comments (missing i's). 2014-07-24 16:08:59 +02:00
base58.cpp ensure clean and consistent "namespace" usage 2014-06-26 10:36:57 +02:00
base58.h Move base58.h implementation code to base58.cpp 2014-05-10 00:42:31 +02:00
bitcoin-cli-res.rc fix copyright string in two of our *.rc files 2014-07-01 12:13:37 +02:00
bitcoin-cli.cpp bitcoin-cli, rpcrawtransaction: harmonize "{" styling 2014-07-29 11:13:27 -04:00
bitcoin-tx.cpp Add "bitcoin-tx" command line utility and supporting modules. 2014-07-29 11:13:27 -04:00
bitcoind-res.rc fix copyright string in two of our *.rc files 2014-07-01 12:13:37 +02:00
bitcoind.cpp Remove cli functionality from bitcoind 2014-06-15 15:38:22 +02:00
bloom.cpp CBloomFilter::clear() method 2014-07-21 11:50:07 -07:00
bloom.h CBloomFilter::clear() method 2014-07-21 11:50:07 -07:00
chainparams.cpp Merge pull request #4400 2014-07-14 11:35:30 +02:00
chainparams.h Remove unnecessary dependencies for bitcoin-cli 2014-06-25 10:31:35 +02:00
chainparamsbase.cpp Can't log to debug log before chain params initialized 2014-07-15 10:26:44 +02:00
chainparamsbase.h Can't log to debug log before chain params initialized 2014-07-15 10:26:44 +02:00
checkpoints.cpp Merge pull request #4541 2014-07-28 14:54:08 +02:00
checkpoints.h ensure clean and consistent "namespace" usage 2014-06-26 10:36:57 +02:00
checkqueue.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
clientversion.h fix copyright string in two of our *.rc files 2014-07-01 12:13:37 +02:00
coincontrol.h Coincontrol cleanup (e.g. add missing license) 2013-11-18 08:16:12 +01:00
coins.cpp Merge pull request #4505 2014-07-15 09:14:33 +02:00
coins.h Use unordered_map for CCoinsViewCache with salted hash 2014-07-14 16:13:08 +02:00
compat.h Convert closesocket 'compat wrapper' to function in netbase 2014-07-17 15:46:25 +02:00
core.cpp Revert "Relay double-spends, subject to anti-DOS" 2014-07-21 07:46:34 +02:00
core.h Revert "Relay double-spends, subject to anti-DOS" 2014-07-21 07:46:34 +02:00
core_io.h add license header to core_io.h, core_read/_write.cpp 2014-08-01 08:39:06 +02:00
core_read.cpp add license header to core_io.h, core_read/_write.cpp 2014-08-01 08:39:06 +02:00
core_write.cpp add license header to core_io.h, core_read/_write.cpp 2014-08-01 08:39:06 +02:00
crypter.cpp Move CCryptoKeyStore to crypter.cpp 2013-12-04 12:46:13 +01:00
crypter.h Move CCryptoKeyStore to crypter.cpp 2013-12-04 12:46:13 +01:00
db.cpp unified and better log/error messages for CDBEnv/CDB 2014-04-01 09:41:49 +02:00
db.h Move CAddrDB frrom db to net 2013-12-04 12:46:13 +01:00
hash.cpp Add a built-in SHA256/SHA512 implementation. 2014-06-21 19:47:39 +02:00
hash.h Add <Hasher>::OUTPUT_SIZE 2014-06-21 19:47:43 +02:00
init.cpp Merge pull request #4593 2014-07-30 11:06:33 +02:00
init.h ensure clean and consistent "namespace" usage 2014-06-26 10:36:57 +02:00
key.cpp add GetRandBytes() as wrapper for RAND_bytes() 2014-07-09 09:42:18 +02:00
key.h key.cpp: fail with a friendlier message on missing ssl EC support 2014-06-03 12:09:51 -07:00
keystore.cpp Use script matching rather than destination matching for watch-only. 2014-07-02 15:48:39 +02:00
keystore.h Use script matching rather than destination matching for watch-only. 2014-07-02 15:48:39 +02:00
leveldbwrapper.cpp Enable paranoid corruption checks in LevelDB >= 1.16 2014-05-12 12:52:39 +02:00
leveldbwrapper.h Remove redundant c_str 2014-05-22 00:23:03 +07:00
limitedmap.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
main.cpp Simplify serialize.h's exception handling 2014-08-09 01:43:23 +02:00
main.h Rework block processing benchmark code 2014-07-27 00:41:03 +02:00
Makefile.am Add "bitcoin-tx" command line utility and supporting modules. 2014-07-29 11:13:27 -04:00
Makefile.qt.include Add "bitcoin-tx" command line utility and supporting modules. 2014-07-29 11:13:27 -04:00
Makefile.qttest.include Add "bitcoin-tx" command line utility and supporting modules. 2014-07-29 11:13:27 -04:00
Makefile.test.include Add "bitcoin-tx" command line utility and supporting modules. 2014-07-29 11:13:27 -04:00
miner.cpp getrawchangeaddress should fail when keypool exhausted 2014-07-11 15:24:29 +02:00
miner.h Switch miner.cpp to use sha2 instead of OpenSSL. 2014-06-21 19:47:39 +02:00
mruset.h Limit number of known addresses per peer 2014-05-30 12:01:53 +02:00
net.cpp Avoid querying DNS seeds, if we have open connections. 2014-07-29 11:04:46 -04:00
net.h Add missing FindNode prototype to net.h 2014-07-24 17:28:47 +02:00
netbase.cpp net: add SetSocketNonBlocking() as OS independent wrapper 2014-07-17 22:12:44 +02:00
netbase.h net: add SetSocketNonBlocking() as OS independent wrapper 2014-07-17 22:12:44 +02:00
noui.cpp Copyright header updates s/2013/2014 on files whose last git commit was done in 2014. 2014-02-09 21:06:06 -05:00
noui.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
pow.cpp Use GetBlockTime() more 2014-07-07 10:20:28 +02:00
pow.h Refactor proof of work related functions out of main 2014-06-23 23:10:24 +02:00
protocol.cpp Replace virtual methods with static attributes, chainparams.h depends on 2014-06-04 13:29:36 +02:00
protocol.h Add comment regarding experimental-use service bits 2014-06-21 11:43:23 -04:00
random.cpp make RandAddSeed() use OPENSSL_cleanse() 2014-07-09 09:43:55 +02:00
random.h move rand functions from util to new random.h/.cpp 2014-07-09 09:42:19 +02:00
rpcblockchain.cpp Avoid a segfault on getblock if it can't read a block from disk. 2014-07-10 00:34:18 -03:00
rpcclient.cpp Add helptexts for -whitelist and rpc prioritisetransaction and switch to bitcoin instead of satoshis 2014-07-15 05:20:52 +02:00
rpcclient.h Remove cli functionality from bitcoind 2014-06-15 15:38:22 +02:00
rpcdump.cpp Harmonize importprivkey and importaddress documentation 2014-07-22 08:58:49 +02:00
rpcmining.cpp Consolidate CTransaction hex encode/decode into core_io.h, core_{read,write}.cpp 2014-07-29 11:13:27 -04:00
rpcmisc.cpp Add warning comment to getinfo 2014-07-28 19:30:58 +02:00
rpcnet.cpp fix help message for RPC getpeerinfo 2014-07-17 15:10:29 +02:00
rpcprotocol.cpp rpc: Prevent easy memory exhaustion attack 2014-07-04 09:20:39 +02:00
rpcprotocol.h fix RPC error replies 2014-06-28 19:16:15 -07:00
rpcrawtransaction.cpp bitcoin-cli, rpcrawtransaction: harmonize "{" styling 2014-07-29 11:13:27 -04:00
rpcserver.cpp Merge pull request #4400 2014-07-14 11:35:30 +02:00
rpcserver.h getblocktemplate: longpolling support 2014-07-11 14:48:02 +02:00
rpcwallet.cpp Consolidate CTransaction hex encode/decode into core_io.h, core_{read,write}.cpp 2014-07-29 11:13:27 -04:00
script.cpp move rand functions from util to new random.h/.cpp 2014-07-09 09:42:19 +02:00
script.h replaced MINE_ with ISMINE_ 2014-07-02 15:48:40 +02:00
serialize.h Simplify serialize.h's exception handling 2014-08-09 01:43:23 +02:00
sync.cpp Wallet locking fixes for -DDEBUG_LOCKORDER 2014-02-18 12:11:46 -05:00
sync.h getblocktemplate: longpolling support 2014-07-11 14:48:02 +02:00
threadsafety.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
timedata.cpp Add comment about never updating nTimeOffset past 199 samples 2014-07-24 19:00:24 +02:00
timedata.h Move network-time related functions to timedata.cpp/h 2014-06-25 09:24:50 +02:00
tinyformat.h Make tinyformat errors raise an exception instead of assert()ing 2014-02-28 09:25:00 +01:00
txdb.cpp typedef std::map<uint256, CCoins> to CCoinsMap 2014-07-01 12:48:16 +02:00
txdb.h typedef std::map<uint256, CCoins> to CCoinsMap 2014-07-01 12:48:16 +02:00
txmempool.cpp Bugfix: make CCoinsViewMemPool support pruned entries in underlying cache 2014-07-23 15:40:52 +02:00
txmempool.h Move fee policy out of core 2014-07-03 14:42:16 -04:00
ui_interface.h Revert "UI to alert of respend attempt affecting wallet." 2014-07-21 07:46:33 +02:00
uint256.cpp Use unordered_map for CCoinsViewCache with salted hash 2014-07-14 16:13:08 +02:00
uint256.h Use unordered_map for CCoinsViewCache with salted hash 2014-07-14 16:13:08 +02:00
util.cpp Can't log to debug log before chain params initialized 2014-07-15 10:26:44 +02:00
util.h move rand functions from util to new random.h/.cpp 2014-07-09 09:42:19 +02:00
version.cpp Remove -beta suffix 2014-06-12 13:52:15 +02:00
version.h Fix typos in comments (missing i's). 2014-07-24 16:08:59 +02:00
wallet.cpp Revert "UI to alert of respend attempt affecting wallet." 2014-07-21 07:46:33 +02:00
wallet.h Revert "UI to alert of respend attempt affecting wallet." 2014-07-21 07:46:33 +02:00
walletdb.cpp Use script matching rather than destination matching for watch-only. 2014-07-02 15:48:39 +02:00
walletdb.h Use script matching rather than destination matching for watch-only. 2014-07-02 15:48:39 +02:00