Skip to content

Commit 47ecc5f

Browse files
committed
wip
1 parent 3b70fa6 commit 47ecc5f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

fuzz/fuzz_targets/bdk_wallet.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,19 @@ fuzz_target!(|data: &[u8]| {
166166
BlockHash::from_byte_array(NETWORK.chain_hash().to_bytes());
167167

168168
// generate fuzzed persist
169-
wallet
170-
.persist(&mut db_conn)
171-
.expect("It should always persist successfully!");
169+
if let Err(e) = wallet.persist(&mut db_conn) {
170+
assert!(matches!(e, bdk_wallet::rusqlite::Error::ToSqlConversionFailure(..)));
171+
return;
172+
};
173+
// match wallet.persist(&mut db_conn) {
174+
// Ok(_) => continue,
175+
// Err(e) => {
176+
177+
// },
178+
// }
179+
// wallet
180+
// .persist(&mut db_conn)
181+
// .expect("It should always persist successfully!");
172182

173183
// generate fuzzed load
174184
wallet = Wallet::load()

0 commit comments

Comments
 (0)