From 5237c575660a1d9dd0566dbfe6a4d0b588a20fdd Mon Sep 17 00:00:00 2001 From: debris Date: Tue, 26 Jan 2016 00:42:07 +0100 Subject: [PATCH] block transaction count --- src/bin/client/rpc/impls/eth.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/client/rpc/impls/eth.rs b/src/bin/client/rpc/impls/eth.rs index 821eacd07..f4d102131 100644 --- a/src/bin/client/rpc/impls/eth.rs +++ b/src/bin/client/rpc/impls/eth.rs @@ -59,6 +59,10 @@ impl Eth for EthClient { _ => Err(Error::invalid_params()) } } + + fn block_transaction_count(&self, _: Params) -> Result { + Ok(Value::U64(0)) + } } pub struct EthFilterClient { @@ -83,7 +87,6 @@ impl EthFilter for EthFilterClient { } fn filter_changes(&self, _: Params) -> Result { - 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())])) } }