We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9da5fa2 commit 41d2b2dCopy full SHA for 41d2b2d
store/postgres/src/detail.rs
@@ -38,7 +38,7 @@ table! {
38
graft_block_hash -> Nullable<Binary>,
39
graft_block_number -> Nullable<Numeric>,
40
ethereum_head_block_hash -> Nullable<Binary>,
41
- ethereum_head_block_number -> Nullable<Numeric>,
+ ethereum_head_block_number -> Nullable<BigInt>,
42
network -> Text,
43
node_id -> Nullable<Text>,
44
// We don't map block_range
@@ -75,7 +75,7 @@ struct Detail {
75
graft_block_hash: Option<Bytes>,
76
graft_block_number: Option<BigDecimal>,
77
ethereum_head_block_hash: Option<Bytes>,
78
- ethereum_head_block_number: Option<BigDecimal>,
+ ethereum_head_block_number: Option<i64>,
79
network: String,
80
node_id: Option<String>,
81
}
@@ -188,7 +188,7 @@ impl TryFrom<DetailAndError> for status::Info {
188
&id,
189
"ethereum_head_block",
190
ethereum_head_block_hash,
191
- ethereum_head_block_number,
+ ethereum_head_block_number.map(|n| BigDecimal::from(n)),
192
)?;
193
let earliest_block = block(
194
0 commit comments