mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
fuzz: Sanity check result of CheckTransaction
This commit is contained in:
parent
c857148636
commit
faacb7eadb
1 changed files with 5 additions and 2 deletions
|
|
@ -61,8 +61,11 @@ FUZZ_TARGET_INIT(transaction, initialize_transaction)
|
|||
return;
|
||||
}
|
||||
|
||||
TxValidationState state_with_dupe_check;
|
||||
(void)CheckTransaction(tx, state_with_dupe_check);
|
||||
{
|
||||
TxValidationState state_with_dupe_check;
|
||||
const bool res{CheckTransaction(tx, state_with_dupe_check)};
|
||||
Assert(res == state_with_dupe_check.IsValid());
|
||||
}
|
||||
|
||||
const CFeeRate dust_relay_fee{DUST_RELAY_TX_FEE};
|
||||
std::string reason;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue