mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
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>
This commit is contained in:
parent
b9d4f7c0ab
commit
5188b14c7c
@ -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…
Reference in New Issue
Block a user