mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
peer: don't leave initial cstate around.
Attach it to the commit. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -4071,7 +4071,7 @@ bool setup_first_commit(struct peer *peer)
|
||||
assert(!peer->remote.commit->tx);
|
||||
|
||||
/* Revocation hashes already filled in, from pkt_open */
|
||||
peer->local.commit->cstate = initial_cstate(peer,
|
||||
peer->local.commit->cstate = initial_cstate(peer->local.commit,
|
||||
peer->anchor.satoshis,
|
||||
peer->local.commit_fee_rate,
|
||||
peer->local.offer_anchor
|
||||
@@ -4080,7 +4080,7 @@ bool setup_first_commit(struct peer *peer)
|
||||
if (!peer->local.commit->cstate)
|
||||
return false;
|
||||
|
||||
peer->remote.commit->cstate = initial_cstate(peer,
|
||||
peer->remote.commit->cstate = initial_cstate(peer->remote.commit,
|
||||
peer->anchor.satoshis,
|
||||
peer->remote.commit_fee_rate,
|
||||
peer->local.offer_anchor
|
||||
|
||||
Reference in New Issue
Block a user