mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
lightningd: remove num_revocations_received.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
a5d4a3eb2c
commit
1396cf6249
@@ -1135,8 +1135,6 @@ int peer_got_revoke(struct peer *peer, const u8 *msg)
|
||||
return -1;
|
||||
}
|
||||
|
||||
assert(revocations_received(&peer->their_shachain.chain)
|
||||
== peer->num_revocations_received);
|
||||
if (revokenum != revocations_received(&peer->their_shachain.chain)) {
|
||||
peer_internal_error(peer, "got_revoke: expected %"PRIu64
|
||||
" got %"PRIu64,
|
||||
@@ -1163,7 +1161,6 @@ int peer_got_revoke(struct peer *peer, const u8 *msg)
|
||||
|
||||
/* FIXME: Check per_commitment_secret -> per_commit_point */
|
||||
update_per_commit_point(peer, &next_per_commitment_point);
|
||||
peer->num_revocations_received++;
|
||||
|
||||
/* FIXME: Commit shachain and next_per_commit_point to db */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user