Add version endpoint to node API, rename pool/push (#2897)

* add node version API, tweak pool/push parameter

* rustfmt
This commit is contained in:
Yeastplume
2019-06-15 09:54:45 +01:00
committed by GitHub
parent e15cffbbd0
commit c2153fada2
4 changed files with 59 additions and 3 deletions
+9
View File
@@ -34,6 +34,15 @@ macro_rules! no_dup {
};
}
/// API Version Information
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Version {
/// Current node API Version (api crate version)
pub node_version: String,
/// Block header version
pub block_header_version: u16,
}
/// The state of the current fork tip
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Tip {