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

Add sample Starknet P2P tests utilizing synthetic node and get header request #1

Merged
merged 14 commits into from
Sep 13, 2024

Conversation

wojciechos
Copy link
Collaborator

@wojciechos wojciechos commented Aug 28, 2024

Please ignore the /protocols/ directory. It's copied directly from Juno with minor changes. Temporarly I couldn't import the package because of many not needed, heavy Rust deps. For more details, see: NethermindEth/juno#2084.

PR added demo p2p tests for starkness network, including:

  1. Conformance test for verifying block header
  2. Performance test for block header
  3. Peer discovery

@wojciechos wojciechos force-pushed the go-p2p-tests branch 2 times, most recently from 4144fc1 to 921bbdb Compare August 29, 2024 10:22
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
config/config.go Show resolved Hide resolved

message Event {
Hash transaction_hash = 1;
Felt252 from_address = 3; // looks like mistake?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the fact that it doesn't have a value for 2?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kirugan, do you know if the value 2 is intentionally missing in the spec, or was it overlooked?

src/main.rs Outdated Show resolved Hide resolved
go.mod Show resolved Hide resolved
config/config.go Outdated Show resolved Hide resolved
@rianhughes rianhughes self-requested a review September 13, 2024 07:45
wojciechos and others added 2 commits September 13, 2024 11:24
* Add p2p discover test

* Fix discovery test

* Clean up tests

* Use go's benchmarking for perf tests

* Make perf test framework

Discovery test (#3)

* Add p2p discover test

* Fix discovery test

* Clean up tests

* Use go's benchmarking for perf tests

* dsf

* Make perf test framework

* use external target node for pipeline run

---------

Discovery test (#4)

* Add p2p discover test

* Fix discovery test

* Clean up tests

* Use go's benchmarking for perf tests
@wojciechos wojciechos merged commit a7e81ff into main Sep 13, 2024
1 check passed
@wojciechos wojciechos deleted the go-p2p-tests branch September 13, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants