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

@@ -489,6 +489,8 @@ void add_peer(struct lightningd *ld, u64 unique_id,
peer->our_msatoshi = NULL;
peer->state = UNINITIALIZED;
peer->channel_info = NULL;
peer->last_tx = NULL;
peer->last_sig = NULL;
peer->last_was_revoke = false;
peer->last_sent_commit = NULL;
peer->remote_shutdown_scriptpubkey = NULL;