aboutsummaryrefslogtreecommitdiff
path: root/src/hash.cpp
diff options
context:
space:
mode:
authorPeter Todd <pete@petertodd.org>2014-03-10 22:43:15 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2014-08-18 15:34:29 +0200
commitfd0c4606bc89ab974e39a98fd42f4a28eb874062 (patch)
treef0f5184d4f0a36e16f6a23d4771caee01e345638 /src/hash.cpp
parent4b57c5b3c7f425a8cd122491c9dd69fe52dd3715 (diff)
downloadbitcoin-fd0c4606bc89ab974e39a98fd42f4a28eb874062.tar.xz
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.
Diffstat (limited to 'src/hash.cpp')
0 files changed, 0 insertions, 0 deletions