mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
chaintopology: restore anchor timeout.
Instead of using wall-clock time, we use blocks. This is simpler and better for database restores. And both sides will time out. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -174,6 +174,9 @@ static void connect_block(struct lightningd_state *dstate,
|
||||
add_tx_to_block(b, &txid);
|
||||
}
|
||||
b->full_txs = tal_free(b->full_txs);
|
||||
|
||||
/* Tell peers about new block. */
|
||||
peers_new_block(dstate, b->height);
|
||||
}
|
||||
|
||||
static bool tx_in_block(const struct block *b,
|
||||
|
||||
Reference in New Issue
Block a user