| 654 | } |
| 655 | |
| 656 | static bool find_txout(struct wally_psbt *psbt, const u8 *wscript, u32 *funding_txout) |
| 657 | { |
| 658 | for (size_t i = 0; i < psbt->num_outputs; i++) { |
| 659 | if (memeq(wscript, tal_bytelen(wscript), psbt->outputs[i].script, |
| 660 | psbt->outputs[i].script_len)) { |
| 661 | *funding_txout = i; |
| 662 | return true; |
| 663 | } |
| 664 | } |
| 665 | return false; |
| 666 | } |
| 667 | |
| 668 | static char *insufficient_err_msg(const tal_t *ctx, |
| 669 | char *error, |
no test coverage detected