mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-07 14:18:18 +02:00
6072a2a6a1wallet: feebumper, fix crash when combined bump fee is unavailable (furszy) Pull request description: When a large cluster of unconfirmed transactions exceeds the limit, `calculateCombinedBumpFee()` returns `std::nullopt`. Previously, we continued executing and the optional value was accessed unconditionally, leading to a `std::bad_optional_access` exception (https://en.cppreference.com/w/cpp/utility/optional/value.html). Fix this by returning early when the bumped fee is null. Note: This is a crash for the GUI, and an uncaught exception for the RPC `bumpfee` and `psbtbumpfee`. ACKs for top commit: achow101: ACK6072a2a6a1luke-jr: utACK6072a2a6a1rkrux: crACK6072a2a6a1based on returning before accessing the null optional. Tree-SHA512: f863ace1426b2e743e2281e5c624b523de7317c1f305f88f369e77d60005460e4af58b424bc784304fd1ac30a3bfa575137537ec334fa6e449c827daeb262a99