diff options
author | MeshCollider <dobsonsa68@gmail.com> | 2019-09-10 11:27:50 +1200 |
---|---|---|
committer | MeshCollider <dobsonsa68@gmail.com> | 2020-08-14 08:44:42 +1200 |
commit | b887060d06290abf4983a487f8da6b0986b058ab (patch) | |
tree | 8c9f52099b69f64fe3264b5c3241d9c75068d559 /src/test/txvalidationcache_tests.cpp | |
parent | 8a85377cd0b60cb00dae4f595d628d1afbd28bd5 (diff) |
Replace usage of GetScriptForWitness with GetScriptForDestination
Diffstat (limited to 'src/test/txvalidationcache_tests.cpp')
-rw-r--r-- | src/test/txvalidationcache_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/txvalidationcache_tests.cpp b/src/test/txvalidationcache_tests.cpp index cdef7dcc3c..034577aa2c 100644 --- a/src/test/txvalidationcache_tests.cpp +++ b/src/test/txvalidationcache_tests.cpp @@ -157,7 +157,7 @@ BOOST_FIXTURE_TEST_CASE(checkinputs_test, TestChain100Setup) CScript p2pk_scriptPubKey = CScript() << ToByteVector(coinbaseKey.GetPubKey()) << OP_CHECKSIG; CScript p2sh_scriptPubKey = GetScriptForDestination(ScriptHash(p2pk_scriptPubKey)); CScript p2pkh_scriptPubKey = GetScriptForDestination(PKHash(coinbaseKey.GetPubKey())); - CScript p2wpkh_scriptPubKey = GetScriptForWitness(p2pkh_scriptPubKey); + CScript p2wpkh_scriptPubKey = GetScriptForDestination(WitnessV0KeyHash(coinbaseKey.GetPubKey())); FillableSigningProvider keystore; BOOST_CHECK(keystore.AddKey(coinbaseKey)); |