Skip to content

Commit f28cf2f

Browse files
committed
Add async_poll.rs to lightning-block-sync
In the next commit we'll fetch blocks during initial connection in parallel, which requires a multi-future poller. Here we add a symlink to the existing `lightning` `async_poll.rs` file, making it available in `lightning-block-sync`
1 parent ef4a298 commit f28cf2f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../lightning/src/util/async_poll.rs

lightning-block-sync/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
#![deny(rustdoc::broken_intra_doc_links)]
1717
#![deny(rustdoc::private_intra_doc_links)]
1818
#![deny(missing_docs)]
19-
#![deny(unsafe_code)]
2019
#![cfg_attr(docsrs, feature(doc_cfg))]
2120

21+
extern crate alloc;
22+
extern crate core;
23+
2224
#[cfg(any(feature = "rest-client", feature = "rpc-client"))]
2325
pub mod http;
2426

@@ -42,6 +44,9 @@ mod test_utils;
4244
#[cfg(any(feature = "rest-client", feature = "rpc-client"))]
4345
mod utils;
4446

47+
#[allow(unused)]
48+
mod async_poll;
49+
4550
use crate::poll::{ChainTip, Poll, ValidatedBlockHeader};
4651

4752
use bitcoin::block::{Block, Header};

0 commit comments

Comments
 (0)