#[macro_export]
macro_rules! impl_client_v26__dump_tx_out_set {
() => {
impl Client {
pub fn dump_tx_out_set(&self, path: &str) -> Result<DumpTxOutSet> {
self.call("dumptxoutset", &[path.into()])
}
}
};
}
#[macro_export]
macro_rules! impl_client_v26__get_chain_states {
() => {
impl Client {
pub fn get_chain_states(&self) -> Result<GetChainStates> {
self.call("getchainstates", &[])
}
}
};
}
#[macro_export]
macro_rules! impl_client_v26__get_tx_out_set_info {
() => {
impl Client {
pub fn get_tx_out_set_info(&self) -> Result<GetTxOutSetInfo> {
self.call("gettxoutsetinfo", &[])
}
}
};
}
#[macro_export]
macro_rules! impl_client_v26__import_mempool {
() => {
impl Client {
pub fn import_mempool(&self, filepath: &str) -> Result<()> {
match self.call("importmempool", &[filepath.into()]) {
Ok(serde_json::Value::Object(ref map)) if map.is_empty() => Ok(()),
Ok(res) => Err(Error::Returned(res.to_string())),
Err(err) => Err(err.into()),
}
}
}
};
}
#[macro_export]
macro_rules! impl_client_v26__load_tx_out_set {
() => {
impl Client {
pub fn load_tx_out_set(&self, path: &str) -> Result<LoadTxOutSet> {
self.call("loadtxoutset", &[path.into()])
}
}
};
}