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: add network protocol config #2641

Merged
merged 1 commit into from
Jul 30, 2021
Merged

Conversation

quake
Copy link
Member

@quake quake commented Apr 5, 2021

This feature is designed for testing and use of ckb-network crate by third party code, allows user to customize network protocols, for example, only open sync protocol in full node:

support_protocols = ["Sync"]

@quake quake requested a review from a team April 5, 2021 04:38
@quake quake force-pushed the quake/network-protocol-config branch 2 times, most recently from 776d300 to 7064922 Compare April 6, 2021 05:45
@nervos-bot-user
Copy link
Collaborator

Can one of the admins verify this patch?

network/src/network.rs Outdated Show resolved Hide resolved
@quake quake force-pushed the quake/network-protocol-config branch from 7064922 to 681a5be Compare April 26, 2021 04:45
driftluo
driftluo previously approved these changes Apr 26, 2021
@stale
Copy link

stale bot commented Jun 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the s:wontfix Status: Wont fix label Jun 18, 2021
@quake quake removed the s:wontfix Status: Wont fix label Jun 19, 2021
@quake quake force-pushed the quake/network-protocol-config branch from 681a5be to a3e42ed Compare July 30, 2021 03:30
@quake quake requested a review from a team as a code owner July 30, 2021 03:30
@quake quake requested a review from doitian July 30, 2021 03:30
@quake
Copy link
Member Author

quake commented Jul 30, 2021

rebased with develop, please review again.

@zhangsoledad
Copy link
Member

#2857

@doitian
Copy link
Member

doitian commented Jul 30, 2021

bors r=zhangsoledad,driftluo

@bors
Copy link
Contributor

bors bot commented Jul 30, 2021

Build succeeded:

@bors bors bot merged commit f4e0bc4 into develop Jul 30, 2021
@bors bors bot deleted the quake/network-protocol-config branch July 30, 2021 07:20
@doitian doitian mentioned this pull request Aug 10, 2021
3 tasks
@doitian doitian mentioned this pull request Sep 3, 2021
bors bot added a commit that referenced this pull request Oct 23, 2021
3114: chore: warn incomplete supported network protocols r=zhangsoledad,driftluo a=keroro520

<!--
Thank you for contributing to nervosnetwork/ckb!

If you haven't already, please read [CONTRIBUTING](https://github.com/nervosnetwork/ckb/blob/develop/CONTRIBUTING.md) document.

If you're unsure about anything, just ask; somebody should be along to answer within a day or two.

PR Title Format:
1. module [, module2, module3]: what's changed
2. *: what's changed
-->

### What is changed and how it works?

What's Changed:

Added a warning log for enabling incomplete network protocols. The logs are helpful for investigating.

### Related changes

- PR to update `owner/repo`: #2641

### Check List <!--REMOVE the items that are not applicable-->

Tests <!-- At least one of them must be included. -->

- No code (skip ci)

### Release note <!-- Choose from None, Title Only and Note. Bugfixes or new features need a release note. -->

```release-note
None: Exclude this PR from the release note.
```



3136: fix: InvalidHeaderDep wait_for_tx_pool r=quake,yangby-cryptape a=zhangsoledad

<!--
Thank you for contributing to nervosnetwork/ckb!

If you haven't already, please read [CONTRIBUTING](https://github.com/nervosnetwork/ckb/blob/develop/CONTRIBUTING.md) document.

If you're unsure about anything, just ask; somebody should be along to answer within a day or two.

PR Title Format:
1. module [, module2, module3]: what's changed
2. *: what's changed
-->

### What problem does this PR solve?

integration-test InvalidHeaderDep random failed.

### What is changed and how it works?

What's Changed: wait tx-pool state sync with chain.


### Check List <!--REMOVE the items that are not applicable-->

Tests <!-- At least one of them must be included. -->

- Integration test

### Release note <!-- Choose from None, Title Only and Note. Bugfixes or new features need a release note. -->

```release-note
None: Exclude this PR from the release note.
```



3137: chore: update platform support tier r=quake,yangby-cryptape a=doitian

- chore: drop Ubuntu Xenial support
- chore: remove Windows experimental notice

### What problem does this PR solve?

Problem Summary: Platform tiers information is outdated.

### Check List <!--REMOVE the items that are not applicable-->

Tests <!-- At least one of them must be included. -->

- No code ci-runs-only: [ quick_checks,linters ]

### Release note <!-- Choose from None, Title Only and Note. Bugfixes or new features need a release note. -->

```release-note
None: Exclude this PR from the release note.
```



3138: docs: Update get-ckb link names in README.md r=quake,yangby-cryptape a=doitian

### What problem does this PR solve?

Problem Summary: "Get CKB" is not a good name since the doc also tells how to build CKB.

### What is changed and how it works?

What's Changed: Update the link names.

### Check List <!--REMOVE the items that are not applicable-->

Tests <!-- At least one of them must be included. -->

- No code ci-runs-only: [ quick_checks,linters ]

### Release note <!-- Choose from None, Title Only and Note. Bugfixes or new features need a release note. -->

```release-note
None: Exclude this PR from the release note.
```



Co-authored-by: keroro <[email protected]>
Co-authored-by: zhangsoledad <[email protected]>
Co-authored-by: ian <[email protected]>
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.

5 participants