rust-bitcoin-unsafe-fast/bitcoin
Andrew Poelstra 966b190f23
Merge rust-bitcoin/rust-bitcoin#2168: Use network when calculating difficulty
12d615d900 Use network when calculating difficulty (Tobin C. Harding)
62af5b54f3 Improve difficulty rustdocs (Tobin C. Harding)

Pull request description:

  The difficulty is a ratio of the max and current targets, since the max is network specific the difficulty calculation is also network specific.

  We already have network specific maximum target constants, use them when calculating the difficulty.

  Patch 1 is a trival docs improvement to `block::Header::difficulty`.

ACKs for top commit:
  Kixunil:
    ACK 12d615d900
  apoelstra:
    ACK 12d615d900

Tree-SHA512: 8b414c975306667309b0918109b3e5e8774496fc4c0f3413709e95ad7499bebf1a017def4c180a2bb5f1750c69bb505d94c738a28525b7ccc8b36e5e42514000
2023-11-06 14:38:00 +00:00
..
contrib hashes: Bump version to 0.13.0 2023-08-24 12:25:42 +10:00
embedded Add patch section to test crates 2023-07-18 10:27:48 +10:00
examples Use Message::from_digest 2023-10-11 08:16:25 +11:00
src Merge rust-bitcoin/rust-bitcoin#2168: Use network when calculating difficulty 2023-11-06 14:38:00 +00:00
tests Replace hex_script macro with a helper function 2023-10-20 10:20:23 +02:00
CHANGELOG.md Add a missing link to #2006 in 'bitcoin/CHANGELOG.md' 2023-10-26 21:06:48 +02:00
Cargo.toml bitcoin: Bump version number to v0.31.0 2023-10-28 08:32:30 +11:00
build.rs Create uniform build script 2023-10-30 14:40:41 +01:00