Skip to content

Commit be1a230

Browse files
committed
fix formatting issues
1 parent 07e6ed0 commit be1a230

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

daemon/packets.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,8 @@ Pkt *accept_pkt_revocation(struct peer *peer, const Pkt *pkt)
818818

819819
proto_to_sha256(r->revocation_preimage, ci->revocation_preimage);
820820

821-
// save revocation preimages in shachain
822-
shachain_add_hash(&peer->their_preimages, 0xFFFFFFFFFFFFFFFFL - ci->commit_num, ci->revocation_preimage);
821+
// save revocation preimages in shachain
822+
shachain_add_hash(&peer->their_preimages, 0xFFFFFFFFFFFFFFFFL - ci->commit_num, ci->revocation_preimage);
823823

824824
/* Save next revocation hash. */
825825
proto_to_sha256(r->next_revocation_hash,

daemon/peer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ struct peer {
216216
/* Stuff we have in common. */
217217
struct peer_visible_state local, remote;
218218

219-
/* this is where we will store their revocation preimages*/
220-
struct shachain their_preimages;
219+
/* this is where we will store their revocation preimages*/
220+
struct shachain their_preimages;
221221
};
222222

223223
void setup_listeners(struct lightningd_state *dstate, unsigned int portnum);

daemon/secrets.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ void peer_secrets_init(struct peer *peer)
148148
sizeof(peer->secrets->revocation_seed.u.u8)) != 1)
149149
fatal("Could not get random bytes for revocation seed");
150150

151-
shachain_init(&peer->their_preimages);
151+
shachain_init(&peer->their_preimages);
152152
}
153153

154154
void peer_get_revocation_preimage(const struct peer *peer, u64 index,
155155
struct sha256 *preimage)
156156
{
157-
// generate hashes in reverse order, otherwise the first hash gives away everything
158-
shachain_from_seed(&peer->secrets->revocation_seed, 0xFFFFFFFFFFFFFFFFL - index, preimage);
157+
// generate hashes in reverse order, otherwise the first hash gives away everything
158+
shachain_from_seed(&peer->secrets->revocation_seed, 0xFFFFFFFFFFFFFFFFL - index, preimage);
159159
}
160160

161161
void peer_get_revocation_hash(const struct peer *peer, u64 index,

0 commit comments

Comments
 (0)