Skip to content

Commit

Permalink
Atlantis patch (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Jan 31, 2024
1 parent 20167a4 commit 16cc7c2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
14 changes: 14 additions & 0 deletions atlantis.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
start-regtest:
bitcoind -regtest -txindex

load wallet="ord":
bitcoin-cli -regtest -rpcwallet={{wallet}} loadwallet {{wallet}}

mine blocks="1" wallet="ord":
#!/usr/bin/env bash
set -euxo pipefail
address="$(bitcoin-cli -regtest -rpcwallet={{wallet}} getrawchangeaddress "bech32m")"
bitcoin-cli -regtest generatetoaddress {{blocks}} $address
dump wallet="ord":
RUST_LOG=info cargo run -- --regtest wallet dump
2 changes: 2 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mod atlantis

set positional-arguments

watch +args='test':
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand/wallet/inscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl Inscribe {
no_limit: self.no_limit,
parent_info,
postage,
reinscribe: self.reinscribe,
reinscribe: self.reinscribe || mode == Mode::SameSat,
reveal_fee_rate: self.fee_rate,
satpoint,
}
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/inscribe/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl Batch {
.ok_or_else(|| anyhow!("wallet contains no cardinal utxos"))?
};

let mut reinscription = false;
let mut reinscription = false || self.mode == Mode::SameSat;

for (inscribed_satpoint, inscription_id) in &wallet_inscriptions {
if *inscribed_satpoint == satpoint {
Expand Down

0 comments on commit 16cc7c2

Please sign in to comment.