move stacks-events to testnet/stacks-node/src

This commit is contained in:
Igor
2022-10-01 17:52:44 -07:00
parent f2c746768e
commit befeb4b855
5 changed files with 9 additions and 8 deletions

3
Cargo.lock generated
View File

@@ -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",

View File

@@ -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"

View File

@@ -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:

View File

@@ -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"]

View File

@@ -1,4 +1,3 @@
use blockstack_lib::chainstate::stacks::StacksTransaction;
use chrono::{DateTime, Local, SecondsFormat, Utc};
use lazy_static::lazy_static;
use regex::Regex;