Skip to content

Commit 7a584a5

Browse files
committed
Take all get_index_info rpc call return values as Option<>
1 parent 4223190 commit 7a584a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

json/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,10 +2125,10 @@ pub struct IndexStatus {
21252125

21262126
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug)]
21272127
pub struct GetIndexInfoResult {
2128-
pub txindex: IndexStatus,
2129-
pub coinstatsindex: IndexStatus,
2128+
pub txindex: Option<IndexStatus>,
2129+
pub coinstatsindex: Option<IndexStatus>,
21302130
#[serde(rename = "basic block filter index")]
2131-
pub basic_block_filter_index: IndexStatus,
2131+
pub basic_block_filter_index: Option<IndexStatus>,
21322132
}
21332133

21342134
impl<'a> serde::Serialize for PubKeyOrAddress<'a> {

0 commit comments

Comments
 (0)