rust-bitcoin-unsafe-fast/bitcoin/src
Andrew Poelstra e0ddead255
Merge rust-bitcoin/rust-bitcoin#2107: Use `Target` as type for `pow_limit`
38005f6aa7 Use Target for pow_limit (Tobin C. Harding)

Pull request description:

  The `Params::pow_limit` field is currently a `Work` type, this is incorrect. The proof of work limit is the highest _target_ not the lowest work (even though these have a relationship).

  Note that we use the highest _attainable_ target, this differs from Bitcoin Core and the reasoning is already documented in the code.

  Add new consts and document where they came from as well as how they differ to Core.

  Use the new consts in the various network specific `Params` types.

  Fix: #2106

ACKs for top commit:
  junderw:
    ACK 38005f6aa7
  apoelstra:
    ACK 38005f6aa7

Tree-SHA512: 5e71f69cdd555fd95a52fc1479e27b5e11226772f6432758c1364107a068bd1271486da6db1ece694da0287ce10cfbc18d28d6e3dbb0b9d387ff968eea43ab18
2023-10-12 15:05:51 +00:00
..
address Update bech32 dependency 2023-10-10 06:47:58 +11:00
blockdata Merge rust-bitcoin/rust-bitcoin#1986: Remove private hex test macro 2023-10-06 22:14:12 +00:00
consensus Use Target for pow_limit 2023-10-11 08:50:42 +11:00
crypto Use Message::from_digest 2023-10-11 08:16:25 +11:00
merkle_tree Merge rust-bitcoin/rust-bitcoin#1986: Remove private hex test macro 2023-10-06 22:14:12 +00:00
p2p Merge rust-bitcoin/rust-bitcoin#1986: Remove private hex test macro 2023-10-06 22:14:12 +00:00
psbt Use Message::from_digest 2023-10-11 08:16:25 +11:00
amount.rs Remove redundant guard 2023-10-07 11:19:47 +02:00
base58.rs Merge rust-bitcoin/rust-bitcoin#1986: Remove private hex test macro 2023-10-06 22:14:12 +00:00
bip32.rs Upgrade the secp dependency 2023-10-10 10:04:31 +11:00
bip152.rs Make error types uniform 2023-10-04 15:15:52 +11:00
bip158.rs Merge rust-bitcoin/rust-bitcoin#1986: Remove private hex test macro 2023-10-06 22:14:12 +00:00
error.rs Remove impl_std_error macro 2023-10-04 15:15:34 +11:00
hash_types.rs Move XpubIdentifier to the bip32 module 2023-09-04 02:13:55 +10:00
internal_macros.rs Remove private hex test macro 2023-09-30 06:22:52 +10:00
lib.rs Merge rust-bitcoin/rust-bitcoin#2021: Move and rename `XpubIdentifier` 2023-09-21 17:55:31 +00:00
network.rs Make error types uniform 2023-10-04 15:15:52 +11:00
parse.rs Make error types uniform 2023-10-04 15:15:52 +11:00
policy.rs bitcoin: Remove attribution from all files 2023-05-01 09:22:48 +10:00
pow.rs Use Target for pow_limit 2023-10-11 08:50:42 +11:00
serde_utils.rs Depend on hex-conservative 2023-07-21 10:59:46 +10:00
sign_message.rs Use Message::from_digest 2023-10-11 08:16:25 +11:00
string.rs Make error types uniform 2023-10-04 15:15:52 +11:00
taproot.rs Merge rust-bitcoin/rust-bitcoin#1986: Remove private hex test macro 2023-10-06 22:14:12 +00:00
test_macros.rs bitcoin: Remove attribution from all files 2023-05-01 09:22:48 +10:00