|
@@ -20,6 +20,7 @@ pub mod columns {
|
|
|
pub struct Slabs;
|
|
pub struct Slabs;
|
|
|
pub struct Nullifiers;
|
|
pub struct Nullifiers;
|
|
|
pub struct MerkleRoots;
|
|
pub struct MerkleRoots;
|
|
|
|
|
+ pub struct CashierKeys;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
impl Column for columns::Slabs {
|
|
impl Column for columns::Slabs {
|
|
@@ -33,7 +34,9 @@ impl Column for columns::Nullifiers {
|
|
|
impl Column for columns::MerkleRoots {
|
|
impl Column for columns::MerkleRoots {
|
|
|
const NAME: &'static str = "merkleroots";
|
|
const NAME: &'static str = "merkleroots";
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+impl Column for columns::CashierKeys {
|
|
|
|
|
+ const NAME: &'static str = "cashierkeys";
|
|
|
|
|
+}
|
|
|
pub struct Rocks {
|
|
pub struct Rocks {
|
|
|
db: DB,
|
|
db: DB,
|
|
|
}
|
|
}
|
|
@@ -52,9 +55,11 @@ impl Rocks {
|
|
|
let nullifiers_cf = ColumnFamilyDescriptor::new(columns::Nullifiers::NAME, cf_opts.clone());
|
|
let nullifiers_cf = ColumnFamilyDescriptor::new(columns::Nullifiers::NAME, cf_opts.clone());
|
|
|
// merkleroots column family
|
|
// merkleroots column family
|
|
|
let merkleroots_cf = ColumnFamilyDescriptor::new(columns::MerkleRoots::NAME, cf_opts);
|
|
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
|
|
// 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
|
|
// database options
|
|
|
let mut opt = Options::default();
|
|
let mut opt = Options::default();
|