Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash mismatch when fetching HardForkInitiation Gov action metadata #1928

Open
dmitrystas opened this issue Dec 26, 2024 · 2 comments · May be fixed by #1933
Open

Hash mismatch when fetching HardForkInitiation Gov action metadata #1928

dmitrystas opened this issue Dec 26, 2024 · 2 comments · May be fixed by #1933
Labels
bug Something isn't working

Comments

@dmitrystas
Copy link

OS
Your OS: Ubuntu 24.04

Versions
The db-sync version (eg cardano-db-sync --version): cardano-db-sync 13.6.0.4 - linux-x86_64 - ghc-8.10
git revision 0b7c281
PostgreSQL version: 17

Build/Install Method
The method you use to build or install cardano-db-sync: Static binaries

Run method
The method you used to run cardano-db-sync (eg Nix/Docker/systemd/none): systemd

Additional context
Mainnet

Problem Report
DB-Sync calculates wrong hash for the latest (HardForkInitiation) Governance action

Hash mismatch when fetching metadata from https://raw.githubusercontent.com/IntersectMBO/governance-actions/refs/heads/main/mainnet/2024-10-30-hf10/metadata.jsonld. Expected "8a1bd37caa6b914a8b569adb63a0f41d8f159c110dc5c8409118a3f087fffb43" but got "5e9460221d7cd7159abca1409b77364e4dc182d37a6c32b5843f969b185a3201".

But this is not the case

cardano-cli hash anchor-data --url https://raw.githubusercontent.com/IntersectMBO/governance-actions/refs/heads/main/mainnet/2024-10-30-hf10/metadata.jsonld

shows us 8a1bd37caa6b914a8b569adb63a0f41d8f159c110dc5c8409118a3f087fffb43 as expected

@dmitrystas dmitrystas added the bug Something isn't working label Dec 26, 2024
@kderme
Copy link
Contributor

kderme commented Jan 21, 2025

Sorry for the late reply. The problem here is that db-sync fetches a quite limited amount of bytes for DOS protection. So it hashes a trimmed version.

@kderme kderme linked a pull request Jan 21, 2025 that will close this issue
@slowbackspace
Copy link

slowbackspace commented Jan 22, 2025

Hi @kderme, any update on when this might be resolved?

Does this affect only HardForkInitiation proposals?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants