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

Commit f50ab9b

Browse files
authored
Merge pull request #203 from crisdut/fix/recreate-attachment-tables
2 parents 0f8aa53 + 8bb5ad8 commit f50ab9b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/db.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ pub const GENESIS: &'static str = "genesis";
1515
pub const TRANSITIONS: &'static str = "transitions";
1616
pub const ANCHORS: &'static str = "anchors";
1717
pub const EXTENSIONS: &'static str = "extensions";
18-
pub const ATTACHMENT_CHUNKS: &'static str = "chunks";
19-
pub const ATTACHMENT_INDEX: &'static str = "attachments";
2018
pub const ALU_LIBS: &'static str = "alu";
2119

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

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

27+
// Storm intgration
28+
pub const ATTACHMENT_CHUNKS: &'static str = "chunks";
29+
pub const ATTACHMENT_INDEX: &'static str = "attachments";
30+
pub const ATTACHMENT_CONTAINER_HEADERS: &'static str = "container_headers";
31+
pub const ATTACHMENT_CONTAINERS: &'static str = "containers";
32+
2933
pub(crate) trait StoreRpcExt {
3034
fn retrieve_sten<T>(
3135
&mut self,

src/rgbd/service.rs

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ impl Runtime {
108108
db::TRANSITION_WITNESS,
109109
db::CONTRACT_TRANSITIONS,
110110
db::DISCLOSURES,
111+
db::ATTACHMENT_CONTAINER_HEADERS,
112+
db::ATTACHMENT_CONTAINERS,
111113
] {
112114
store.use_table(table.to_owned()).map_err(LaunchError::from)?;
113115
}

0 commit comments

Comments
 (0)