diff options
| author | MarcoFalke <[email protected]> | 2018-04-17 13:25:34 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-04-17 13:28:12 -0400 |
| commit | 6b46288a0853621bc911c26bb87bba22521059e7 (patch) | |
| tree | 279c5ade6cebcfd997a480a072d860485dece10c /src/test/script_tests.cpp | |
| parent | Merge #12982: Fix inconsistent namespace formatting guidelines (diff) | |
| parent | tests: Avoid copies of CTransaction (diff) | |
| download | discoin-6b46288a0853621bc911c26bb87bba22521059e7.tar.xz discoin-6b46288a0853621bc911c26bb87bba22521059e7.zip | |
Merge #12949: tests: Avoid copies of CTransaction
fae58eca93 tests: Avoid copies of CTransaction (MarcoFalke)
Pull request description:
Avoid the copy (or move) constructor of `CTransaction` in test code, whereever a simple reference can be used instead.
Tree-SHA512: 8ef2077a277d6182996f4671722fdc01a90909ae7431c1e52604aab8ed028910615028caf9b4cb07a9b15fdc04939dea2209cc3189dde7d38271256d9fe1076c
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); |