Skip to content

Commit 9cf0826

Browse files
committed
Minimal updates to lightning-transaction-sync for bindings
Bindings don't accept dyn traits, but instead map any traits to a single dynamic struct. Thus, we can always take a specific trait to accept any implementation, which we do here.
1 parent 637155c commit 9cf0826

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

lightning-transaction-sync/src/electrum.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// http://opensource.org/licenses/MIT>, at your option. You may not use this file except in
66
// accordance with one or both of these licenses.
77

8+
//! Chain sync using the electrum protocol
9+
810
use crate::common::{ConfirmedTx, FilterQueue, SyncState};
911
use crate::error::{InternalError, TxSyncError};
1012

lightning-transaction-sync/src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// http://opensource.org/licenses/MIT>, at your option. You may not use this file except in
66
// accordance with one or both of these licenses.
77

8+
//! Common error types
9+
810
use std::fmt;
911

1012
#[derive(Debug)]

lightning-transaction-sync/src/esplora.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// http://opensource.org/licenses/MIT>, at your option. You may not use this file except in
66
// accordance with one or both of these licenses.
77

8+
//! Chain sync using the Esplora API
9+
810
use crate::common::{ConfirmedTx, FilterQueue, SyncState};
911
use crate::error::{InternalError, TxSyncError};
1012

lightning-transaction-sync/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@
7272
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
7373

7474
#[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))]
75-
mod esplora;
75+
pub mod esplora;
7676

7777
#[cfg(any(feature = "electrum"))]
78-
mod electrum;
78+
pub mod electrum;
7979

8080
#[cfg(any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum"))]
8181
mod common;
8282
#[cfg(any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum"))]
83-
mod error;
83+
pub mod error;
8484
#[cfg(any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum"))]
8585
pub use error::TxSyncError;
8686

0 commit comments

Comments
 (0)