From c72f3f444d5b6950dcb507ac62ea25fc1ce76806 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Sat, 15 Oct 2016 17:57:11 +0300 Subject: [PATCH] some docs --- db/src/storage.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/src/storage.rs b/db/src/storage.rs index 716a28d0..24d3538b 100644 --- a/db/src/storage.rs +++ b/db/src/storage.rs @@ -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; @@ -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, }