2018-09-20 07:36:49 +00:00
|
|
|
use super::{
|
|
|
|
ClientDB,
|
|
|
|
DBError,
|
|
|
|
};
|
|
|
|
|
|
|
|
mod block_store;
|
2018-09-21 01:13:07 +00:00
|
|
|
mod pow_chain_store;
|
2018-09-21 08:52:03 +00:00
|
|
|
mod validator_store;
|
2018-09-20 07:36:49 +00:00
|
|
|
|
|
|
|
pub use self::block_store::BlockStore;
|
2018-09-21 01:13:07 +00:00
|
|
|
pub use self::pow_chain_store::PoWChainStore;
|
2018-09-24 08:08:00 +00:00
|
|
|
pub use self::validator_store::{
|
|
|
|
ValidatorStore,
|
|
|
|
ValidatorStoreError,
|
|
|
|
};
|
2018-09-20 07:36:49 +00:00
|
|
|
|
2018-09-24 03:16:39 +00:00
|
|
|
use super::bls;
|
|
|
|
|
2018-09-24 04:15:59 +00:00
|
|
|
pub const BLOCKS_DB_COLUMN: &str = "blocks";
|
|
|
|
pub const POW_CHAIN_DB_COLUMN: &str = "powchain";
|
|
|
|
pub const VALIDATOR_DB_COLUMN: &str = "validator";
|
|
|
|
|
|
|
|
pub const COLUMNS: [&str; 3] = [
|
|
|
|
BLOCKS_DB_COLUMN,
|
|
|
|
POW_CHAIN_DB_COLUMN,
|
|
|
|
VALIDATOR_DB_COLUMN,
|
|
|
|
];
|