@@ -1059,16 +1059,16 @@ pub enum ImportMultiRequestScriptPubkey<'a> {
10591059#[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
10601060pub struct GetMempoolInfoResult {
10611061 /// True if the mempool is fully loaded
1062- pub loaded : bool ,
1062+ pub loaded : Option < bool > ,
10631063 /// Current tx count
10641064 pub size : usize ,
10651065 /// Sum of all virtual transaction sizes as defined in BIP 141. Differs from actual serialized size because witness data is discounted
10661066 pub bytes : usize ,
10671067 /// Total memory usage for the mempool
10681068 pub usage : usize ,
10691069 /// 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 > ,
10721072 /// Maximum memory usage for the mempool
10731073 #[ serde( rename = "maxmempool" ) ]
10741074 pub max_mempool : usize ,
@@ -1079,14 +1079,14 @@ pub struct GetMempoolInfoResult {
10791079 #[ serde( rename = "minrelaytxfee" , with = "bitcoin::amount::serde::as_btc" ) ]
10801080 pub min_relay_tx_fee : Amount ,
10811081 /// 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 > ,
10841084 /// Current number of transactions that haven't passed initial broadcast yet
10851085 #[ serde( rename = "unbroadcastcount" ) ]
1086- pub unbroadcast_count : usize ,
1086+ pub unbroadcast_count : Option < usize > ,
10871087 /// True if the mempool accepts RBF without replaceability signaling inspection
10881088 #[ serde( rename = "fullrbf" ) ]
1089- pub full_rbf : bool ,
1089+ pub full_rbf : Option < bool > ,
10901090}
10911091
10921092#[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
0 commit comments