elements/src
Peter Todd 787ee0c913 Check redeemScript size does not exceed 520 byte limit
redeemScripts >520bytes can't be spent due to the
MAX_SCRIPT_ELEMENT_SIZE limit; previously the addmultisigaddress and
createmultisig RPC calls would let you violate that limit unknowingly.

Also made the wallet code itself check the redeemScript prior to adding
it to the wallet, which in the (rare) instance that a user has added an
invalid oversized redeemScript to their wallet causes an error on
startup. The affected key isn't added to the wallet; other keys are
unaffected.
2014-05-08 00:55:01 -04:00
..
compat build: add symbol for upcoming gcc 4.9's libstdc++ 2014-04-11 19:02:01 -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 Bugfix: configure: Look in libx32 subdirectory for boost libraries 2014-04-09 12:59:17 +00: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 don't use sed's -i option to stay posix compliant 2014-05-02 21:32:12 +02:00
test Add rejection of non-null CHECKMULTISIG dummy values 2014-05-08 00:55:01 -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.cpp Replace DecodeBase58/EncodeBase58 with direct implementation. 2014-04-22 09:30:21 +02:00
base58.h Replace DecodeBase58/EncodeBase58 with direct implementation. 2014-04-22 09:30:21 +02: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 Add new DNS seed from bitnodes.io. 2014-03-15 14:15:40 +11: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 reorder includes to compile on OpenBSD 2014-05-02 20:45:03 +02: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 Merge pull request #4114 2014-05-02 18:14:39 +02: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 Check redeemScript size does not exceed 520 byte limit 2014-05-08 00:55:01 -04: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 Increase IsStandard() scriptSig length 2014-05-08 00:55:01 -04:00
main.h Create (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constants 2014-05-05 05:35:27 -04:00
Makefile.am Merge pull request #4042 2014-04-22 16:24:43 +02:00
Makefile.include don't use sed's -i option to stay posix compliant 2014-05-02 21:32:12 +02:00
miner.cpp Create (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constants 2014-05-05 05:35:27 -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 better std::exception logging for CAddrDb 2014-05-02 14:35:30 +02:00
net.h Merge pull request #3514 2014-03-10 13:23:18 +01:00
netbase.cpp Remove build-time no-IPv6 setting 2014-05-01 12:15:36 +02:00
netbase.h Remove build-time no-IPv6 setting 2014-05-01 12:15:36 +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
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 [Qt] importwallet progress 2014-04-23 01:50:25 +02:00
rpcmining.cpp RPC command getmininginfo showing right genproclimit 2014-03-22 15:03:06 +01:00
rpcmisc.cpp Check redeemScript size does not exceed 520 byte limit 2014-05-08 00:55:01 -04: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 Create (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constants 2014-05-05 05:35:27 -04: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 Check redeemScript size does not exceed 520 byte limit 2014-05-08 00:55:01 -04:00
script.cpp Add rejection of non-null CHECKMULTISIG dummy values 2014-05-08 00:55:01 -04:00
script.h Do not trigger a DoS ban if SCRIPT_VERIFY_NULLDUMMY fails 2014-05-08 00:55:01 -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 use standard __func__ instead of __PRETTY_FUNCTION__ 2014-04-30 14:45:24 +02: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 #4058 2014-04-22 13:35:37 +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