From: Jeffrey Czyz Date: Wed, 19 Oct 2022 13:46:07 +0000 (-0500) Subject: Merge pull request #1777 from lexe-tech/max/best-block-header-best-block X-Git-Tag: v0.0.112~10 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=ee17faff904b0be91902b64e2fbcb05f9db28a51;p=rust-lightning Merge pull request #1777 from lexe-tech/max/best-block-header-best-block Add `.to_best_block()` method to `ValidatedBlockHeader` --- ee17faff904b0be91902b64e2fbcb05f9db28a51 diff --cc lightning-block-sync/src/poll.rs index d45e900ba,1243d004a..05ccd4504 --- a/lightning-block-sync/src/poll.rs +++ b/lightning-block-sync/src/poll.rs @@@ -1,9 -1,11 +1,10 @@@ //! Adapters that make one or more [`BlockSource`]s simpler to poll for new chain tip transitions. -use crate::{AsyncBlockSourceResult, BlockHeaderData, BlockSource, BlockSourceError, BlockSourceResult}; +use crate::{AsyncBlockSourceResult, BlockData, BlockHeaderData, BlockSource, BlockSourceError, BlockSourceResult}; -use bitcoin::blockdata::block::Block; use bitcoin::hash_types::BlockHash; use bitcoin::network::constants::Network; + use lightning::chain::BestBlock; use std::ops::Deref;