File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,10 @@ pub struct SyncInfo {
72
72
#[ serde( with = "::serde_utils::string" ) ]
73
73
pub earliest_block_height : u64 ,
74
74
pub earliest_block_time : Timestamp ,
75
- pub latest_app_hash : H256 < HexUnprefixed > ,
76
- pub latest_block_hash : H256 < HexUnprefixed > ,
75
+ #[ serde( with = "::cometbft_types::serde::maybe_empty_h256" ) ]
76
+ pub latest_app_hash : Option < H256 < HexUnprefixed > > ,
77
+ #[ serde( with = "::cometbft_types::serde::maybe_empty_h256" ) ]
78
+ pub latest_block_hash : Option < H256 < HexUnprefixed > > ,
77
79
#[ serde( with = "::serde_utils::string" ) ]
78
80
pub latest_block_height : u64 ,
79
81
pub latest_block_time : Timestamp ,
Original file line number Diff line number Diff line change @@ -399,14 +399,16 @@ mod status {
399
399
) ,
400
400
earliest_block_height : 1 ,
401
401
earliest_block_time : "2024-08-13T15:45:14.000000000Z" . parse ( ) . unwrap ( ) ,
402
- latest_app_hash :
402
+ latest_app_hash : Some (
403
403
"5933c3aa776e3d9976694ed85f4d420db92d13025fac557f1334c9ff03696889"
404
404
. parse ( )
405
405
. unwrap ( ) ,
406
- latest_block_hash :
406
+ ) ,
407
+ latest_block_hash : Some (
407
408
"317cac7db536eaf1686b7a5319ce201530ee27a15b902679dac7adcd9633cc80"
408
409
. parse ( )
409
410
. unwrap ( ) ,
411
+ ) ,
410
412
latest_block_height : 290884 ,
411
413
latest_block_time : "2025-05-12T02:32:24.240017347Z" . parse ( ) . unwrap ( ) ,
412
414
} ,
You can’t perform that action at this time.
0 commit comments