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:
Rusty Russell
2016-05-04 16:13:50 +09:30
parent c94f77fd14
commit f6b36b9be3
3 changed files with 23 additions and 16 deletions

View File

@@ -1294,7 +1294,7 @@ const struct bitcoin_tx *bitcoin_commit(struct peer *peer)
peer->us.commit->tx->input[0].witness
= bitcoin_witness_2of2(peer->us.commit->tx->input,
&peer->us.commit->sig,
peer->us.commit->sig,
&sig,
&peer->them.commitkey,
&peer->us.commitkey);