Skip to content

Commit e417c98

Browse files
committed
fuzz: coins_view: remove an incorrect assertion
Again, this was not hit because the default implementation of `CCoinsView` return `false` for `GetCoin`.
1 parent c5f6b1d commit e417c98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/fuzz/coins_view.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ FUZZ_TARGET(coins_view, .init = initialize_coins_view)
163163
Coin coin_using_backend_get_coin;
164164
if (backend_coins_view.GetCoin(random_out_point, coin_using_backend_get_coin)) {
165165
assert(exists_using_have_coin_in_backend);
166-
assert(coin_using_get_coin == coin_using_backend_get_coin);
166+
// Note we can't assert that `coin_using_get_coin == coin_using_backend_get_coin` because the coin in
167+
// the cache may have been modified but not yet flushed.
167168
} else {
168169
assert(!exists_using_have_coin_in_backend);
169170
}

0 commit comments

Comments
 (0)