]> git.bitcoin.ninja Git - rust-lightning/commit
Add subcrate which impls a simple SPV client from Bitcoin Core RPC 2020-05-rest-chainsync
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:26:23 +0000 (17:26 -0400)
commit197e24493dd07e1ad8f3b62c87d2a7ceb66a6868
tree7cda99bdbe51a23a600a89a03f1f13a327082338
parenteec4beb24b6f911b16f1edba5b55d9af4809db9d
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]