Skip to content

Commit 6538851

Browse files
committed
Make 'threshold' and 'possible' BIP9 statistics optional
Following bitcoin/bitcoin#21934
1 parent 349626e commit 6538851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

json/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,10 +582,10 @@ pub enum Bip9SoftforkStatus {
582582
#[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize)]
583583
pub struct Bip9SoftforkStatistics {
584584
pub period: u32,
585-
pub threshold: u32,
585+
pub threshold: Option<u32>,
586586
pub elapsed: u32,
587587
pub count: u32,
588-
pub possible: bool,
588+
pub possible: Option<bool>,
589589
}
590590

591591
#[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize)]

0 commit comments

Comments
 (0)