rpc tests, now 421 passing / 116 failing

This commit is contained in:
debris
2016-03-19 11:44:36 +01:00
committed by arkpar
parent 8f1618687c
commit 0fc605face
4 changed files with 8 additions and 12 deletions

View File

@@ -103,6 +103,7 @@ impl<C, S, A, M, EM> EthClient<C, S, A, M, EM>
timestamp: U256::from(view.timestamp()),
difficulty: view.difficulty(),
total_difficulty: total_difficulty,
nonce: view.seal().get(1).map_or_else(H64::zero, |r| H64::from_slice(r)),
uncles: vec![],
transactions: {
if include_txs {
@@ -111,7 +112,7 @@ impl<C, S, A, M, EM> EthClient<C, S, A, M, EM>
BlockTransactions::Hashes(block_view.transaction_hashes())
}
},
extra_data: Bytes::default()
extra_data: Bytes::new(view.extra_data())
};
to_value(&block)
},