block transaction count

This commit is contained in:
debris 2016-01-26 00:42:07 +01:00
parent f38b736c91
commit 5237c57566

View File

@ -59,6 +59,10 @@ impl Eth for EthClient {
_ => Err(Error::invalid_params()) _ => Err(Error::invalid_params())
} }
} }
fn block_transaction_count(&self, _: Params) -> Result<Value, Error> {
Ok(Value::U64(0))
}
} }
pub struct EthFilterClient { pub struct EthFilterClient {
@ -83,7 +87,6 @@ impl EthFilter for EthFilterClient {
} }
fn filter_changes(&self, _: Params) -> Result<Value, Error> { fn filter_changes(&self, _: Params) -> Result<Value, Error> {
println!("filter changes: {:?}", self.client.chain_info().best_block_hash.to_hex());
Ok(Value::Array(vec![Value::String(self.client.chain_info().best_block_hash.to_hex())])) Ok(Value::Array(vec![Value::String(self.client.chain_info().best_block_hash.to_hex())]))
} }
} }