Skip to content

Commit

Permalink
persistence: expose list of tapret tweaks. Closes #29
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Apr 10, 2023
1 parent f84ae44 commit 64461a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions std/src/persistence/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ pub trait Inventory: Deref<Target = Self::Stash> {
) -> Result<BTreeMap<Opout, TypedState>, InventoryError<Self::Error>>;

fn store_seal_secret(&mut self, seal: GraphSeal) -> Result<(), InventoryError<Self::Error>>;
fn seal_secrets(&mut self) -> Result<BTreeSet<GraphSeal>, InventoryError<Self::Error>>;

fn export_contract(
&mut self,
Expand Down
4 changes: 4 additions & 0 deletions std/src/persistence/stock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -696,4 +696,8 @@ impl Inventory for Stock {
self.seal_secrets.push(seal)?;
Ok(())
}

fn seal_secrets(&mut self) -> Result<BTreeSet<GraphSeal>, InventoryError<Self::Error>> {
Ok(self.seal_secrets.to_inner())
}
}

0 comments on commit 64461a1

Please sign in to comment.