some docs

This commit is contained in:
NikVolf 2016-10-15 17:57:11 +03:00
parent 3195743ce7
commit c72f3f444d
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ const _COL_RESERVED6: u32 = 10;
const DB_VERSION: u32 = 1;
/// Blockchain storage interface
pub trait Store {
/// resolves hash by block number
fn block_hash(&self, number: u64) -> Option<H256>;
@ -47,6 +48,7 @@ pub trait Store {
fn insert_block(&self, block: &chain::Block) -> Result<(), Error>;
}
/// Blockchain storage with rocksdb database
pub struct Storage {
database: Database,
}