You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just had a quick look, we could do that.. if people decoded block hex I could them being confused why bitcoind can't find the prevBlock. (and the target comparison would also fail) The merkleRoot might also be worth doing as well so it's in the representation you'd compare against.
Maybe worth splitting out the header into another object at the same time? Could put things like verifyMerkleBranch on the header, leaving calculateMerkleRoot where it is for people with the full block.
Edit: don't think I've ever had a need to distinguish the hash from the reversed one, always just returned the latter
Thoughts @afk11 ?
Or maybe we should re-think and go with a
uint256
type that prints in reverse byte order... 🤷♂️The text was updated successfully, but these errors were encountered: