protocol: rename update_complete_htlc to update_fulfill_htlc.

Complete was an overloaded word.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2015-09-25 11:51:18 +09:30
parent ca68c5c47f
commit 31459d6cd2
9 changed files with 110 additions and 91 deletions

View File

@@ -228,12 +228,12 @@ struct channel_state *gather_updates(const tal_t *ctx,
our_rhash, their_rhash);
break;
case PKT__PKT_UPDATE_COMPLETE_HTLC: {
case PKT__PKT_UPDATE_FULFILL_HTLC: {
struct sha256 r_hash, r_val;
Sha256Hash *rh;
/* Get hash, to find the HTLC. */
proto_to_sha256(pkt->update_complete_htlc->r, &r_val);
proto_to_sha256(pkt->update_fulfill_htlc->r, &r_val);
sha256(&r_hash, &r_val, sizeof(r_val));
rh = sha256_to_proto(ctx, &r_hash);
@@ -260,7 +260,7 @@ struct channel_state *gather_updates(const tal_t *ctx,
(long long)amount, *argv);
remove_htlc(&cstate->b, n);
}
update_rhash(pkt->update_complete_htlc->revocation_hash,
update_rhash(pkt->update_fulfill_htlc->revocation_hash,
received, num_updates,
&old_our_rhash, &old_their_rhash,
our_rhash, their_rhash);