mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-28 07:48:36 +02:00
consensus: Explain why fCheckDuplicateInputs can not be skipped and remove it
This commit is contained in:
@@ -43,12 +43,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
|
||||
}
|
||||
|
||||
CValidationState state_with_dupe_check;
|
||||
const bool valid_with_dupe_check = CheckTransaction(tx, state_with_dupe_check, /* fCheckDuplicateInputs= */ true);
|
||||
CValidationState state_without_dupe_check;
|
||||
const bool valid_without_dupe_check = CheckTransaction(tx, state_without_dupe_check, /* fCheckDuplicateInputs= */ false);
|
||||
if (valid_with_dupe_check) {
|
||||
assert(valid_without_dupe_check);
|
||||
}
|
||||
(void)CheckTransaction(tx, state_with_dupe_check);
|
||||
|
||||
const CFeeRate dust_relay_fee{DUST_RELAY_TX_FEE};
|
||||
std::string reason;
|
||||
|
||||
Reference in New Issue
Block a user