Apply suggestions from code review

Co-Authored-By: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
str4d 2019-12-17 11:05:28 -06:00 committed by GitHub
parent 2cb14d79b1
commit 31e1ea63e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -20,7 +20,7 @@
*
* 1. scriptSigs with extra data stuffed into them,
* not consumed by scriptPubKey (or P2SH script)
* 2. P2SH scripts with a crazy number of expensive
* 2. P2SH scripts with very many expensive
* CHECKSIG/CHECKMULTISIG operations
*
* Check transaction inputs, and make sure any

View File

@ -111,8 +111,7 @@ bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet)
* multisig scripts, this populates the addressRet vector with the pubkey IDs
* and nRequiredRet with the n required to spend. For other destinations,
* addressRet is populated with a single value and nRequiredRet is set to 1.
* Returns true if successful. Currently does not extract address from
* pay-to-witness scripts.
* Returns true if successful.
*/
bool ExtractDestinations(const CScript& scriptPubKey, txnouttype& typeRet, std::vector<CTxDestination>& addressRet, int& nRequiredRet);