Remove odd script hash test
This test does an odd combination of function calls, its not obvious what it is supposed to be testing. The `to_p2wsh.is_p2wsh` is already tested above. The leading `to_p2sh` does not prove anything, one can put currently pass any script to `to_p2wsh` so this tests nothing. In preparation for patching the script hashing functionality first remove this odd test.
This commit is contained in:
parent
406e3486ab
commit
9cdb514434
|
@ -570,7 +570,6 @@ fn p2sh_p2wsh_conversion() {
|
||||||
let expected_out =
|
let expected_out =
|
||||||
ScriptBuf::from_hex("a914f386c2ba255cc56d20cfa6ea8b062f8b5994551887").unwrap();
|
ScriptBuf::from_hex("a914f386c2ba255cc56d20cfa6ea8b062f8b5994551887").unwrap();
|
||||||
assert!(redeem_script.to_p2sh().is_p2sh());
|
assert!(redeem_script.to_p2sh().is_p2sh());
|
||||||
assert!(redeem_script.to_p2sh().to_p2wsh().is_p2wsh());
|
|
||||||
assert_eq!(redeem_script.to_p2wsh(), expected_witout);
|
assert_eq!(redeem_script.to_p2wsh(), expected_witout);
|
||||||
assert_eq!(redeem_script.to_p2wsh().to_p2sh(), expected_out);
|
assert_eq!(redeem_script.to_p2wsh().to_p2sh(), expected_out);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue