Skip to content

Commit f5e71b3

Browse files
aldurkantai
andauthored
feat: make the deserializer more backwards compatible
Co-authored-by: Aaron Blankstein <[email protected]>
1 parent 6e4db07 commit f5e71b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stackslib/src/net/api/getinfo.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ pub struct RPCPeerInfoData {
8282
pub genesis_chainstate_hash: Sha256Sum,
8383
pub unanchored_tip: Option<StacksBlockId>,
8484
pub unanchored_seq: Option<u16>,
85+
#[serde(default)]
86+
#[serde(skip_serializing_if = "Option::is_none")]
8587
pub tenure_height: Option<u64>,
8688
pub exit_at_block_height: Option<u64>,
8789
pub is_fully_synced: bool,

0 commit comments

Comments
 (0)