Require best block timestamp within ChannelManager::new
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Thu, 22 Jun 2023 22:19:15 +0000 (15:19 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Tue, 27 Jun 2023 20:43:14 +0000 (13:43 -0700)
commit82e0df5e4dcc41c2d32ded6ff433727b15570ea4
treef646936e993b4cd6ff01b86a40f0a58a6dfb0090
parent15b1c9b83715ed98fa8c538195d13d44967031fb
Require best block timestamp within ChannelManager::new

This ensures freshly initialized nodes can proceed to create unexpired
invoices without a call to `best_block_updated`, since an invoice's
expiration delta is applied to `highest_seen_timestamp`.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
lightning-background-processor/src/lib.rs
lightning-invoice/src/utils.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs