File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -818,8 +818,8 @@ Pkt *accept_pkt_revocation(struct peer *peer, const Pkt *pkt)
818
818
819
819
proto_to_sha256 (r -> revocation_preimage , ci -> revocation_preimage );
820
820
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 );
823
823
824
824
/* Save next revocation hash. */
825
825
proto_to_sha256 (r -> next_revocation_hash ,
Original file line number Diff line number Diff line change @@ -216,8 +216,8 @@ struct peer {
216
216
/* Stuff we have in common. */
217
217
struct peer_visible_state local , remote ;
218
218
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 ;
221
221
};
222
222
223
223
void setup_listeners (struct lightningd_state * dstate , unsigned int portnum );
Original file line number Diff line number Diff line change @@ -148,14 +148,14 @@ void peer_secrets_init(struct peer *peer)
148
148
sizeof (peer -> secrets -> revocation_seed .u .u8 )) != 1 )
149
149
fatal ("Could not get random bytes for revocation seed" );
150
150
151
- shachain_init (& peer -> their_preimages );
151
+ shachain_init (& peer -> their_preimages );
152
152
}
153
153
154
154
void peer_get_revocation_preimage (const struct peer * peer , u64 index ,
155
155
struct sha256 * preimage )
156
156
{
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 );
159
159
}
160
160
161
161
void peer_get_revocation_hash (const struct peer * peer , u64 index ,
You can’t perform that action at this time.
0 commit comments