Skip to content

Conversation

Cmdv
Copy link
Contributor

@Cmdv Cmdv commented Oct 15, 2025

This PR implements graceful handling of off-chain voting anchor metadata based on parsing success.
fixes #1995
When the anchor hash matches, data is stored with an is_valid flag indicating:

  • TRUE: Valid JSON conforming to CIP-100 → all related tables populated
  • FALSE: Valid JSON not conforming to CIP-100 → JSON stored, related tables empty
  • NULL: Invalid JSON → error message in json column, raw bytes preserved

Hash mismatches continue to go to the error table for retry. Tests and documentation updated accordingly.

Cmdv and others added 2 commits October 10, 2025 16:18
In it's current state, we're unable to build cardana-chain-gen:

    cannot find -lpgcommon: No such file or directory
    cannot find -lpgport: No such file or directory
    collect2: error: ld returned 1 exit status

Remove the extra configure flags, and see if we can still build all the
other artifacts.
@Cmdv Cmdv requested a review from a team as a code owner October 15, 2025 12:27
@Cmdv Cmdv force-pushed the 1995-offchain-voting-json branch 2 times, most recently from cd80e4c to 7c299d2 Compare October 15, 2025 12:32
@Cmdv Cmdv force-pushed the 1995-offchain-voting-json branch from 7c299d2 to f6f66ee Compare October 15, 2025 12:43
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.

Error Offchain Voting Anchor: JSON decode error

2 participants