-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
83 lines (66 loc) · 1.59 KB
/
Copy pathjustfile
File metadata and controls
83 lines (66 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Hathor Forge Development Tasks
# Default recipe - show help
default:
@just --list
# Enter Nix development shell
dev:
nix develop
# Install npm dependencies
install:
npm install
# Run frontend in dev mode
frontend:
npm run dev
# Run Tauri in dev mode (includes frontend)
tauri-dev:
npm run tauri dev
# Build release
build:
npm run tauri build
# Build with Nix
nix-build:
nix build
# Build just the runtime (hathor-core + cpuminer)
build-runtime:
nix build .#runtime
# Build hathor-core
build-core:
nix build .#hathor-core
# Build cpuminer
build-miner:
nix build .#cpuminer
# Build tx-mining-service
build-tx-mining:
./scripts/build-tx-mining-service.sh
# Run tests
test:
cargo test --manifest-path src-tauri/Cargo.toml
npm run test
# Format code
fmt:
cargo fmt --manifest-path src-tauri/Cargo.toml
npm run lint:fix
# Check code
check:
cargo check --manifest-path src-tauri/Cargo.toml
npm run lint
./scripts/check-versions.sh
# Clean build artifacts
clean:
rm -rf node_modules dist src-tauri/target result
# Start a local Hathor node (for testing)
run-node port="8080" stratum="8000":
hathor-cli run_node \
--localnet \
--status {{port}} \
--stratum {{stratum}} \
--data ./data \
--allow-mining-without-peers \
--test-mode-tx-weight \
--unsafe-mode privatenet
# Start the miner (connects to local node)
run-miner address threads="4" stratum="8000":
minerd \
--url stratum+tcp://127.0.0.1:{{stratum}} \
--user {{address}} \
--threads {{threads}}