diff --git a/lightningd/chaintopology.c b/lightningd/chaintopology.c index 65b5734c1..9b0d894d4 100644 --- a/lightningd/chaintopology.c +++ b/lightningd/chaintopology.c @@ -619,12 +619,12 @@ void topology_add_sync_waiter_(const tal_t *ctx, static void updates_complete(struct chain_topology *topo) { if (!bitcoin_blkid_eq(&topo->tip->blkid, &topo->prev_tip)) { - /* Tell lightningd about new block. */ - notify_new_block(topo->bitcoind->ld, topo->tip->height); - /* Tell watch code to re-evaluate all txs. */ watch_topology_changed(topo); + /* Tell lightningd about new block. */ + notify_new_block(topo->bitcoind->ld, topo->tip->height); + /* Maybe need to rebroadcast. */ rebroadcast_txs(topo, NULL);