Skip to content

Commit

Permalink
fuzz: finer grained ImprovesFeerateDiagram check on error result
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Mar 26, 2024
1 parent c377ae9 commit 2a3ada8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/fuzz/rbf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,5 @@ FUZZ_TARGET(package_rbf, .init = initialize_package_rbf)

// If internals report error, wrapper should too
auto err_tuple{ImprovesFeerateDiagram(pool, direct_conflicts, all_conflicts, replacement_fees, replacement_vsize)};
if (!calc_results.has_value()) assert(err_tuple.has_value());
if (!calc_results.has_value()) assert(err_tuple.value().first == DiagramCheckError::UNCALCULABLE);
}

0 comments on commit 2a3ada8

Please sign in to comment.