bitcoin/src
Cory Fields b1fdd5475d script: Add test for CScriptNum
Because this class replaces some usages of CBigNum, tests have been added to
verify that they function the same way. The only difference in their usage is
the handling of out-of-range numbers.

While operands are constrained to [-0x7FFFFFFF,0x7FFFFFFF], the results may
overflow. The overflowing result is technically unbounded, but in practice
it can be no bigger than the result of an operation on two operands. This
implementation limits them to the size of an int64.

CBigNum was unaware of this constraint, so it allowed for unbounded results,
which were then checked before use. CScriptNum asserts if an arithmetic
operation will overflow an int64_t, since scripts are not able to reach those
numbers anyway. Additionally, CScriptNum will throw an exception when
constructed from a vector containing more than 4 bytes This mimics the previous
CastToBigNum behavior.
2014-04-22 00:43:31 -04:00
..
json Revert "JSON Spirit updated to v4.06" 2013-10-22 05:43:46 -04:00
leveldb Merge src/leveldb changes: temporarily revert to writing .sst files. 2014-01-18 14:32:29 +01:00
m4 build: Sync ax_boost_base.m4 with upstream. 2014-04-07 13:19:01 -04:00
obj Bump version numbers for 0.6.1rc1 2012-04-27 10:14:33 -04:00
obj-test Rename src/obj/test to src/obj-test to workaround bug in older GNU Make 2012-01-23 14:27:08 -05:00
qt Translation update 2014-04 2014-04-17 13:47:14 +02:00
test script: Add test for CScriptNum 2014-04-22 00:43:31 -04:00
addrman.cpp Remove redundant .c_str()s 2014-01-23 16:05:01 +01:00
addrman.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
alert.cpp Fixed compile error on Debian jessie (gcc version 4.8.2 (Debian 4.8.2-16)) 2014-03-18 22:54:47 +01: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 Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
base58.h Improve and expand base58 comments 2014-04-12 11:36:52 -04:00
bignum.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
bitcoin-cli-res.rc qt: Update remaining "The Bitcoin Core Developers" 2014-01-14 11:19:52 +01:00
bitcoin-cli.cpp Show error message if ReadConfigFile fails 2014-04-07 10:16:09 +02:00
bitcoind-res.rc qt: Update remaining "The Bitcoin Core Developers" 2014-01-14 11:19:52 +01:00
bitcoind.cpp Show error message if ReadConfigFile fails 2014-04-07 10:16:09 +02:00
bloom.cpp Fix bloom filter not to use bit_mask 2014-03-20 13:21:23 +09:00
bloom.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
chainparams.cpp script: switch outside users to CScriptNum 2014-04-22 00:32:30 -04:00
chainparams.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
checkpoints.cpp [Qt] rescan progress 2014-04-02 03:48:07 +02:00
checkpoints.h [Qt] rescan progress 2014-04-02 03:48:07 +02:00
checkqueue.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
clientversion.h VERSION obtained from source instead of the previous git tag. 2014-04-15 21:48:44 -10:00
coincontrol.h Coincontrol cleanup (e.g. add missing license) 2013-11-18 08:16:12 +01:00
coins.cpp Add verbose boolean to getrawmempool 2013-11-30 15:42:10 +10:00
coins.h Add verbose boolean to getrawmempool 2013-11-30 15:42:10 +10:00
compat.h Merge pull request #3309 2013-11-29 10:34:38 +01:00
core.cpp Get rid of C99 PRI?64 usage in source files 2014-02-24 09:08:56 +01:00
core.h Merge pull request #3305 from mikehearn/fee_drop 2014-02-24 14:05:54 -05: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 HMAC-SHA512 to hash 2013-06-24 00:56:45 +02:00
hash.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
init.cpp Add nHighTransactionFeeWarning as per #3969. 2014-03-29 05:17:28 -04:00
init.h Allow -noserver with bitcoind 2013-12-20 16:07:33 +01:00
key.cpp Sanitize assert usage and refuse to compile with NDEBUG. 2013-12-02 11:33:44 -08:00
key.h Document that CPubKey.IsValid() is consensus critical 2014-02-25 09:31:43 -05:00
keystore.cpp Move CCryptoKeyStore to crypter.cpp 2013-12-04 12:46:13 +01:00
keystore.h Update moved and dead links 2014-03-24 20:26:02 +00:00
leveldbwrapper.cpp Wrap create_directory calls in try...catch blocks. 2014-03-31 09:51:58 +02:00
leveldbwrapper.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
limitedmap.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
main.cpp Move assert(pindexNew); to above where we dereference pindexNew. 2014-04-05 22:11:16 -07:00
main.h add constant for shared (GUI/core) -par settings 2014-03-27 11:54:13 +01:00
Makefile.am Remove duplicate from src/makefile.am 2014-03-26 10:22:01 +01:00
Makefile.include Bugfix: Use BOOST_CPPFLAGS when testing for boost sleep vs sleep_for 2014-01-18 21:10:56 +00:00
miner.cpp script: switch outside users to CScriptNum 2014-04-22 00:32:30 -04:00
miner.h setgenerate creates multiple blocks in -regtest mode 2013-11-22 09:51:13 +10:00
mruset.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
net.cpp Prevent socket leak in ThreadSocketHandler. 2014-04-09 09:30:36 -07:00
net.h Merge pull request #3514 2014-03-10 13:23:18 +01:00
netbase.cpp Correct some proxy related socket leaks. 2014-04-09 17:09:45 -07:00
netbase.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06: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
protocol.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
protocol.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
rpcblockchain.cpp small changes to rpc command help message strings 2014-01-30 14:13:30 +01:00
rpcclient.cpp improve command-line options output 2014-03-25 13:09:20 +01:00
rpcclient.h bitcoin-cli: remove unneeded dependencies (only code movement) 2013-12-03 09:07:13 +01:00
rpcdump.cpp Fix importwallet nTimeFirstKey 2014-03-21 14:23:45 +01:00
rpcmining.cpp RPC command getmininginfo showing right genproclimit 2014-03-22 15:03:06 +01:00
rpcmisc.cpp Fix typo in createmultisig help 2014-03-31 09:04:51 +02:00
rpcnet.cpp Organize RPCCommands table 2014-03-31 08:41:45 +02:00
rpcprotocol.cpp Update moved and dead links 2014-03-24 20:26:02 +00:00
rpcprotocol.h 'sendrawtransaction' improvements 2014-03-27 12:33:55 +01:00
rpcrawtransaction.cpp Fix a typo in RPC signrawtransaction help 2014-04-08 22:53:41 +07:00
rpcserver.cpp Organize RPCCommands table 2014-03-31 08:41:45 +02:00
rpcserver.h move wallet info stuff to "getwalletinfo" rpc (left original wallet 2014-02-27 14:46:58 +13:00
rpcwallet.cpp [Qt] fix style, formating, comment and indentation problems 2014-03-27 09:22:15 +01:00
script.cpp script: remove bignum dependency 2014-04-22 00:32:30 -04:00
script.h script: remove bignum dependency 2014-04-22 00:32:30 -04:00
serialize.h remove an assignment which is never used. 2014-03-28 20:22:00 +09:00
sync.cpp Wallet locking fixes for -DDEBUG_LOCKORDER 2014-02-18 12:11:46 -05:00
sync.h Use mutex pointer instead of name for AssertLockHeld 2013-12-19 09:46:11 +01:00
threadsafety.h Cleanup code using forward declarations. 2013-11-10 09:36:28 -06:00
tinyformat.h Make tinyformat errors raise an exception instead of assert()ing 2014-02-28 09:25:00 +01:00
txdb.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
txdb.h Change new constants in txdb.h to int64_t 2014-02-18 17:13:32 +01:00
txmempool.cpp Remove CWalletTx::vfSpent 2014-02-26 11:53:51 -05:00
txmempool.h Remove CWalletTx::vfSpent 2014-02-26 11:53:51 -05:00
ui_interface.h [Qt] rescan progress 2014-04-02 03:48:07 +02:00
uint256.h Unittests for uint256.h 2013-12-25 11:07:21 +01:00
util.cpp Wrap create_directory calls in try...catch blocks. 2014-03-31 09:51:58 +02:00
util.h Wrap create_directory calls in try...catch blocks. 2014-03-31 09:51:58 +02:00
version.cpp VERSION obtained from source instead of the previous git tag. 2014-04-15 21:48:44 -10:00
version.h Bump protocol version to 70002 2013-11-11 10:31:09 +10:00
wallet.cpp Merge pull request #3701 2014-04-19 08:51:40 +02:00
wallet.h [Qt] rescan progress 2014-04-02 03:48:07 +02:00
walletdb.cpp AddToWallet implies BindWallet 2014-03-07 09:20:11 +01:00
walletdb.h Add -zapwallettxes cli/config option, used for wallet recovery 2014-02-14 11:33:07 -05:00