mirror of
https://github.com/vacp2p/status-rln-prover.git
synced 2026-01-08 21:18:05 -05:00
Add UserRocksDb - initial attemp to rewrite UserDb with persistent st… (#10)
* Use RocksDb + PmTree for UserDb persistent storage
This commit is contained in:
@@ -61,6 +61,12 @@ impl KarmaTiersSC::KarmaTiersSCInstance<AlloyWsProvider> {
|
||||
#[derive(Debug, Clone, Default, Copy, From, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct TierIndex(u8);
|
||||
|
||||
impl From<&TierIndex> for u8 {
|
||||
fn from(value: &TierIndex) -> u8 {
|
||||
value.0
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct Tier {
|
||||
pub min_karma: U256,
|
||||
|
||||
Reference in New Issue
Block a user