diff options
| author | MarcoFalke <[email protected]> | 2018-04-11 13:51:28 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-04-11 14:59:53 -0400 |
| commit | fae58eca934b5c7165b589c3bec1751d1b432b48 (patch) | |
| tree | 5d0c8b10608dcced118dc59d7812f8498fcfc012 /src/test/script_tests.cpp | |
| parent | Merge #12920: test: Fix sign for expected values (diff) | |
| download | discoin-fae58eca934b5c7165b589c3bec1751d1b432b48.tar.xz discoin-fae58eca934b5c7165b589c3bec1751d1b432b48.zip | |
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 46a2d1374..a06b573b3 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); |