Skip to content

Commit

Permalink
fix: seqno in jrpc should be option (likewise in proto)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oline Tramp authored and 0xdeafbeef committed Dec 6, 2024
1 parent 18250d6 commit 23c7cdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/src/jrpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub struct GetBlockchainConfigResponse {
pub global_id: i32,
#[serde(with = "serde_ton_block")]
pub config: ton_block::ConfigParams,
pub seqno: u32,
pub seqno: Option<u32>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
2 changes: 1 addition & 1 deletion server/src/jrpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl JrpcServer {
let config_response = serde_json::to_value(jrpc::GetBlockchainConfigResponse {
global_id: block.global_id,
config: config.clone(),
seqno,
seqno: Some(seqno),
})?;

Ok((Arc::new(key_block_response), Arc::new(config_response)))
Expand Down

0 comments on commit 23c7cdd

Please sign in to comment.