mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 05:32:22 +02:00
7ee94bf4b0asmap: 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: tACK7ee94bf4b0jurraca: ACK7ee94bf4b0sedited: ACK7ee94bf4b0Tree-SHA512: 362edea9ebd62eeb4f9a0677386018826ca4454028d7132c31940a6ea2abf89305da916c8786aaf41012dab8c79cdc8b171c1cb3a5d815ad10ce3df1c615c45f
7.2 KiB
Executable File
7.2 KiB
Executable File