Skip to content

Commit

Permalink
Merge branch 'master' into rune-unlock-time
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Jan 24, 2025
2 parents 7d7f038 + 4041a57 commit 5265a3b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/mockcore/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub fn builder() -> Builder {
Builder {
fail_lock_unspent: false,
network: Network::Bitcoin,
version: 250000,
version: 280000,
}
}

Expand Down
2 changes: 1 addition & 1 deletion deploy/setup
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ echo '[Service]' > $OVERRIDE
echo "Environment=CHAIN=$CHAIN" >> $OVERRIDE
echo "Environment=CSP_ORIGIN=$CSP_ORIGIN" >> $OVERRIDE

if [[ $CHAIN == main ]]; then
if [[ $CHAIN == main && $DOMAIN != charlie.ordinals.net ]]; then
echo Environment=ORD_SERVER_DISABLE_JSON_API=true >> $OVERRIDE
fi

Expand Down
2 changes: 1 addition & 1 deletion docs/src/guides/wallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Installing Bitcoin Core
Bitcoin Core is available from [bitcoincore.org](https://bitcoincore.org/) on
the [download page](https://bitcoincore.org/en/download/).

Making inscriptions requires Bitcoin Core 24 or newer.
Making inscriptions requires Bitcoin Core 28 or newer.

This guide does not cover installing Bitcoin Core in detail. Once Bitcoin Core
is installed, you should be able to run `bitcoind -version` successfully from
Expand Down
1 change: 1 addition & 0 deletions src/inscriptions/media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ impl Media {
("application/pdf", GENERIC, Pdf, &["pdf"]),
("application/pgp-signature", TEXT, Text, &["asc"]),
("application/protobuf", GENERIC, Unknown, &["binpb"]),
("application/x-bittorrent", GENERIC, Unknown, &["torrent"]),
("application/x-javascript", TEXT, Code(JavaScript), &[]),
("application/yaml", TEXT, Code(Yaml), &["yaml", "yml"]),
("audio/flac", GENERIC, Audio, &["flac"]),
Expand Down
6 changes: 5 additions & 1 deletion src/subcommand/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,14 @@ bitcoin-cli -datadir={datadir} getblockchaininfo

loop {
if SHUTTING_DOWN.load(atomic::Ordering::Relaxed) {
break Ok(None);
break;
}

thread::sleep(Duration::from_millis(100));
}

thread::sleep(Duration::from_secs(5));

Ok(None)
}
}
2 changes: 1 addition & 1 deletion src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ impl Wallet {
}

pub(crate) fn check_version(client: Client) -> Result<Client> {
const MIN_VERSION: usize = 250000;
const MIN_VERSION: usize = 280000;

let bitcoin_version = client.version()?;
if bitcoin_version < MIN_VERSION {
Expand Down
2 changes: 1 addition & 1 deletion tests/wallet/inscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn inscribe_fails_if_bitcoin_core_is_too_old() {
CommandBuilder::new("wallet inscribe --file hello.txt --fee-rate 1")
.write("hello.txt", "HELLOWORLD")
.expected_exit_code(1)
.expected_stderr("error: Bitcoin Core 25.0.0 or newer required, current version is 24.0.0\n")
.expected_stderr("error: Bitcoin Core 28.0.0 or newer required, current version is 24.0.0\n")
.core(&core)
.ord(&ord)
.run_and_extract_stdout();
Expand Down

0 comments on commit 5265a3b

Please sign in to comment.