| 40 | } |
| 41 | |
| 42 | static struct pubkey pubkey_from_hex(const char *hex) |
| 43 | { |
| 44 | struct pubkey pubkey; |
| 45 | if (strstarts(hex, "0x")) |
| 46 | hex += 2; |
| 47 | if (!pubkey_from_hexstr(hex, strlen(hex), &pubkey)) |
| 48 | assert(false && "pubkey_from_hexstr failed"); |
| 49 | return pubkey; |
| 50 | } |
| 51 | |
| 52 | /* These helpers invoke the underlying full_channel API and then drive |
| 53 | * the full commitment dance (the four steps of sending_commit -> |
no test coverage detected