@@ -1059,16 +1059,16 @@ pub enum ImportMultiRequestScriptPubkey<'a> {
1059
1059
#[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
1060
1060
pub struct GetMempoolInfoResult {
1061
1061
/// True if the mempool is fully loaded
1062
- pub loaded : bool ,
1062
+ pub loaded : Option < bool > ,
1063
1063
/// Current tx count
1064
1064
pub size : usize ,
1065
1065
/// Sum of all virtual transaction sizes as defined in BIP 141. Differs from actual serialized size because witness data is discounted
1066
1066
pub bytes : usize ,
1067
1067
/// Total memory usage for the mempool
1068
1068
pub usage : usize ,
1069
1069
/// Total fees for the mempool in BTC, ignoring modified fees through prioritisetransaction
1070
- #[ serde( with = "bitcoin::amount::serde::as_btc" ) ]
1071
- pub total_fee : Amount ,
1070
+ #[ serde( default , with = "bitcoin::amount::serde::as_btc::opt " ) ]
1071
+ pub total_fee : Option < Amount > ,
1072
1072
/// Maximum memory usage for the mempool
1073
1073
#[ serde( rename = "maxmempool" ) ]
1074
1074
pub max_mempool : usize ,
@@ -1079,14 +1079,14 @@ pub struct GetMempoolInfoResult {
1079
1079
#[ serde( rename = "minrelaytxfee" , with = "bitcoin::amount::serde::as_btc" ) ]
1080
1080
pub min_relay_tx_fee : Amount ,
1081
1081
/// Minimum fee rate increment for mempool limiting or replacement in BTC/kvB
1082
- #[ serde( rename = "incrementalrelayfee" , with = "bitcoin::amount::serde::as_btc" ) ]
1083
- pub incremental_relay_fee : Amount ,
1082
+ #[ serde( rename = "incrementalrelayfee" , default , with = "bitcoin::amount::serde::as_btc::opt " ) ]
1083
+ pub incremental_relay_fee : Option < Amount > ,
1084
1084
/// Current number of transactions that haven't passed initial broadcast yet
1085
1085
#[ serde( rename = "unbroadcastcount" ) ]
1086
- pub unbroadcast_count : usize ,
1086
+ pub unbroadcast_count : Option < usize > ,
1087
1087
/// True if the mempool accepts RBF without replaceability signaling inspection
1088
1088
#[ serde( rename = "fullrbf" ) ]
1089
- pub full_rbf : bool ,
1089
+ pub full_rbf : Option < bool > ,
1090
1090
}
1091
1091
1092
1092
#[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
0 commit comments