fixed typos
This commit is contained in:
parent
49fa99ae05
commit
4b20cfaf42
@ -60,7 +60,7 @@ impl BestBlock {
|
|||||||
|
|
||||||
/// Structure providing fast access to blockchain data.
|
/// Structure providing fast access to blockchain data.
|
||||||
///
|
///
|
||||||
/// **Does not do input data verifycation.**
|
/// **Does not do input data verification.**
|
||||||
pub struct BlockChain {
|
pub struct BlockChain {
|
||||||
best_block: RefCell<BestBlock>,
|
best_block: RefCell<BestBlock>,
|
||||||
|
|
||||||
@ -390,7 +390,7 @@ impl BlockChain {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Get a list of transactions for a given block.
|
/// Get a list of transactions for a given block.
|
||||||
/// Returns None is block deos not exist.
|
/// Returns None if block deos not exist.
|
||||||
pub fn transactions(&self, hash: &H256) -> Option<Vec<Transaction>> {
|
pub fn transactions(&self, hash: &H256) -> Option<Vec<Transaction>> {
|
||||||
self.block(hash).map(|bytes| BlockView::new(&bytes).transactions())
|
self.block(hash).map(|bytes| BlockView::new(&bytes).transactions())
|
||||||
}
|
}
|
||||||
@ -402,7 +402,7 @@ impl BlockChain {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Get a list of uncles for a given block.
|
/// Get a list of uncles for a given block.
|
||||||
/// Returns None is block deos not exist.
|
/// Returns None if block deos not exist.
|
||||||
pub fn uncles(&self, hash: &H256) -> Option<Vec<Header>> {
|
pub fn uncles(&self, hash: &H256) -> Option<Vec<Header>> {
|
||||||
self.block(hash).map(|bytes| BlockView::new(&bytes).uncles())
|
self.block(hash).map(|bytes| BlockView::new(&bytes).uncles())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user