Immutable BlockSource interface
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 14 Feb 2022 21:31:59 +0000 (15:31 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 4 Apr 2022 01:59:11 +0000 (20:59 -0500)
commit3cdbbf56e42daf67b954cd983052b09a9a18b8cd
tree1b06e5aca616369475e7226664ab97080b93d4d0
parent0a0f87c00f3c5e30965751fb46502ebc1f110333
Immutable BlockSource interface

Querying a BlockSource is a logically immutable operation. Use non-mut
references in its interface to reflect this, which allows for users to
hold multiple references if desired.
lightning-block-sync/Cargo.toml
lightning-block-sync/src/init.rs
lightning-block-sync/src/lib.rs
lightning-block-sync/src/poll.rs
lightning-block-sync/src/rest.rs
lightning-block-sync/src/rpc.rs
lightning-block-sync/src/test_utils.rs