Files
bitcoin/test/functional/feature_asmap.py
merge-script fc6923cec5 Merge bitcoin/bitcoin#36215: asmap: Make version match externally computed hashes
7ee94bf4b0 asmap: Make outputted ASMap version match externally computed hashes (Hodlinator)

Pull request description:

  #### Problem

  Running CLI utilities such as `sha256sum` on the encoded asmap blob, and then grepping for the outputted hash in the `bitcoind` debug.log was unsuccessful.

  #### Solution

  * Change the version computation from double to single SHA256
    *Note: This invalidates serialized AddrMan data which forces re-bucketing.*
  * Avoid reversing byte order when logging the version

  Inspired by https://github.com/bitcoin/bitcoin/pull/36201#issuecomment-5605080265 + https://github.com/bitcoin/bitcoin/pull/36201#pullrequestreview-5158109401

ACKs for top commit:
  fjahr:
    tACK 7ee94bf4b0
  jurraca:
    ACK 7ee94bf4b0
  sedited:
    ACK 7ee94bf4b0

Tree-SHA512: 362edea9ebd62eeb4f9a0677386018826ca4454028d7132c31940a6ea2abf89305da916c8786aaf41012dab8c79cdc8b171c1cb3a5d815ad10ce3df1c615c45f
2026-09-10 19:35:07 +02:00

7.2 KiB
Executable File