daemon: store revocation hashes in the peer_visible_state structure.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-01-22 06:44:24 +10:30
parent abc002ff15
commit 12b9d39b76
2 changed files with 4 additions and 7 deletions

View File

@@ -20,6 +20,8 @@ struct peer_visible_state {
unsigned int mindepth;
/* Commitment fee they're offering (satoshi). */
u64 commit_fee;
/* Revocation hash for latest commit tx. */
struct sha256 revocation_hash;
};
struct peer {
@@ -58,9 +60,6 @@ struct peer {
/* Stuff we have in common. */
struct peer_visible_state us, them;
/* Their last revocation hash. */
struct sha256 their_rhash;
};
void setup_listeners(struct lightningd_state *dstate, unsigned int portnum);