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

compress header #1643

Merged
merged 5 commits into from
Sep 27, 2019
Merged

Conversation

zhangsoledad
Copy link
Member

@zhangsoledad zhangsoledad commented Sep 25, 2019

  • remove uncles_count
  • merge witnesses_root & transaction_root
  • replace difficulty with compact_target

@zhangsoledad zhangsoledad requested a review from a team September 25, 2019 07:48
nervos-bot[bot]
nervos-bot bot previously requested changes Sep 25, 2019
Copy link

@nervos-bot nervos-bot bot left a comment

Choose a reason for hiding this comment

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

Hold as requested by @zhangsoledad.

@doitian doitian added this to 👀 Awaiting review in CKB - Pull Requests Sep 26, 2019
@doitian doitian moved this from 👀 Awaiting review to 🔴 High priority in CKB - Pull Requests Sep 26, 2019
util/types/src/utilities/difficulty.rs Outdated Show resolved Hide resolved
util/types/src/utilities/difficulty.rs Outdated Show resolved Hide resolved
CKB - Pull Requests automation moved this from 🔴 High priority to 👀 Awaiting review Sep 26, 2019
@zhangsoledad zhangsoledad force-pushed the zhangsoledad/compress_header branch 2 times, most recently from 1134a01 to 5753e83 Compare September 26, 2019 14:42
@zhangsoledad zhangsoledad changed the title [WIP] compress header compress header Sep 26, 2019
@nervos-bot nervos-bot bot dismissed their stale review September 26, 2019 14:42

Unhold as requested by @zhangsoledad.

@zhangsoledad zhangsoledad added the s:waiting-on-reviewers Status: Waiting for Review label Sep 26, 2019
@doitian doitian dismissed their stale review September 27, 2019 01:40

Requests fulfilled

@doitian doitian moved this from 👀 Awaiting review to 🔴 High priority in CKB - Pull Requests Sep 27, 2019
CKB - Pull Requests automation moved this from 🔴 High priority to ✅ Reviewer approved Sep 27, 2019
u2
u2 previously requested changes Sep 27, 2019
Copy link
Contributor

@u2 u2 left a comment

Choose a reason for hiding this comment

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

There may be some problem in compact_to_target overflow checking.

util/types/src/utilities/difficulty.rs Outdated Show resolved Hide resolved
CKB - Pull Requests automation moved this from ✅ Reviewer approved to 👀 Awaiting review Sep 27, 2019
@zhangsoledad zhangsoledad dismissed u2’s stale review September 27, 2019 10:21

whether target is valid is different concept with overflow check.

CKB - Pull Requests automation moved this from 🔴 High priority to 👀 Awaiting review Sep 27, 2019
CKB - Pull Requests automation moved this from 👀 Awaiting review to ✅ Reviewer approved Sep 27, 2019
@doitian
Copy link
Member

doitian commented Sep 27, 2019

bors r+

@nervos-bot nervos-bot bot added the s:ready-to-merge Status: Waiting to be merged. label Sep 27, 2019
bors bot added a commit that referenced this pull request Sep 27, 2019
1643: compress header r=doitian a=zhangsoledad

* remove uncles_count
* merge witnesses_root & transaction_root
* replace difficulty with compact_target

Co-authored-by: zhangsoledad <787953403@qq.com>
@bors
Copy link
Contributor

bors bot commented Sep 27, 2019

Build failed

  • continuous-integration/travis-ci/push

@zhangsoledad
Copy link
Member Author

@u2 your opinion is more reasonable.
compact_to_target, not compact_encode, it's not a general encode.
I apply it after thinking

@zhangsoledad
Copy link
Member Author

bors r=u2,doitian

bors bot added a commit that referenced this pull request Sep 27, 2019
1643: compress header r=u2,doitian a=zhangsoledad

* remove uncles_count
* merge witnesses_root & transaction_root
* replace difficulty with compact_target

Co-authored-by: zhangsoledad <787953403@qq.com>
@bors
Copy link
Contributor

bors bot commented Sep 27, 2019

Build failed

  • continuous-integration/travis-ci/push

@zhangsoledad
Copy link
Member Author

@zhangsoledad
Copy link
Member Author

bors retry

bors bot added a commit that referenced this pull request Sep 27, 2019
1643: compress header r=u2,doitian a=zhangsoledad

* remove uncles_count
* merge witnesses_root & transaction_root
* replace difficulty with compact_target

Co-authored-by: zhangsoledad <787953403@qq.com>
@bors
Copy link
Contributor

bors bot commented Sep 27, 2019

Canceled

@zhangsoledad
Copy link
Member Author

bors r=u2,doitian

bors bot added a commit that referenced this pull request Sep 27, 2019
1643: compress header r=u2,doitian a=zhangsoledad

* remove uncles_count
* merge witnesses_root & transaction_root
* replace difficulty with compact_target

Co-authored-by: zhangsoledad <787953403@qq.com>
@bors
Copy link
Contributor

bors bot commented Sep 27, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit 9d812af into nervosnetwork:develop Sep 27, 2019
CKB - Pull Requests automation moved this from ✅ Reviewer approved to Done Sep 27, 2019
@zhangsoledad zhangsoledad deleted the zhangsoledad/compress_header branch September 27, 2019 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s:ready-to-merge Status: Waiting to be merged. s:waiting-on-reviewers Status: Waiting for Review
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants