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

Function height_states_valid

common/blockheight_states.c:111–115  ·  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

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

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.85

Tested by 1

channelseqFunction · 0.68