lightningd/peer_control.c: Implement waitblockheight.

This is needed to fully implement handling of blockheight disagreements
between us and payee.
If payee believes the blockheight is higher than ours, then `pay`
should wait for our node to achieve that blockheight.

Changelog-Add: Implement `waitblockheight` to wait for a specific blockheight.
This commit is contained in:
ZmnSCPxj
2019-12-26 10:19:09 +00:00
committed by Christian Decker
parent 44e8256338
commit 54cc735201
11 changed files with 244 additions and 2 deletions

View File

@@ -95,4 +95,8 @@ struct htlc_in_map *load_channels_from_wallet(struct lightningd *ld);
void peer_dev_memleak(struct command *cmd);
#endif /* DEVELOPER */
/* Triggered at each new block. */
void waitblockheight_notify_new_block(struct lightningd *ld,
u32 block_height);
#endif /* LIGHTNING_LIGHTNINGD_PEER_CONTROL_H */