mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
bitcoin-util: print genesis hash in display order #36471
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36471
Loading…
Reference in a new issue
No description provided.
Delete branch "util-getchainparams-genesis-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
bitcoin-util getchainparamsprints the genesis hash byte-reversed compared togetblockhash 0:"genesis": "6fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000",
000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
Use
GetHex()instead ofHexStr(), consistent withpow.limitin the same output and with the RPCs.The command is new in v32.0 (#35736), so I believe this should be backported before final release to avoid changing the output format afterwards.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Base:
282a05b8d10e317d2ce4b42b96ee8b13345804eaHead:
cc8285e8c98ac91a380eec899bab2aed5863a458I found no actionable issues in this static review.
Full review report
ACK
cc8285e8c9code review ACK
cc8285e8c9In theory, one could use something like this to make it more explicit:
But it will be a bit verbose and I am not sure if it really helps.
lgtm ACK
cc8285e8c9Backported to
32.xin #36427.