mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
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:
parent
c5f6b1db56
commit
e417c988f6
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue