Skip to content

Commit 5a1562f

Browse files
committed
Minor forgotten cleanup
1 parent d1ef94b commit 5a1562f

File tree

5 files changed

+20
-9
lines changed

5 files changed

+20
-9
lines changed

build-tools/docker/build.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
import toml
1+
import argparse
22
import os
3+
import pathlib
34
import subprocess
4-
import argparse
5+
import toml
6+
7+
8+
ROOT_DIR = pathlib.Path(__file__).resolve().parent.parent.parent
9+
ROOT_CARGO_TOML = ROOT_DIR.joinpath("Cargo.toml")
510

611

712
def get_cargo_version(cargo_toml_path):
@@ -44,7 +49,7 @@ def build_docker_image(dockerfile_path, image_name, tags, num_jobs=None):
4449

4550
try:
4651
# Run the command
47-
subprocess.check_call(command, shell=True)
52+
subprocess.check_call(command, shell=True, cwd=ROOT_DIR)
4853
print(f"Built {image_name} successfully (the tags are: {full_tags}).")
4954
except subprocess.CalledProcessError as error:
5055
print(f"Failed to build {image_name}: {error}")
@@ -121,7 +126,7 @@ def main():
121126
parser.add_argument('--local_tags', nargs='*', help='Additional tags to apply (these won\'t be pushed)', default=[])
122127
args = parser.parse_args()
123128

124-
version = args.version if args.version else get_cargo_version("Cargo.toml")
129+
version = args.version if args.version else get_cargo_version(ROOT_CARGO_TOML)
125130
# Note: the CI currently takes the version from the release tag, so it always starts with "v",
126131
# but the version from Cargo.toml doesn't have this prefix.
127132
version = version.removeprefix("v")

build-tools/docker/example-mainnet/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ services:
6565
- node-daemon
6666
environment:
6767
<<: *ml-common-env
68+
ML_API_SCANNER_DAEMON_NETWORK: mainnet
6869
ML_API_SCANNER_DAEMON_POSTGRES_HOST: api-postgres-db
6970
ML_API_SCANNER_DAEMON_POSTGRES_USER: $API_SERVER_POSTGRES_USER
7071
ML_API_SCANNER_DAEMON_POSTGRES_PASSWORD: $API_SERVER_POSTGRES_PASSWORD
@@ -83,6 +84,7 @@ services:
8384
- node-daemon
8485
environment:
8586
<<: *ml-common-env
87+
ML_API_WEB_SRV_NETWORK: mainnet
8688
ML_API_WEB_SRV_BIND_ADDRESS: 0.0.0.0:3000
8789
ML_API_WEB_SRV_POSTGRES_HOST: api-postgres-db
8890
ML_API_WEB_SRV_POSTGRES_USER: $API_SERVER_POSTGRES_USER

subsystem/src/calls/handle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
//! Subsystem handle definitions (non-blocking versions)
1717
1818
use futures::future::BoxFuture;
19+
use tracing::Instrument as _;
1920

2021
use logging::log;
21-
use tracing::Instrument as _;
2222
use utils::shallow_clone::ShallowClone;
2323

2424
use crate::{

wallet/wallet-cli-commands/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,8 +994,12 @@ pub enum WalletCommand {
994994
/// The starting height; normally, this will be the last height mentioned in
995995
/// the corresponding CHECKPOINTS_DATA array.
996996
start_height: BlockHeight,
997-
/// The end (exclusive) height; normally, this will be some large number, which
998-
/// is definitely bigger than the current best block height, e.g. a million.
997+
/// The end (exclusive) height. For simplicity, you can set it to some large number
998+
/// that is bigger than the current best block height, e.g. a million, in which case
999+
/// the command will print checkpoints until the maximum possible height.
1000+
/// Note however that the last checkpoint that you put into CHECKPOINTS_DATA should
1001+
/// be at least 1000 below the current tip, to ensure that reorgs below that checkpoint
1002+
/// are no longer possible.
9991003
end_height: BlockHeight,
10001004
/// The step; in our current CHECKPOINTS_DATA arrays we use 500 as the step.
10011005
step: NonZeroUsize,

wasm-wrappers/js-bindings-test/tests/test_input_commitments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ function test_impl(is_v1: boolean) {
135135
height = SIGHASH_INPUT_COMMITMENTS_V0_HEIGHT;
136136
};
137137

138-
const account_pubkey = make_default_account_privkey(
138+
const account_privkey = make_default_account_privkey(
139139
MNEMONIC,
140140
Network.Testnet
141141
);
142-
const receiving_privkey = make_receiving_address(account_pubkey, 0);
142+
const receiving_privkey = make_receiving_address(account_privkey, 0);
143143

144144
const produce_block_from_stake_output = encode_output_produce_block_from_stake(
145145
POOL_ID,

0 commit comments

Comments
 (0)