| 11 | #include <version.h> |
| 12 | |
| 13 | FUZZ_TARGET(tx_out) |
| 14 | { |
| 15 | CDataStream ds(buffer, SER_NETWORK, INIT_PROTO_VERSION); |
| 16 | CTxOut tx_out; |
| 17 | try { |
| 18 | int version; |
| 19 | ds >> version; |
| 20 | ds.SetVersion(version); |
| 21 | ds >> tx_out; |
| 22 | } catch (const std::ios_base::failure&) { |
| 23 | return; |
| 24 | } |
| 25 | |
| 26 | const CFeeRate dust_relay_fee{DUST_RELAY_TX_FEE}; |
| 27 | (void)GetDustThreshold(tx_out, dust_relay_fee); |
| 28 | (void)IsDust(tx_out, dust_relay_fee); |
| 29 | (void)RecursiveDynamicUsage(tx_out); |
| 30 | |
| 31 | (void)tx_out.ToString(); |
| 32 | (void)tx_out.IsNull(); |
| 33 | tx_out.SetNull(); |
| 34 | assert(tx_out.IsNull()); |
| 35 | } |
nothing calls this directly
no test coverage detected