| 714 | } |
| 715 | |
| 716 | static void map_replace(const tal_t *ctx, |
| 717 | struct wally_map *map, |
| 718 | const u8 *key, |
| 719 | const void *value, |
| 720 | size_t value_len) |
| 721 | { |
| 722 | const unsigned char *checked_value = memcheck(value, value_len); |
| 723 | tal_wally_start(); |
| 724 | if (wally_map_replace(map, key, tal_bytelen(key), |
| 725 | checked_value, value_len) != WALLY_OK) |
| 726 | abort(); |
| 727 | tal_wally_end(ctx); |
| 728 | } |
| 729 | |
| 730 | void psbt_input_set_unknown(const tal_t *ctx, |
| 731 | struct wally_psbt_input *in, |
no test coverage detected