Skip to content

Commit

Permalink
Add test cases for p2c
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamaguchi committed Sep 2, 2024
1 parent cb46b5a commit b4f6971
Show file tree
Hide file tree
Showing 3 changed files with 708 additions and 3 deletions.
5 changes: 5 additions & 0 deletions crates/esplora/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ miniscript = { version = "11.0.0", optional = true, default-features = false }
[dev-dependencies]
tdk_testenv = { path = "../testenv", default-features = false }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }
tdk_wallet = { path = "../wallet" }
tdk_sqlite = { path = "../sqlite" }
serde = { version = "1", features = ["derive", "rc"] }
serde_derive = "1.0"
serde_json = "1.0"

[features]
default = ["std", "async-https", "blocking-https-rustls"]
Expand Down
3 changes: 3 additions & 0 deletions crates/esplora/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ mod async_ext;
#[cfg(feature = "async")]
pub use async_ext::*;

#[cfg(feature = "serde")]
pub extern crate serde_crate as serde;

fn anchor_from_status(status: &TxStatus) -> Option<ConfirmationTimeHeightAnchor> {
if let TxStatus {
block_height: Some(height),
Expand Down
Loading

0 comments on commit b4f6971

Please sign in to comment.