Define a Poll trait as an adaptor on BlockSource
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 1 Feb 2021 07:42:27 +0000 (23:42 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 26 Feb 2021 06:54:41 +0000 (00:54 -0600)
commit7d6fce78025e7e55a2256a6c16ad4a4dddfcdceb
tree1c939ffa830a9dd2e35d9e2e048d8f829e95ab48
parent94bb0c9128c2635ea08ec089f79fab04880dedd0
Define a Poll trait as an adaptor on BlockSource

SPV clients need to poll one or more block sources for the best chain
tip and to retrieve related chain data. The Poll trait serves as an
adaptor interface for BlockSource. Implementations may define an
appropriate polling strategy.
lightning-block-sync/src/lib.rs
lightning-block-sync/src/poll.rs [new file with mode: 0644]