mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
Add RocksColumn CashierKeys
This commit is contained in:
@@ -20,6 +20,7 @@ pub mod columns {
|
||||
pub struct Slabs;
|
||||
pub struct Nullifiers;
|
||||
pub struct MerkleRoots;
|
||||
pub struct CashierKeys;
|
||||
}
|
||||
|
||||
impl Column for columns::Slabs {
|
||||
@@ -33,7 +34,9 @@ impl Column for columns::Nullifiers {
|
||||
impl Column for columns::MerkleRoots {
|
||||
const NAME: &'static str = "merkleroots";
|
||||
}
|
||||
|
||||
impl Column for columns::CashierKeys {
|
||||
const NAME: &'static str = "cashierkeys";
|
||||
}
|
||||
pub struct Rocks {
|
||||
db: DB,
|
||||
}
|
||||
@@ -52,9 +55,11 @@ impl Rocks {
|
||||
let nullifiers_cf = ColumnFamilyDescriptor::new(columns::Nullifiers::NAME, cf_opts.clone());
|
||||
// merkleroots column family
|
||||
let merkleroots_cf = ColumnFamilyDescriptor::new(columns::MerkleRoots::NAME, cf_opts);
|
||||
// cashierkeypair column family
|
||||
let cashierkeys_cf = ColumnFamilyDescriptor::new(columns::CashierKeys::NAME, cf_opts);
|
||||
|
||||
// column families
|
||||
let cfs = vec![default_cf, slab_cf, nullifiers_cf, merkleroots_cf];
|
||||
let cfs = vec![default_cf, slab_cf, nullifiers_cf, merkleroots_cf, cashierkeys_cf];
|
||||
|
||||
// database options
|
||||
let mut opt = Options::default();
|
||||
|
||||
Reference in New Issue
Block a user