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(lib/parachain): added parachain service and registering protocols #3277

Merged
merged 142 commits into from
Jul 11, 2023

Conversation

kishansagathiya
Copy link
Contributor

@kishansagathiya kishansagathiya commented May 24, 2023

Changes

  • Adds parachain service
  • registers collator and validation protocol
  • confirms that we can communicate with collators by talking to them in run() function

Tests

Run a gossamer node, a polkadot and a collator node (adder test parachain from polkadot). I think you would be able to test it will just gossamer node and a collator node as well.

Observe the logs and notice that you can

  • register collation and validation protocol
  • negotiate a handshake and establish connection between gossamer and collator
  • send data to collator and receive data from collator

Run polkadot node and gossamer node

  • I generally clean my setup first
rm -r /tmp/alice /tmp/bob /tmp/charlie /tmp/dave ~/.gossamer /home/kishan/.local/share/polkadot/
./bin/gossamer init --force --chain westend-local
  • Run polkadot node
./polkadot --bob  --listen-addr /ip4/0.0.0.0/tcp/30334 --validator --base-path /tmp/bob --ws-port 8556 --rpc-port 8555 --chain /home/kishan/code/gossamer/chain/westend-local/westend-local-spec-raw.json --log=trace &>  ~/code/gossamer/bob_trace.log

Look for identity in the logs an pick up peer id of this node

  • Run gossamer node
./bin/gossamer --chain westend-local --key alice --bootnodes /ip4/127.0.0.1/tcp/30334/p2p/<peer id of bob retrieved from above> --log global=trace >  ~/code/gossamer/alice_trace.log

Run adder parachain

  • cd into polkadot repo.
  • Build adder parachain
cargo build --release -p test-parachain-adder-collator
  • Run a collator node from adder test parachain
target/release/adder-collator --chain /home/kishan/code/gossamer/chain/westend-local/westend-local-spec-raw.json --tmp --port 50553 --rpc-port 9933 --ws-port 9944 --prometheus-port 9615 --rpc-cors all --log=trace &> ~/code/gossamer/parachain.log
go test -tags integration github.com/ChainSafe/gossamer

Issues

Primary Reviewer

@timwu20

kishansagathiya added a commit that referenced this pull request Jul 12, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kishansagathiya added a commit that referenced this pull request Jul 12, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kishansagathiya added a commit that referenced this pull request Jul 14, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kishansagathiya added a commit that referenced this pull request Jul 27, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kishansagathiya added a commit that referenced this pull request Aug 4, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kishansagathiya added a commit that referenced this pull request Aug 22, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kishansagathiya added a commit that referenced this pull request Aug 22, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack pushed a commit that referenced this pull request Aug 30, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack pushed a commit that referenced this pull request Aug 31, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack added a commit that referenced this pull request Aug 31, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kishansagathiya added a commit that referenced this pull request Sep 14, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack pushed a commit that referenced this pull request Sep 18, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kanishkatn pushed a commit that referenced this pull request Nov 1, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kanishkatn pushed a commit that referenced this pull request Nov 1, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kanishkatn pushed a commit that referenced this pull request Dec 14, 2023
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kishansagathiya added a commit that referenced this pull request Jan 23, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kishansagathiya added a commit that referenced this pull request Jan 24, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack pushed a commit that referenced this pull request Jan 28, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack pushed a commit that referenced this pull request Mar 5, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack pushed a commit that referenced this pull request Apr 2, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack pushed a commit that referenced this pull request Apr 12, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack pushed a commit that referenced this pull request Apr 24, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack pushed a commit that referenced this pull request Apr 30, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
timwu20 pushed a commit that referenced this pull request Jun 13, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
timwu20 pushed a commit that referenced this pull request Jun 17, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
timwu20 pushed a commit that referenced this pull request Jun 20, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack pushed a commit that referenced this pull request Jun 26, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
edwardmack pushed a commit that referenced this pull request Jul 12, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kishansagathiya added a commit that referenced this pull request Jul 15, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
kishansagathiya added a commit that referenced this pull request Jul 15, 2024
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
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.

7 participants