Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
force recreate container headers
Browse files Browse the repository at this point in the history
  • Loading branch information
crisdut committed Sep 18, 2022
1 parent 18289f8 commit 8bb5ad8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ pub const GENESIS: &'static str = "genesis";
pub const TRANSITIONS: &'static str = "transitions";
pub const ANCHORS: &'static str = "anchors";
pub const EXTENSIONS: &'static str = "extensions";
pub const ATTACHMENT_CHUNKS: &'static str = "chunks";
pub const ATTACHMENT_INDEX: &'static str = "attachments";
pub const ALU_LIBS: &'static str = "alu";

pub const OUTPOINTS: &'static str = "outpoints";
Expand All @@ -26,6 +24,12 @@ pub const CONTRACT_TRANSITIONS: &'static str = "contract_transitions";

pub const DISCLOSURES: &'static str = "disclosures";

// Storm intgration
pub const ATTACHMENT_CHUNKS: &'static str = "chunks";
pub const ATTACHMENT_INDEX: &'static str = "attachments";
pub const ATTACHMENT_CONTAINER_HEADERS: &'static str = "container_headers";
pub const ATTACHMENT_CONTAINERS: &'static str = "containers";

pub(crate) trait StoreRpcExt {
fn retrieve_sten<T>(
&mut self,
Expand Down
2 changes: 2 additions & 0 deletions src/rgbd/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ impl Runtime {
db::TRANSITION_WITNESS,
db::CONTRACT_TRANSITIONS,
db::DISCLOSURES,
db::ATTACHMENT_CONTAINER_HEADERS,
db::ATTACHMENT_CONTAINERS,
] {
store.use_table(table.to_owned()).map_err(LaunchError::from)?;
}
Expand Down

0 comments on commit 8bb5ad8

Please sign in to comment.