Add ChainPoller implementation of Poll trait
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 1 Feb 2021 07:43:43 +0000 (23:43 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 26 Feb 2021 06:54:42 +0000 (00:54 -0600)
commit05ec06129c00655523780b2ea6ce57a538456164
treeca55978779d9cf14bcf67c668ce0df383d580184
parent7d6fce78025e7e55a2256a6c16ad4a4dddfcdceb
Add ChainPoller implementation of Poll trait

ChainPoller defines a strategy for polling a single BlockSource. It
handles validating chain data returned from the BlockSource. Thus, other
implementations of Poll must be defined in terms of ChainPoller.
lightning-block-sync/src/lib.rs
lightning-block-sync/src/poll.rs
lightning-block-sync/src/test_utils.rs [new file with mode: 0644]