]> 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>
Mon, 25 May 2020 19:33:56 +0000 (15:33 -0400)
commitf6e42b4d3eec5901d80805d0c25a61253ee35a8d
treef5f6ec49e11b527fe5f424dcacfed272e11a86fd
parent7889fa25fd93d585727971c9a987605de9223632
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]