eth_getBlockByNumber

This commit is contained in:
debris
2016-02-10 22:54:12 +01:00
parent 93975be5e3
commit 4fe86a4419
3 changed files with 63 additions and 53 deletions

View File

@@ -37,7 +37,7 @@ use extras::TransactionAddress;
pub use blockchain::TreeRoute;
/// Uniquely identifies block.
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
pub enum BlockId {
/// Block's sha3.
/// Querying by hash is always faster.
@@ -51,7 +51,7 @@ pub enum BlockId {
}
/// Uniquely identifies transaction.
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
pub enum TransactionId {
/// Transaction's sha3.
Hash(H256),