Skip to content

Commit db14f60

Browse files
author
Ludo Galabru
committed
feat: add transfers table
1 parent 473ddd0 commit db14f60

File tree

1 file changed

+9
-0
lines changed
  • components/chainhook-event-observer/src/hord/db

1 file changed

+9
-0
lines changed

components/chainhook-event-observer/src/hord/db/mod.rs

+9
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ pub fn initialize_hord_db(path: &PathBuf, ctx: &Context) -> Connection {
6262
) {
6363
ctx.try_log(|logger| slog::error!(logger, "{}", e.to_string()));
6464
}
65+
if let Err(e) = conn.execute(
66+
"CREATE TABLE IF NOT EXISTS transfers (
67+
block_height INTEGER NOT NULL PRIMARY KEY
68+
)",
69+
[],
70+
) {
71+
ctx.try_log(|logger| slog::error!(logger, "{}", e.to_string()));
72+
}
73+
6574
if let Err(e) = conn.execute(
6675
"CREATE INDEX IF NOT EXISTS index_inscriptions_on_outpoint_to_watch ON inscriptions(outpoint_to_watch);",
6776
[],

0 commit comments

Comments
 (0)