MCPcopy Create free account
hub / github.com/ElementsProject/lightning / height_states_valid

Function height_states_valid

common/blockheight_states.c:112–116  ·  view source on GitHub ↗

FIXME: we don't know opener inside fromwire_height_states, so can't do * this there :( */

Source from the content-addressed store, hash-verified

110/* FIXME: we don't know opener inside fromwire_height_states, so can't do
111 * this there :( */
112bool height_states_valid(const struct height_states *states, enum side opener)
113{
114 /* We use the same states as update fee */
115 return states->height[last_fee_state(opener)] != NULL;
116}
117
118void towire_height_states(u8 **pptr, const struct height_states *states)
119{

Callers 5

channelseqFunction · 0.85
peer_sending_commitsigFunction · 0.85
peer_got_commitsigFunction · 0.85
peer_got_revokeFunction · 0.85

Calls 1

last_fee_stateFunction · 0.70

Tested by 1

channelseqFunction · 0.68