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: Blueprint protocol handshakes #666

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
ebe098f
feat: overhaul networking, removing setup/networking/gossip/round_based
drewstone Feb 18, 2025
161d55e
chore: updates
drewstone Feb 18, 2025
d15b581
chore: blueprint protocol handlers
drewstone Feb 18, 2025
64dfa91
chore: updates
drewstone Feb 18, 2025
9c8f61e
chore: fix lints
drewstone Feb 18, 2025
7b39059
chore: lints
drewstone Feb 18, 2025
de08245
fix: get building
Serial-ATA Feb 18, 2025
a08b221
chore: networking build
drewstone Feb 18, 2025
82e13cb
feat: handshake requests and responses
drewstone Feb 18, 2025
9bf1006
chore: add mermaid diagrams
drewstone Feb 18, 2025
bc88d2c
feat: add compiling networking and round-based-extension
drewstone Feb 19, 2025
8d9bbcb
chore: get 2 tests passing peers connecting, not identifying
drewstone Feb 19, 2025
d29a40d
fix: it builds
shekohex Feb 19, 2025
f71313a
fix: get it to compile with blueprints
shekohex Feb 19, 2025
c2bb2f1
fix: use blake2 vs blake3 for hashing
shekohex Feb 19, 2025
4283667
New networking fixes (#667)
Serial-ATA Feb 19, 2025
9e61009
chore: fix hashing
drewstone Feb 19, 2025
80c4bdc
refactor(networking): move testing utils
Serial-ATA Feb 19, 2025
1150fca
feat: add handshake test
Serial-ATA Feb 19, 2025
8e0d458
chore: add handshake tests / dial on connection
drewstone Feb 19, 2025
b2f449f
chore: add handshake tests
drewstone Feb 19, 2025
f44f1f9
chore: fix
drewstone Feb 19, 2025
4e2bb44
chore: fix
drewstone Feb 19, 2025
ea054f6
chore: fix
drewstone Feb 19, 2025
770c5c5
fix: add back simple handshake verification test
Serial-ATA Feb 19, 2025
b36427e
Revert "fix: add back simple handshake verification test"
Serial-ATA Feb 19, 2025
a9e4d77
chore: add back keys to test node
drewstone Feb 19, 2025
8fc3638
chore: invalid handshake test working
drewstone Feb 19, 2025
184bad2
fix: remove cranelift from cargo.toml
shekohex Feb 19, 2025
985efbe
fix: handshakes
shekohex Feb 19, 2025
138246a
fix: use Sr25519 keys instead
shekohex Feb 19, 2025
0bb024b
feat(networking): round-based tests (#669)
Serial-ATA Feb 19, 2025
8a60e1c
chore: fix and start protocol tests
drewstone Feb 19, 2025
bd83895
chore: fmt
drewstone Feb 19, 2025
94164bb
test: add tests to round-based compat
shekohex Feb 19, 2025
2fb99a3
fix: remove cranelift from cargo.toml
shekohex Feb 19, 2025
67457df
test: add tests for round based networking
shekohex Feb 19, 2025
ada7064
feat: start implementing inbound gossip handling
drewstone Feb 19, 2025
625e382
chore: add network message handler for instance p2p requests and goss…
drewstone Feb 19, 2025
1d6e0c4
chore: change some log levels
Serial-ATA Feb 19, 2025
61c8c40
chore: add gossip test, add subscribe to run, wip
drewstone Feb 19, 2025
a7de981
chore: fmt
drewstone Feb 19, 2025
1d7dbb7
fix: set protocol name properly
Serial-ATA Feb 19, 2025
e1d2c34
chore: fix names
drewstone Feb 19, 2025
db84f81
chore: lock
drewstone Feb 20, 2025
6455c60
fix: round-based networking adapter
shekohex Feb 20, 2025
d1cd1e7
fix: allowed keys
shekohex Feb 20, 2025
f6ec361
Merge remote-tracking branch 'origin/drew/cleanup-networking' into dr…
Serial-ATA Feb 20, 2025
a8aec4f
Merge remote-tracking branch 'origin/drew/new-networking' into drew/n…
Serial-ATA Feb 20, 2025
7a880d7
Merge remote-tracking branch 'origin/drew/cleanup-networking' into dr…
Serial-ATA Feb 20, 2025
0e73291
fix(tangle-testing-utils): stop expecting call ID 0
Serial-ATA Feb 20, 2025
8d76767
fix: use 32 bit for target peers
shekohex Feb 20, 2025
885c723
chore: clippy
Serial-ATA Feb 20, 2025
46a7a7b
refactor(networking): move round-based extension crate
Serial-ATA Feb 20, 2025
741e794
chore: remove round_based compat feature from networking
Serial-ATA Feb 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 69 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 6 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
[workspace]
resolver = "2"
members = [
"cli",
"blueprints/*",
"crates/*",
]
exclude = [
"blueprints/incredible-squaring-symbiotic",
]
members = ["cli", "blueprints/*", "crates/*"]
exclude = ["blueprints/incredible-squaring-symbiotic"]

[workspace.package]
authors = ["Tangle Network"]
Expand All @@ -28,6 +22,7 @@ all = { level = "deny", priority = -1 }
single_match_else = "allow"
uninlined_format_args = "allow"
needless_late_init = "allow"
struct_excessive_bools = "allow"

[workspace.lints.rustdoc]
broken_intra_doc_links = "deny"
Expand Down Expand Up @@ -68,7 +63,6 @@ gadget-clients = { version = "0.1.0", path = "./crates/clients", default-feature
gadget-client-core = { version = "0.1.0", path = "./crates/clients/core", default-features = false }
gadget-client-eigenlayer = { version = "0.1.0", path = "./crates/clients/eigenlayer", default-features = false }
gadget-client-evm = { version = "0.1.0", path = "./crates/clients/evm", default-features = false }
gadget-client-networking = { version = "0.1.0", path = "./crates/clients/networking", default-features = false }
gadget-client-tangle = { version = "0.1.0", path = "./crates/clients/tangle", default-features = false }
gadget-contexts = { version = "0.1.0", path = "./crates/contexts", default-features = false }

Expand Down Expand Up @@ -108,7 +102,7 @@ gadget-std = { version = "0.1.0", path = "./crates/std", default-features = fals

# P2P
gadget-networking = { version = "0.1.0", path = "./crates/networking", default-features = false }
gadget-networking-behaviours = { version = "0.1.0", path = "./crates/networking/behaviours", default-features = false }
gadget-networking-round-based-extension = { version = "0.1.0", path = "./crates/networking/extensions/round-based", default-features = false }

# Utilities
gadget-utils = { version = "0.1.0", path = "./crates/utils", default-features = false }
Expand Down Expand Up @@ -143,6 +137,8 @@ sp-runtime = { version = "39.0.0", default-features = false }

# Async & Runtime
async-trait = { version = "0.1.86", default-features = false }
crossbeam = { version = "0.8", default-features = false }
crossbeam-channel = { version = "0.5", default-features = false }
futures = { version = "0.3.30", default-features = false }
futures-util = { version = "0.3.31", default-features = false }
tokio = { version = "1.40", default-features = false }
Expand Down
8 changes: 3 additions & 5 deletions crates/clients/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ repository.workspace = true
gadget-client-eigenlayer = { workspace = true, optional = true }
gadget-client-evm = { workspace = true, optional = true }
gadget-client-tangle = { workspace = true, optional = true }
gadget-client-networking = { workspace = true, optional = true }
gadget-client-core = { workspace = true }
gadget-std.workspace = true

Expand All @@ -23,14 +22,13 @@ default = ["std"]
std = [
"gadget-client-eigenlayer?/std",
"gadget-client-evm?/std",
"gadget-client-networking?/std",
"gadget-client-tangle?/std",
"gadget-std/std",
"thiserror/std"
"thiserror/std",
]
web = ["gadget-client-tangle?/web"]

eigenlayer = ["dep:gadget-client-eigenlayer"]
evm = ["dep:gadget-client-evm"]
networking = ["dep:gadget-client-networking"]
tangle = ["dep:gadget-client-tangle"]
tangle = ["dep:gadget-client-tangle"]
networking = []
34 changes: 0 additions & 34 deletions crates/clients/networking/Cargo.toml

This file was deleted.

22 changes: 0 additions & 22 deletions crates/clients/networking/src/error.rs

This file was deleted.

4 changes: 0 additions & 4 deletions crates/clients/networking/src/lib.rs

This file was deleted.

Loading
Loading