Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new behavior for network bootstrapping #1257

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
273 changes: 54 additions & 219 deletions Cargo.lock

Large diffs are not rendered by default.

73 changes: 1 addition & 72 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,75 +108,4 @@ split-debuginfo = "unpacked"
[profile.release]
lto = "thin"
codegen-units = 16

[workspace.dependencies]
sbtc = { path = "./sbtc", default-features = false }
emily-handler = { version = "0.1.0", path = "./emily/handler" }
emily-client = { version = "0.1.0", path = "./.generated-sources/emily/client/rust/public" }
testing-emily-client = { version = "0.1.0", path = "./.generated-sources/emily/client/rust/testing" }

aquamarine = "0.5.0"
aws-config = "1.2.0"
aws_lambda_events = "0.15.0"
aws-sdk-dynamodb = { version = "1.36.0" }
backoff = { version = "0.4.0", features = ["tokio"] }
base64 = "0.22.1"
bincode = "1.3.3"
bitcoin = { version = "0.32", features = ["serde", "rand-std"] }
bitcoincore-rpc = { version = "0.19" }
bitcoincore-rpc-json = { version = "0.19" }
bitcoincore-zmq = { version = "1.5.2", features = ["async"] }
bitvec = { version = "1.0", default-features = false, features = ["serde", "std"] }
clarity = { git = "https://github.com/stacks-network/stacks-core", rev = "49777d3fd73a6dbb610be80c376b7d9389c9871a" }
clap = { version = "4.5.4", features = ["derive", "env"] }
config = "0.14.0"
futures = "0.3.24"
hashbrown = "0.14.5"
http = "1.1.0"
lru = { version = "0.12", default-features = false }
metrics = "0.24"
metrics-exporter-prometheus = { version = "0.16", default-features = false, features = ["http-listener"] }
# This is necessary to compile the AWS Lambda as a lambda.
openssl = { version = "0.10.66", features = ["vendored"] }
p256k1 = "7.2.0"
prost = "0.12.5"
rand = "0.8"
reqwest = { version = "0.11", features = ["json"] }
serde = { version = "1.0", features = ["derive"] }
serde_bytes = "0.11"
serde_dynamo = {version = "4.2", features = ["aws-sdk-dynamodb+1"] }
serde_json = "1.0"
sha2 = "0.10"
sqlx = { version = "0.8.2", default-features = false, features = [ "postgres", "runtime-tokio", "tls-rustls", "derive", "macros" ] }
stackslib = { git = "https://github.com/stacks-network/stacks-core", rev = "49777d3fd73a6dbb610be80c376b7d9389c9871a" }
stacks-common = { git = "https://github.com/stacks-network/stacks-core", rev = "49777d3fd73a6dbb610be80c376b7d9389c9871a" }
strum = { version = "0.26", features = ["derive"] }
thiserror = "1.0"
time = { version = "0.3.36", features = ["serde"] }
tonic = "0.11.0"
tonic-build = "0.11.0"
tokio = { version = "1.32.0", default-features = false, features = ["signal", "macros", "rt-multi-thread", "rt"] }
tokio-stream = {version = "0.1.15", features = ["sync"] }
tracing = { version = "0.1", default-features = false }
tracing-attributes = "0.1"
url = "2.5"
warp_lambda = "0.1.4"
wsts = "9.2.0"
hex = "0.4.3"
libp2p = { version = "0.55.0", default-features = false, features = [
"macros", "kad", "noise", "ping", "tcp",
"tokio", "yamux", "mdns", "quic", "gossipsub",
"relay", "identify", "tls", "dns", "autonat",
"secp256k1"
] }
fake = { version = "2.9.2", features = ["derive", "time"] }

[workspace.dependencies.axum]
version = "0.7"
default-features = false
features = ["http1", "json", "tracing", "tokio", "tower-log"]

[workspace.dependencies.tracing-subscriber]
version = "0.3"
default-features = false
features = ["env-filter", "fmt", "json", "time", "ansi"]
overflow-checks = true
6 changes: 4 additions & 2 deletions signer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ config.workspace = true
emily-client.workspace = true
futures.workspace = true
hashbrown.workspace = true
libp2p = { workspace = true, default-features = false }
lru = { workspace = true, default-features = false }
hex.workspace = true
include_dir.workspace = true
libp2p.workspace = true
lru.workspace = true
metrics.workspace = true
metrics-exporter-prometheus.workspace = true
p256k1.workspace = true
Expand Down
1 change: 1 addition & 0 deletions signer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ async fn run_libp2p_swarm(ctx: impl Context) -> Result<(), Error> {
.add_external_addresses(&ctx.config().signer.p2p.public_endpoints)
.enable_mdns(config.signer.p2p.enable_mdns)
.enable_quic_transport(enable_quic)
.with_initial_bootstrap_delay(Duration::from_secs(3))
.build()?;

// Start the libp2p swarm. This will run until either the shutdown signal is
Expand Down
Loading