fix empty values in transaction info
@@ -58,11 +58,16 @@ struct PeersInfo {
reconnects: Vec<PeerInfo>
}
+#[derive(Serialize)]
+struct MemPoolTxInfo{
+ content: Value
+}
+
#[derive(Serialize)]
#[serde(tag = "type")]
enum MemPoolResult {
Unknown,
- MemPool(Value),
+ MemPool(MemPoolTxInfo),
Commited(TxInfo)
}
@@ -137,7 +142,7 @@ impl SystemApi {
.map_or(MemPoolResult::Unknown,
MemPoolResult::Commited))
},
- |o| Ok(MemPoolResult::MemPool(o.info())))
+ |o| Ok(MemPoolResult::MemPool(MemPoolTxInfo{content:o.info()})))
}
