Skip to content

Commit 257a4fd

Browse files
committed
Merge bitcoin/bitcoin#30616: test: remove ExtractDestination false assertion for ANCHOR script
a4f2b18 [test]: remove `ExtractDestination` false assertion for `ANCHOR` script (ismaelsadeeq) Pull request description: This PR fixes #30615 `ExtractDestination` returns `true` when `TxoutType` is `ANCHOR` see bitcoin/bitcoin#30615 (comment) ACKs for top commit: maflcko: review ACK a4f2b18 instagibbs: ACK a4f2b18 theStack: utACK a4f2b18 BrandonOdiwuor: Code Review ACK a4f2b18 glozow: ACK a4f2b18 Tree-SHA512: 6120494fe888acf26b252d4aadc01dc256e294ea5e4c954fd9b4694be27dc35cf0e33e3b3bcb012fb4abe1cab0b1d0d515db226fa771e791e0fe7efbcbd8834d
2 parents c2d15d9 + a4f2b18 commit 257a4fd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/fuzz/script.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,11 @@ FUZZ_TARGET(script, .init = initialize_script)
7676
assert(which_type == TxoutType::PUBKEY ||
7777
which_type == TxoutType::NONSTANDARD ||
7878
which_type == TxoutType::NULL_DATA ||
79-
which_type == TxoutType::MULTISIG ||
80-
which_type == TxoutType::ANCHOR);
79+
which_type == TxoutType::MULTISIG);
8180
}
8281
if (which_type == TxoutType::NONSTANDARD ||
8382
which_type == TxoutType::NULL_DATA ||
84-
which_type == TxoutType::MULTISIG ||
85-
which_type == TxoutType::ANCHOR) {
83+
which_type == TxoutType::MULTISIG) {
8684
assert(!extract_destination_ret);
8785
}
8886

0 commit comments

Comments
 (0)