mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
move stacks-events to testnet/stacks-node/src
This commit is contained in:
3
Cargo.lock
generated
3
Cargo.lock
generated
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
use blockstack_lib::chainstate::stacks::StacksTransaction;
|
||||
use chrono::{DateTime, Local, SecondsFormat, Utc};
|
||||
use lazy_static::lazy_static;
|
||||
use regex::Regex;
|
||||
Reference in New Issue
Block a user