Skip to content

Commit 85fdfaa

Browse files
committed
Implement BlockSource for REST and RPC clients
Interprets HTTP responses as either binary or JSON format, which are then converted to the appropriate data types.
1 parent 6ca3b8e commit 85fdfaa

File tree

6 files changed

+593
-3
lines changed

6 files changed

+593
-3
lines changed

lightning-block-sync/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ Utilities to fetch the chain data from a block source and feed them into Rust Li
99
"""
1010

1111
[features]
12-
rest-client = [ "serde_json", "chunked_transfer" ]
13-
rpc-client = [ "serde_json", "chunked_transfer" ]
12+
rest-client = [ "serde", "serde_json", "chunked_transfer" ]
13+
rpc-client = [ "serde", "serde_json", "chunked_transfer" ]
1414

1515
[dependencies]
1616
bitcoin = "0.24"
1717
lightning = { version = "0.0.12", path = "../lightning" }
1818
tokio = { version = "1.0", features = [ "io-util", "net" ], optional = true }
19+
serde = { version = "1.0", features = ["derive"], optional = true }
1920
serde_json = { version = "1.0", optional = true }
2021
chunked_transfer = { version = "1.4", optional = true }
2122
futures = { version = "0.3" }

0 commit comments

Comments
 (0)