]> git.bitcoin.ninja Git - rust-lightning/commit
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>
Mon, 22 Feb 2021 16:49:14 +0000 (08:49 -0800)
commit9e8aca725ee1b5bde011684f2e3da012b16e14de
tree28443edff6771abdb3e821af7d77fe640fdc9c48
parent71b5ccc9ce2cb4ae77c54e075c21e9eb231ceed9
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]