fuzz: coins_view: remove an incorrect assertion

Again, this was not hit because the default implementation of
`CCoinsView` return `false` for `GetCoin`.
This commit is contained in:
Antoine Poinsot 2023-08-04 13:55:54 +02:00
parent c5f6b1db56
commit e417c988f6
No known key found for this signature in database
GPG key ID: E13FC145CD3F4304

View file

@ -163,7 +163,8 @@ FUZZ_TARGET(coins_view, .init = initialize_coins_view)
Coin coin_using_backend_get_coin;
if (backend_coins_view.GetCoin(random_out_point, coin_using_backend_get_coin)) {
assert(exists_using_have_coin_in_backend);
assert(coin_using_get_coin == coin_using_backend_get_coin);
// Note we can't assert that `coin_using_get_coin == coin_using_backend_get_coin` because the coin in
// the cache may have been modified but not yet flushed.
} else {
assert(!exists_using_have_coin_in_backend);
}