Skip to content

Commit 7f96caf

Browse files
authored
Merge branch 'develop' into feat/stackerdb-sync
2 parents cd1c499 + 7581e6d commit 7f96caf

File tree

5 files changed

+15
-28
lines changed

5 files changed

+15
-28
lines changed

Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,17 @@ members = [
77
"clarity",
88
"stx-genesis",
99
"testnet/stacks-node"]
10+
11+
# Use a bit more than default optimization for
12+
# dev builds to speed up test execution
13+
[profile.dev]
14+
opt-level = 1
15+
16+
# Use release-level optimization for dependencies
17+
# This slows down "first" builds on development environments,
18+
# but won't impact subsequent builds.
19+
[profile.dev.package."*"]
20+
opt-level = 3
21+
22+
[profile.release]
23+
debug = true

clarity/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ developer-mode = []
5555
slog_json = ["stacks_common/slog_json"]
5656
testing = []
5757

58-
[profile.dev.package.regex]
59-
opt-level = 2
60-
6158
[target.'cfg(all(target_arch = "x86_64", not(target_env = "msvc")))'.dependencies]
6259
sha2-asm = "0.5.3"
6360

stackslib/Cargo.toml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ resolver = "2"
1414
edition = "2021"
1515
rust-version = "1.61"
1616

17-
[profile.release]
18-
debug = true
19-
2017
[lib]
2118
name = "blockstack_lib"
2219
path = "src/lib.rs"
@@ -110,17 +107,6 @@ monitoring_prom = ["prometheus"]
110107
slog_json = ["slog-json", "stacks-common/slog_json", "clarity/slog_json", "pox-locking/slog_json"]
111108
testing = []
112109

113-
# Use a bit more than default optimization for
114-
# dev builds to speed up test execution
115-
[profile.dev]
116-
opt-level = 1
117-
118-
# Use release-level optimization for dependencies
119-
# This slows down "first" builds on development environments,
120-
# but won't impact subsequent builds.
121-
[profile.dev.package."*"]
122-
opt-level = 3
123-
124110
[target.'cfg(all(any(target_arch = "x86_64", target_arch = "x86", target_arch = "aarch64"), not(target_env = "msvc")))'.dependencies]
125111
sha2 = { version = "0.10", features = ["asm"] }
126112

stackslib/src/net/neighbors/comms.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ impl ToNeighborKey for NeighborKey {
574574
impl ToNeighborKey for NeighborAddress {
575575
fn to_neighbor_key(&self, network: &PeerNetwork) -> NeighborKey {
576576
// NOTE: PartialEq and Hash for NeighborKey ignore the low bits of peer version
577-
// and ignore network ID, and the CovnersationP2P ensures that we never even connect
577+
// and ignore network ID, and the ConversationP2P ensures that we never even connect
578578
// to a node with the wrong network ID or wrong peer version bits anyway, so
579579
// it's safe to use the local node's copies of this data to construct a
580580
// NeighborKey for the purposes of later disconnecting from it.

stackslib/src/net/neighbors/db.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ impl PeerDBNeighborWalk {
253253
}
254254

255255
impl NeighborWalkDB for PeerDBNeighborWalk {
256-
/// implements get_fresh_random_neighbors
257256
fn get_fresh_random_neighbors(
258257
&self,
259258
network: &PeerNetwork,
@@ -283,7 +282,6 @@ impl NeighborWalkDB for PeerDBNeighborWalk {
283282
Ok(neighbors)
284283
}
285284

286-
/// implements lookup_stale_neighbors
287285
fn lookup_stale_neighbors(
288286
&self,
289287
network: &PeerNetwork,
@@ -336,7 +334,6 @@ impl NeighborWalkDB for PeerDBNeighborWalk {
336334
Ok((resolved, to_resolve))
337335
}
338336

339-
/// implements add_or_schedule_replace_neighbor
340337
fn add_or_schedule_replace_neighbor(
341338
&self,
342339
network: &mut PeerNetwork,
@@ -397,7 +394,6 @@ impl NeighborWalkDB for PeerDBNeighborWalk {
397394
Ok((true, neighbor_from_handshake))
398395
}
399396

400-
/// implements get_initial_walk_neighbors
401397
fn get_initial_walk_neighbors(
402398
&self,
403399
network: &PeerNetwork,
@@ -419,7 +415,6 @@ impl NeighborWalkDB for PeerDBNeighborWalk {
419415
Ok(allowed_peers)
420416
}
421417

422-
/// implements check_neighbor_denied
423418
fn check_neighbor_denied(
424419
&self,
425420
network: &PeerNetwork,
@@ -442,7 +437,6 @@ impl NeighborWalkDB for PeerDBNeighborWalk {
442437
Ok(())
443438
}
444439

445-
/// implements replace_neighbors
446440
fn replace_neighbors(
447441
&self,
448442
network: &mut PeerNetwork,
@@ -483,7 +477,6 @@ impl NeighborWalkDB for PeerDBNeighborWalk {
483477
Ok(())
484478
}
485479

486-
/// implements neighbor_from_handshake
487480
fn neighbor_from_handshake(
488481
&self,
489482
network: &PeerNetwork,
@@ -499,7 +492,6 @@ impl NeighborWalkDB for PeerDBNeighborWalk {
499492
.map(|(neighbor, _)| neighbor)
500493
}
501494

502-
/// implements save_neighbor_from_handshake
503495
fn save_neighbor_from_handshake(
504496
&self,
505497
network: &mut PeerNetwork,
@@ -519,7 +511,6 @@ impl NeighborWalkDB for PeerDBNeighborWalk {
519511
Ok(neighbor_from_handshake)
520512
}
521513

522-
/// implements update_neighbor
523514
fn update_neighbor(
524515
&self,
525516
network: &mut PeerNetwork,
@@ -540,7 +531,6 @@ impl NeighborWalkDB for PeerDBNeighborWalk {
540531
Ok(cur_neighbor)
541532
}
542533

543-
/// implements get_asn_count
544534
fn get_asn_count(&self, network: &PeerNetwork, asn: u32) -> u64 {
545535
PeerDB::asn_count(network.peerdb_conn(), asn).unwrap_or(1)
546536
}

0 commit comments

Comments
 (0)