Skip to content

fix(dbsync_utils): use explicit None check for params#3433

Merged
mkoura merged 1 commit intomasterfrom
fix_falsy_check
Apr 23, 2026
Merged

fix(dbsync_utils): use explicit None check for params#3433
mkoura merged 1 commit intomasterfrom
fix_falsy_check

Conversation

@mkoura
Copy link
Copy Markdown
Collaborator

@mkoura mkoura commented Apr 23, 2026

Previous truthy check skipped valid zero values when comparing protocol parameter proposals against db-sync records. Use is None to only skip missing values.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts protocol-parameter proposal comparison logic in dbsync_utils so that zero-valued parameters are not skipped during validation against db-sync records.

Changes:

  • Replace truthy checks with explicit is None checks when deciding whether to compare a protocol parameter value.
  • Update db-sync value comparison to allow zero/falsey values to be compared rather than skipped.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cardano_node_tests/utils/dbsync_utils.py Outdated
Previous truthy check skipped valid zero values when comparing
protocol parameter proposals against db-sync records. Use
`is None` to only skip missing values.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cardano_node_tests/utils/dbsync_utils.py
@mkoura mkoura merged commit e21b7e3 into master Apr 23, 2026
7 checks passed
@mkoura mkoura deleted the fix_falsy_check branch April 23, 2026 12:22
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.

2 participants