Skip to content
16 changes: 16 additions & 0 deletions rust/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ pre-push: sync-cfg code-format code-lint
earthly +check
earthly +build

build-follow_chains: code-format code-lint
cargo build --release --package cardano-chain-follower --example follow_chains --features mimalloc

# Run long running developer test for mithril downloading.
run-mithril-download-example-preprod: code-format code-lint
cargo build -r --package cardano-chain-follower --example follow_chains --features mimalloc
Expand Down Expand Up @@ -68,3 +71,16 @@ debug-heap-mithril-download-example: code-format code-lint
cargo build --package cardano-chain-follower --example follow_chains
RUST_LOG="error,follow_chains=debug,cardano_chain_follower=debug,mithril-client=debug" \
heaptrack ./target/debug/examples/follow_chains --preprod

# Dump a set of transactions to aid with development and debugging.
# Example: `dump-txn-preprod 91972303 7558ca3658d6c5`
dump-txn-preprod START_SLOT TXN_HASH:
echo Starting at {{START_SLOT}} Look for Transaction Hash {{TXN_HASH}}
# RUST_LOG="error,follow_chains=debug,cardano_chain_follower=debug,mithril-client=debug" \#
./target/release/examples/follow_chains --inhibit-stats --preprod --mithril-sync-workers 64 --mithril-sync-chunk-size 16 --mithril-sync-queue-ahead=6 --start-at-slot {{START_SLOT}} --dump-transaction {{TXN_HASH}}

# Dump a set of transactions to aid with development and debugging.
dump-txn-mainnet START_SLOT TXN_HASH:
echo Starting at {{START_SLOT}} Look for Transaction Hash {{TXN_HASH}}
# RUST_LOG="error,follow_chains=debug,cardano_chain_follower=debug,mithril-client=debug" \#
./target/release/examples/follow_chains --inhibit-stats --mainnet --mithril-sync-workers 64 --mithril-sync-chunk-size 16 --mithril-sync-queue-ahead=6 --start-at-slot {{START_SLOT}} --dump-transaction {{TXN_HASH}}
5 changes: 3 additions & 2 deletions rust/cardano-chain-follower/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ moka = { version = "0.12.9", features = ["sync"] }
cpu-time = "1.0.0"

[dev-dependencies]
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
tracing-subscriber = { version = "0.3.19", features = ["env-filter","json"] }
test-log = { version = "0.2.16", default-features = false, features = [
"trace",
] }
clap = "4.5.23"
rbac-registration = { version = "0.0.6", path = "../rbac-registration" }
rbac-registration = { version = "0.0.6", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "rbac-registration-v0.0.6" }
minicbor = { version = "2.0.0", features = ["alloc","half"]}

# Note, these features are for support of features exposed by dependencies.
[features]
Expand Down
Loading
Loading