SIGN IN SIGN UP
FuelLabs / fuel-core UNCLAIMED

Rust full node implementation of the Fuel v2 protocol.

0 0 15 Rust

Add allow_partial parameter to the "coins to spend" query (#2912)

## Linked Issues/PRs
Closes https://github.com/FuelLabs/fuel-core/issues/2898

THIS IS A REVIVAL OF https://github.com/FuelLabs/fuel-core/pull/2904
WITH REVIEW COMMENTS ADDRESSED (because of CLA). Inspiration from Rafal.
Kudos to @rafal-ch !

## Description
This PR introduces the new allow_partial parameter to the "coins to
spend" inputs query. This field is optional to avoid breaking change. If
set to true, the query returns available coins instead of failing when
the requested amount is unavailable.

I consider this change "non-breaking" since the new parameter is not
strictly required when sending the query.

## Checklist
- [x] New behavior is reflected in tests

### Before requesting review
- [x] I have reviewed the code myself

---------

Co-authored-by: Mitchell Turner <james.mitchell.turner@gmail.com>
A
AurelienFT committed
6a1f8e94b0ec6da5c29dd9d73a7fa842afc0763d
Parent: d325191
Committed by GitHub <noreply@github.com> on 4/7/2025, 10:17:42 AM