diff options
author | Antoine Poinsot <darosior@protonmail.com> | 2023-08-04 13:55:54 +0200 |
---|---|---|
committer | Antoine Poinsot <darosior@protonmail.com> | 2023-08-11 18:11:07 +0200 |
commit | e417c988f61bf9d3948d5c8e169626922fe6e24c (patch) | |
tree | 4e011830ba2ca24057128fde38c7531b3fcc495d /src/test/fuzz | |
parent | c5f6b1db56f67f529377bfb61f58c0a8c17b0127 (diff) |
fuzz: coins_view: remove an incorrect assertion
Again, this was not hit because the default implementation of
`CCoinsView` return `false` for `GetCoin`.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/coins_view.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/fuzz/coins_view.cpp b/src/test/fuzz/coins_view.cpp index c0dff7e485..b088aa0bd7 100644 --- a/src/test/fuzz/coins_view.cpp +++ b/src/test/fuzz/coins_view.cpp @@ -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); } |