| 1621 | } |
| 1622 | |
| 1623 | static void start_commit_timer(struct peer *peer) |
| 1624 | { |
| 1625 | /* Already armed? */ |
| 1626 | if (peer->commit_timer) |
| 1627 | return; |
| 1628 | |
| 1629 | peer->commit_timer = new_reltimer(&peer->timers, peer, |
| 1630 | time_from_msec(peer->commit_msec), |
| 1631 | send_commit_if_not_stfu, peer); |
| 1632 | } |
| 1633 | |
| 1634 | /* Fetch the requested point. The secret is no longer returned, use |
| 1635 | * revoke_commitment instead. It is legal to call this on any |
no test coverage detected