Skip to content

electrum: Fix GetBlockHash for Firo compatibility#3251

Merged
JoeGruffins merged 1 commit into
decred:masterfrom
martonp:fixFiroBlockHash
Apr 23, 2025
Merged

electrum: Fix GetBlockHash for Firo compatibility#3251
JoeGruffins merged 1 commit into
decred:masterfrom
martonp:fixFiroBlockHash

Conversation

@martonp

@martonp martonp commented Apr 19, 2025

Copy link
Copy Markdown
Collaborator

Fixed GetBlockHash to handle Firo's 120-byte block header. Previously, it deserialized a hex string and re-serialized it in Bitcoin's 80-byte format before double SHA-256 hashing, causing issues with Firo. Now, the hex string is converted to bytes and hashed.

Fixed GetBlockHash to handle Firo's 120-byte block header. Previously,
it deserialized a hex string and re-serialized it in Bitcoin's 80-byte
format before double SHA-256 hashing, causing issues with Firo. Now, the
hex string is converted to bytes and hashed.

@JoeGruffins JoeGruffins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested but change looks good.

@JoeGruffins

Copy link
Copy Markdown
Member

Does this fix #3252 or is that something different?

@martonp

martonp commented Apr 22, 2025

Copy link
Copy Markdown
Collaborator Author

Does this fix #3252 or is that something different?

No, it's something different.

@JoeGruffins

Copy link
Copy Markdown
Member

Ok, just waiting for @dev-warrior777 review.

@JoeGruffins
JoeGruffins merged commit 76be962 into decred:master Apr 23, 2025
martonp added a commit to martonp/dcrdex that referenced this pull request May 7, 2025
Fixed GetBlockHash to handle Firo's 120-byte block header. Previously,
it deserialized a hex string and re-serialized it in Bitcoin's 80-byte
format before double SHA-256 hashing, causing issues with Firo. Now, the
hex string is converted to bytes and hashed.
martonp added a commit to martonp/dcrdex that referenced this pull request Jul 8, 2025
Fixed GetBlockHash to handle Firo's 120-byte block header. Previously,
it deserialized a hex string and re-serialized it in Bitcoin's 80-byte
format before double SHA-256 hashing, causing issues with Firo. Now, the
hex string is converted to bytes and hashed.
buck54321 pushed a commit that referenced this pull request Jul 26, 2025
Fixed GetBlockHash to handle Firo's 120-byte block header. Previously,
it deserialized a hex string and re-serialized it in Bitcoin's 80-byte
format before double SHA-256 hashing, causing issues with Firo. Now, the
hex string is converted to bytes and hashed.
JoeGruffins pushed a commit to JoeGruffins/dcrdex that referenced this pull request Oct 7, 2025
Fixed GetBlockHash to handle Firo's 120-byte block header. Previously,
it deserialized a hex string and re-serialized it in Bitcoin's 80-byte
format before double SHA-256 hashing, causing issues with Firo. Now, the
hex string is converted to bytes and hashed.
JoeGruffins pushed a commit to JoeGruffins/dcrdex that referenced this pull request Oct 13, 2025
Fixed GetBlockHash to handle Firo's 120-byte block header. Previously,
it deserialized a hex string and re-serialized it in Bitcoin's 80-byte
format before double SHA-256 hashing, causing issues with Firo. Now, the
hex string is converted to bytes and hashed.
buck54321 pushed a commit that referenced this pull request Oct 17, 2025
Fixed GetBlockHash to handle Firo's 120-byte block header. Previously,
it deserialized a hex string and re-serialized it in Bitcoin's 80-byte
format before double SHA-256 hashing, causing issues with Firo. Now, the
hex string is converted to bytes and hashed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants