mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
Revert: 064309df1a "peer: signature in commit_info is always valid."
It's not quite true: if we offer the anchor, we have a commitinfo without their signature yet. So make it a pointer again. Since we always allocate struct commit_info with talz, it starts as a NULL pointer. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -61,8 +61,8 @@ struct commit_info {
|
||||
struct bitcoin_tx *tx;
|
||||
/* Channel state for this tx. */
|
||||
struct channel_state *cstate;
|
||||
/* Other side's signature for this commit tx. */
|
||||
struct bitcoin_signature sig;
|
||||
/* Other side's signature for last commit tx (if known) */
|
||||
struct bitcoin_signature *sig;
|
||||
/* Map for permutation: see commit_tx.c */
|
||||
int *map;
|
||||
/* Revocation preimage (if known). */
|
||||
|
||||
Reference in New Issue
Block a user