Skip to content

adds fields for merged block data api - #462

Merged
0w3n-d merged 2 commits into
developfrom
od/merged-block-api
Jul 31, 2026
Merged

adds fields for merged block data api#462
0w3n-d merged 2 commits into
developfrom
od/merged-block-api

Conversation

@0w3n-d

@0w3n-d 0w3n-d commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

// `merged_value` is the DB column name; the API/Rust-side name is `proposer_value`.
proposer_value: parse_numeric_to_u256(row.get::<&str, PostgresNumeric>("merged_value")),
total_merged_value: parse_numeric_to_u256(
row.get::<&str, PostgresNumeric>("total_merged_value"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

row.get requires the column to have a non-null doesn't it? will this barf on old rows without the new columns?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

No because the db migration has NOT NULL DEFAULT 0

@0w3n-d
0w3n-d merged commit 7cb2f71 into develop Jul 31, 2026
1 of 2 checks passed
@0w3n-d
0w3n-d deleted the od/merged-block-api branch July 31, 2026 08:30
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