Skip to content

Commit

Permalink
Merge branch 'master' into document-inscription-burn
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Dec 11, 2024
2 parents 2565676 + 439e470 commit e10160b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ mime_guess = "2.0.4"
miniscript = "12.0.0"
mp4 = "0.14.0"
ordinals = { version = "0.0.13", path = "crates/ordinals" }
redb = "2.2.0"
redb = "2.3.0"
ref-cast = "1.0.23"
regex = "1.6.0"
reqwest = { version = "0.11.27", features = ["blocking", "json"] }
Expand Down
2 changes: 2 additions & 0 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ impl Index {
let mut tx = database.begin_write()?;

tx.set_durability(durability);
tx.set_quick_repair(true);

tx.open_multimap_table(SAT_TO_SEQUENCE_NUMBER)?;
tx.open_multimap_table(SCRIPT_PUBKEY_TO_OUTPOINT)?;
Expand Down Expand Up @@ -773,6 +774,7 @@ impl Index {
fn begin_write(&self) -> Result<WriteTransaction> {
let mut tx = self.database.begin_write()?;
tx.set_durability(self.durability);
tx.set_quick_repair(true);
Ok(tx)
}

Expand Down
9 changes: 6 additions & 3 deletions src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,8 @@ impl Wallet {
{
let database = Database::builder().create(&path)?;

let tx = database.begin_write()?;
let mut tx = database.begin_write()?;
tx.set_quick_repair(true);

tx.open_table(RUNE_TO_ETCHING)?;

Expand All @@ -688,7 +689,8 @@ impl Wallet {
reveal: &Transaction,
output: batch::Output,
) -> Result {
let wtx = self.database.begin_write()?;
let mut wtx = self.database.begin_write()?;
wtx.set_quick_repair(true);

wtx.open_table(RUNE_TO_ETCHING)?.insert(
rune.0,
Expand Down Expand Up @@ -717,7 +719,8 @@ impl Wallet {
}

pub(crate) fn clear_etching(&self, rune: Rune) -> Result {
let wtx = self.database.begin_write()?;
let mut wtx = self.database.begin_write()?;
wtx.set_quick_repair(true);

wtx.open_table(RUNE_TO_ETCHING)?.remove(rune.0)?;
wtx.commit()?;
Expand Down

0 comments on commit e10160b

Please sign in to comment.