diff --git a/Cargo.lock b/Cargo.lock index d0c9eb033..1dae7376e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -388,7 +388,6 @@ dependencies = [ "mio 0.6.23", "nix", "percent-encoding", - "pico-args", "prometheus", "rand 0.7.3", "rand_chacha 0.2.2", @@ -2657,12 +2656,14 @@ dependencies = [ "backtrace", "base64 0.12.3", "blockstack-core", + "chrono", "clarity", "http-types", "lazy_static", "libc", "pico-args", "rand 0.7.3", + "regex", "reqwest", "ring", "rusqlite", diff --git a/Cargo.toml b/Cargo.toml index da435f9b7..630b87b7c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,10 +32,6 @@ path = "src/clarity_cli_main.rs" name = "blockstack-cli" path = "src/blockstack_cli.rs" -[[bin]] -name = "stacks-events" -path = "src/stacks_events.rs" - [[bench]] name = "marf_bench" harness = false @@ -53,7 +49,6 @@ name = "c32_bench" harness = false [dependencies] -pico-args = "0.3.1" rand = "0.7.3" rand_chacha = "=0.2.2" serde = "1" diff --git a/docs/profiling.md b/docs/profiling.md index 1dddaf621..c35ca532a 100644 --- a/docs/profiling.md +++ b/docs/profiling.md @@ -86,7 +86,7 @@ Once the node is synchronized, terminate the `stacks-node` process so we can set Run `stacks-events` to receive and archive events: ``` -$ cargo run -r --bin stacks-events | tee $STACKS_DIR/events.log +$ cargo run -r -p stacks-node --bin stacks-events | tee $STACKS_DIR/events.log ``` Run `stacks-node` with an event observer: diff --git a/testnet/stacks-node/Cargo.toml b/testnet/stacks-node/Cargo.toml index 5785518b7..423a30639 100644 --- a/testnet/stacks-node/Cargo.toml +++ b/testnet/stacks-node/Cargo.toml @@ -24,6 +24,8 @@ libc = "0.2" slog = { version = "2.5.2", features = [ "max_level_trace" ] } clarity = { package = "clarity", path = "../../clarity/." } stacks_common = { package = "stacks-common", path = "../../stacks-common/." } +chrono = "0.4.19" +regex = "1" [dev-dependencies] ring = "0.16.19" @@ -39,6 +41,10 @@ features = ["blob", "serde_json", "i128_blob", "bundled", "trace"] name = "stacks-node" path = "src/main.rs" +[[bin]] +name = "stacks-events" +path = "src/stacks_events.rs" + [features] monitoring_prom = ["stacks/monitoring_prom"] slog_json = ["stacks/slog_json", "stacks_common/slog_json", "clarity/slog_json"] diff --git a/src/stacks_events.rs b/testnet/stacks-node/src/stacks_events.rs similarity index 98% rename from src/stacks_events.rs rename to testnet/stacks-node/src/stacks_events.rs index 4c80796d1..2ecf327b9 100644 --- a/src/stacks_events.rs +++ b/testnet/stacks-node/src/stacks_events.rs @@ -1,4 +1,3 @@ -use blockstack_lib::chainstate::stacks::StacksTransaction; use chrono::{DateTime, Local, SecondsFormat, Utc}; use lazy_static::lazy_static; use regex::Regex;