]> git.bitcoin.ninja Git - rust-lightning/commit
Add subcrate which impls a simple SPV client from Bitcoin Core RPC
authorMatt Corallo <git@bluematt.me>
Tue, 5 May 2020 16:36:32 +0000 (12:36 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 5 May 2020 21:27:02 +0000 (17:27 -0400)
commit260ee0e158af4eda72cc69e007bfe6033e858463
tree47cd5eed36c73083a9e8b4ca2175e0f9be69ddd6
parentcbc0473d717d489b8510d7067f041fd73e9d9785
Add subcrate which impls a simple SPV client from Bitcoin Core RPC

This adds a new subcrate `lightning-block-sync` which is designed
to make it easier to get up-and-running by removing the effort of
building an SPV client and fetching the chain.

Instead of building a P2P client (and all the address management
that entails), this focuses on building a trivial SPV client which
can fetch from several instances of an abstract BlockSource. Then,
we provide two example BlockSource implementations that can fetch
from Bitcoin Core's RPC interface and Bitcoin Core's REST interface.

The code here is taken with heavy modifications from
rust-lightning-bitcoinrpc.
.github/workflows/build.yml
Cargo.toml
lightning-block-sync/Cargo.toml [new file with mode: 0644]
lightning-block-sync/src/http_clients.rs [new file with mode: 0644]
lightning-block-sync/src/lib.rs [new file with mode: 0644]
lightning-block-sync/src/utils.rs [new file with mode: 0644]