Check difficulty transition against `Target` instead of `Work`
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 28 Apr 2023 09:06:23 +0000 (02:06 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 10 May 2023 18:39:46 +0000 (11:39 -0700)
commit4f9bcb9958d0981dbc69fcbee70fcc847f786392
tree32704fc12068389f4dded6cca82897b973e99b8c
parent72f5e0b0639d24f87745dab9eef63bdd784a3d9c
Check difficulty transition against `Target` instead of `Work`

`rust-bitcoin v0.30.0` made some changes in this area that no longer
allow us to work with the previously exposed `U256` type. While `Work`
and `Target` (they're inverses of each other) essentially represent the
same concept, it makes more sense from their API's perspective to only
expose difficulty transitions and adjustments on `Target`s.
lightning-block-sync/src/poll.rs