diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-04-11 13:51:28 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-04-11 14:59:53 -0400 |
commit | fae58eca934b5c7165b589c3bec1751d1b432b48 (patch) | |
tree | 5d0c8b10608dcced118dc59d7812f8498fcfc012 /src/test/script_tests.cpp | |
parent | b1fdfc1a8c072f798305f21d5e69207c9e1bed89 (diff) |
tests: Avoid copies of CTransaction
Diffstat (limited to 'src/test/script_tests.cpp')
-rw-r--r-- | src/test/script_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp index 46a2d13745..a06b573b37 100644 --- a/src/test/script_tests.cpp +++ b/src/test/script_tests.cpp @@ -1029,7 +1029,7 @@ BOOST_AUTO_TEST_CASE(script_PushData) } CScript -sign_multisig(CScript scriptPubKey, std::vector<CKey> keys, CTransaction transaction) +sign_multisig(const CScript& scriptPubKey, const std::vector<CKey>& keys, const CTransaction& transaction) { uint256 hash = SignatureHash(scriptPubKey, transaction, 0, SIGHASH_ALL, 0, SigVersion::BASE); @@ -1053,7 +1053,7 @@ sign_multisig(CScript scriptPubKey, std::vector<CKey> keys, CTransaction transac return result; } CScript -sign_multisig(CScript scriptPubKey, const CKey &key, CTransaction transaction) +sign_multisig(const CScript& scriptPubKey, const CKey& key, const CTransaction& transaction) { std::vector<CKey> keys; keys.push_back(key); |