| 263 | } |
| 264 | |
| 265 | static bool resolve_all_output_amount(struct txprepare *txp, |
| 266 | struct amount_sat excess) |
| 267 | { |
| 268 | if (!amount_sat_greater_eq(excess, chainparams->dust_limit)) |
| 269 | return false; |
| 270 | |
| 271 | assert(amount_sat_eq(txp->outputs[txp->all_output_idx].amount, |
| 272 | AMOUNT_SAT(-1ULL))); |
| 273 | txp->outputs[txp->all_output_idx].amount = excess; |
| 274 | return true; |
| 275 | } |
| 276 | |
| 277 | /* fundpsbt/utxopsbt gets a viable PSBT for us. */ |
| 278 | static struct command_result *psbt_created(struct command *cmd, |
no test coverage detected