lightningd: keep last valid tx, and its signature.

This avoids us having to reconstruct it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-08-18 14:13:52 +09:30
parent fc24c71196
commit dbfac68c3f
5 changed files with 73 additions and 4 deletions

View File

@@ -76,6 +76,10 @@ struct peer {
/* Amount going to us, not counting unfinished HTLCs; if we have one. */
u64 *our_msatoshi;
/* Last tx they gave us (if any). */
struct bitcoin_tx *last_tx;
secp256k1_ecdsa_signature *last_sig;
/* Keys for channel. */
struct channel_info *channel_info;