Browse Source

daemon: fix unwatch anchor depth.

We still need to watch the anchor output in this case: that's what
makes us handle the commit transcction we broadcast.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 9 years ago
parent
commit
5188b14c7c
  1. 3
      daemon/peer.c

3
daemon/peer.c

@ -1976,7 +1976,8 @@ void peer_unwatch_anchor_depth(struct peer *peer,
enum state_input timeout) enum state_input timeout)
{ {
assert(peer->anchor.watches); assert(peer->anchor.watches);
peer->anchor.watches = tal_free(peer->anchor.watches); assert(peer->anchor.watches->depthok == depthok);
peer->anchor.watches->depthok = INPUT_NONE;
} }
uint64_t commit_tx_fee(const struct bitcoin_tx *commit, uint64_t anchor_satoshis) uint64_t commit_tx_fee(const struct bitcoin_tx *commit, uint64_t anchor_satoshis)

Loading…
Cancel
Save