Skip to content

Commit

Permalink
Merge 0.14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gmart7t2 committed Jan 5, 2024
2 parents 92b26ed + 9f19a9e commit 1949b26
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 132 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
=========

[0.14.1](https://github.com/ordinals/ord/releases/tag/0.14.1) - 2023-01-03
--------------------------------------------------------------------------

### Fixed
- Fix wallet create (#2943)

## Misc
- Clean up justfile (#2939)

[0.13.1-gm6](https://github.com/gmart7t2/ord/releases/tag/0.13.1-gm6) - 2024-01-03
----------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion 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
@@ -1,7 +1,7 @@
[package]
name = "ord"
description = "◉ Ordinal wallet and block explorer"
version = "0.14.0"
version = "0.14.1"
license = "CC0-1.0"
edition = "2021"
autotests = false
Expand Down
17 changes: 0 additions & 17 deletions Vagrantfile

This file was deleted.

17 changes: 0 additions & 17 deletions benchmark/checkout

This file was deleted.

13 changes: 0 additions & 13 deletions benchmark/run

This file was deleted.

84 changes: 4 additions & 80 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ deploy branch remote chain domain:

deploy-mainnet-alpha branch='master' remote='ordinals/ord': (deploy branch remote 'main' 'alpha.ordinals.net')

deploy-mainnet-balance branch='master' remote='ordinals/ord': (deploy branch remote 'main' 'balance.ordinals.net')
deploy-mainnet-bravo branch='master' remote='ordinals/ord': (deploy branch remote 'main' 'bravo.ordinals.net')

deploy-mainnet-stability branch='master' remote='ordinals/ord': (deploy branch remote 'main' 'stability.ordinals.net')
deploy-mainnet-charlie branch='master' remote='ordinals/ord': (deploy branch remote 'main' 'charlie.ordinals.net')

deploy-regtest branch='master' remote='ordinals/ord': (deploy branch remote 'regtest' 'regtest.ordinals.net')

Expand All @@ -56,35 +56,9 @@ install-personal-key key='~/.ssh/id_ed25519.pub':
ssh-copy-id -i '{{ key }}' root@$server.ordinals.net
done
save-ord-dev-state domain='ordinals-dev.com':
$EDITOR ./deploy/save-ord-dev-state
scp ./deploy/save-ord-dev-state root@{{domain}}:~
ssh root@{{domain}} "./save-ord-dev-state"

log unit='ord' domain='ordinals.net':
log unit='ord' domain='alpha.ordinals.net':
ssh root@{{domain}} 'journalctl -fu {{unit}}'

test-deploy:
ssh-keygen -f ~/.ssh/known_hosts -R 192.168.56.4
vagrant up
ssh-keyscan 192.168.56.4 >> ~/.ssh/known_hosts
rsync -avz \
--delete \
--exclude .git \
--exclude target \
--exclude .vagrant \
--exclude index.redb \
. root@192.168.56.4:ord
ssh root@192.168.56.4 'cd ord && ./deploy/setup'

time-tests:
cargo +nightly test -- -Z unstable-options --report-time

profile-tests:
cargo +nightly test -- -Z unstable-options --report-time \
| sed -n 's/^test \(.*\) ... ok <\(.*\)s>/\2 \1/p' | sort -n \
| tee test-times.txt

fuzz:
#!/usr/bin/env bash
set -euxo pipefail
Expand All @@ -96,9 +70,6 @@ fuzz:
cargo +nightly fuzz run varint-encode -- -max_total_time=60
done
decode txid:
bitcoin-cli getrawtransaction {{txid}} | xxd -r -p - | cargo run decode

open:
open http://localhost

Expand Down Expand Up @@ -155,63 +126,16 @@ update-modern-normalize:
https://raw.githubusercontent.com/sindresorhus/modern-normalize/main/modern-normalize.css \
> static/modern-normalize.css

download-log unit='ord' host='ordinals.net':
download-log unit='ord' host='alpha.ordinals.net':
ssh root@{{host}} 'mkdir -p tmp && journalctl -u {{unit}} > tmp/{{unit}}.log'
rsync --progress --compress root@{{host}}:tmp/{{unit}}.log tmp/{{unit}}.log

download-index unit='ord' host='ordinals.net':
rsync --progress --compress root@{{host}}:/var/lib/{{unit}}/index.redb tmp/{{unit}}.index.redb

graph log:
./bin/graph $1

flamegraph dir=`git branch --show-current`:
./bin/flamegraph $1

benchmark index height-limit:
./bin/benchmark $1 $2

benchmark-revision rev:
ssh [email protected] 'mkdir -p benchmark \
&& apt-get update --yes \
&& apt-get upgrade --yes \
&& apt-get install --yes git rsync'
rsync -avz benchmark/checkout [email protected]:benchmark/checkout
ssh [email protected] 'cd benchmark && ./checkout {{rev}}'

benchmark-branch branch:
#/usr/bin/env bash
# rm -f master.redb
rm -f {{branch}}.redb
# git checkout master
# cargo build --release
# time ./target/release/ord --index master.redb index update
# ll master.redb
git checkout {{branch}}
cargo build --release
time ./target/release/ord --index {{branch}}.redb index update
ll {{branch}}.redb

build-snapshots:
#!/usr/bin/env bash
set -euxo pipefail
rm -rf tmp/snapshots
mkdir -p tmp/snapshots
cargo build --release
cp ./target/release/ord tmp/snapshots
cd tmp/snapshots
for start in {0..750000..50000}; do
height_limit=$((start+50000))
if [[ -f $start.redb ]]; then
cp -c $start.redb index.redb
fi
a=`date +%s`
time ./ord --data-dir . --height-limit $height_limit index
b=`date +%s`
mv index.redb $height_limit.redb
printf "$height_limit\t$((b - a))\n" >> time.txt
done
serve-docs: build-docs
open http://127.0.0.1:8080
python3 -m http.server --directory docs/build/html --bind 127.0.0.1 8080
Expand Down
12 changes: 9 additions & 3 deletions src/subcommand/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,17 @@ pub(crate) fn get_change_address(client: &Client, chain: Chain) -> Result<Addres
}

pub(crate) fn initialize(wallet: String, options: &Options, seed: [u8; 64], address_type: AddressType, ordinalswallet: bool) -> Result {
let client = check_version(options.bitcoin_rpc_client(None)?)?;
check_version(options.bitcoin_rpc_client(None)?)?.create_wallet(
&wallet,
None,
Some(true),
None,
None,
)?;

let network = options.chain().network();
let client = options.bitcoin_rpc_client(Some(wallet))?;

client.create_wallet(&wallet, None, Some(true), None, None)?;
let network = options.chain().network();

let secp = Secp256k1::new();

Expand Down

0 comments on commit 1949b26

Please sign in to comment.