This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
refactor(consensus)!: replace Validator address bytes with pubkey bytes #354
Merged
muta-robot
merged 3 commits into
nervosnetwork:master
from
zeroqn:change-consensus-replace-address-with-pubkey
Jul 15, 2020
Merged
refactor(consensus)!: replace Validator address bytes with pubkey bytes #354
muta-robot
merged 3 commits into
nervosnetwork:master
from
zeroqn:change-consensus-replace-address-with-pubkey
Jul 15, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zeroqn
changed the title
change(consensus): replace Validator address bytes with pubkey bytes
refactor(consensus): replace Validator address bytes with pubkey bytes
Jul 14, 2020
zeroqn
changed the title
refactor(consensus): replace Validator address bytes with pubkey bytes
refactor(consensus)!: replace Validator address bytes with pubkey bytes
Jul 14, 2020
/test chaos |
1 similar comment
/test chaos |
BREAKING CHANGE: - replace Validator address bytes with pubkey bytes
Block proposer is address instead public key
zeroqn
force-pushed
the
change-consensus-replace-address-with-pubkey
branch
from
July 14, 2020 21:35
167b365
to
4d5593a
Compare
/retest |
rev-chaos
approved these changes
Jul 15, 2020
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rev-chaos The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
zeroqn
added a commit
to zeroqn/muta
that referenced
this pull request
Jul 15, 2020
…es (nervosnetwork#354) * change(consensus): replace Validator address bytes with pubkey bytes BREAKING CHANGE: - replace Validator address bytes with pubkey bytes * change(consensus): log validator address instead of its public key Block proposer is address instead public key * fix: compilation failed
zeroqn
added a commit
to zeroqn/muta
that referenced
this pull request
Jul 16, 2020
…es (nervosnetwork#354) (#2) * change(consensus): replace Validator address bytes with pubkey bytes BREAKING CHANGE: - replace Validator address bytes with pubkey bytes * change(consensus): log validator address instead of its public key Block proposer is address instead public key * fix: compilation failed
zeroqn
added a commit
to zeroqn/muta
that referenced
this pull request
Jul 20, 2020
…es (nervosnetwork#354) (#2) * change(consensus): replace Validator address bytes with pubkey bytes BREAKING CHANGE: - replace Validator address bytes with pubkey bytes * change(consensus): log validator address instead of its public key Block proposer is address instead public key * fix: compilation failed
zeroqn
added a commit
to zeroqn/muta
that referenced
this pull request
Jul 20, 2020
…es (nervosnetwork#354) (#2) * change(consensus): replace Validator address bytes with pubkey bytes BREAKING CHANGE: - replace Validator address bytes with pubkey bytes * change(consensus): log validator address instead of its public key Block proposer is address instead public key * fix: compilation failed
zeroqn
added a commit
to zeroqn/muta
that referenced
this pull request
Jul 23, 2020
…es (nervosnetwork#354) (#2) * change(consensus): replace Validator address bytes with pubkey bytes BREAKING CHANGE: - replace Validator address bytes with pubkey bytes * change(consensus): log validator address instead of its public key Block proposer is address instead public key * fix: compilation failed
zeroqn
added a commit
to zeroqn/muta
that referenced
this pull request
Jul 24, 2020
…es (nervosnetwork#354) (#2) * change(consensus): replace Validator address bytes with pubkey bytes BREAKING CHANGE: - replace Validator address bytes with pubkey bytes * change(consensus): log validator address instead of its public key Block proposer is address instead public key * fix: compilation failed
zeroqn
added a commit
to zeroqn/muta
that referenced
this pull request
Jul 24, 2020
…es (nervosnetwork#354) (#2) * change(consensus): replace Validator address bytes with pubkey bytes BREAKING CHANGE: - replace Validator address bytes with pubkey bytes * change(consensus): log validator address instead of its public key Block proposer is address instead public key * fix: compilation failed
zeroqn
added a commit
to zeroqn/muta
that referenced
this pull request
Jul 27, 2020
…es (nervosnetwork#354) (#2) * change(consensus): replace Validator address bytes with pubkey bytes BREAKING CHANGE: - replace Validator address bytes with pubkey bytes * change(consensus): log validator address instead of its public key Block proposer is address instead public key * fix: compilation failed
zeroqn
added a commit
to zeroqn/muta
that referenced
this pull request
Jul 27, 2020
…es (nervosnetwork#354) (#2) * change(consensus): replace Validator address bytes with pubkey bytes BREAKING CHANGE: - replace Validator address bytes with pubkey bytes * change(consensus): log validator address instead of its public key Block proposer is address instead public key * fix: compilation failed
zeroqn
added a commit
to zeroqn/muta
that referenced
this pull request
Jul 27, 2020
…es (nervosnetwork#354) (#2) * change(consensus): replace Validator address bytes with pubkey bytes BREAKING CHANGE: - replace Validator address bytes with pubkey bytes * change(consensus): log validator address instead of its public key Block proposer is address instead public key * fix: compilation failed
muta-robot
pushed a commit
that referenced
this pull request
Jul 28, 2020
* refactor(consensus)!: replace Validator address bytes with pubkey bytes (#354) (#2) * change(consensus): replace Validator address bytes with pubkey bytes BREAKING CHANGE: - replace Validator address bytes with pubkey bytes * change(consensus): log validator address instead of its public key Block proposer is address instead public key * fix: compilation failed * chore(network): move in protocols (#3) * feat(network): move in discovery protocol from forked * feat(network): move in ping protocol * feat(network): move in identify protocol * chore(network): use tentacle from crate * refactor(network): change allow_global_ip feature to global_ip_only * change(network): remove secio_enabled in identify protocol secio should be always enabled in muta network * refactor(network): identify protocol * refactor(network): discovery global_ip_only feature * chore(network): remove garbage files * fix(network): clippy on auto generated code * fix(network): clippy warnings * refactor(nework): ping message use protobuf instead * refactor(network): use protobuf to define discovery message * chore(network): turn off global_ip_only feature by default * refactor(network): define identify message using protobuf * fix(network): clippy warnings * chore(network): remove unused molecule * refactor(network): remove address, use peer id instead (#4) * refactor(network)!: remove Address, use peer id BREAKING CHANGE: - change users_cast to multicast, take peer_ids bytes instead of Address - network bootstrap configuration now takes peer id instead of pubkey hex * refactor(network): PeerId api * feat(network): add peer tag support (#5) * feat(network): peer tag support * refactor(network): use tag to implement allowlist, ban * fix(network): unit tests * fix(network): peer manager tests * fix(trust_metric_test): update to new network code * fix(network): rebase to latest PR * fix(network): clippy warnings * fix(network): no ban check in tags insert * fix(network): also check Consensus tag instead mixed it with AlwaysAllow * feat(network): tag consensus peers (#6) * feat(network): implement tag api * feat: tag consensus peers * feat(network): don't share consensus ips (#7) * fix(network): InvalidPublicKey when tag consensus peer * fix(network): forget to update tag consensus in update status * fix(network): DiscoveryMessage deserialize failed * fix: rebase master
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE:
What type of PR is this?
change
What this PR does / why we need it:
Replace
Validator
address bytes with public key bytes. Network now maintain two states, one useAddress
, one usePeerId
. This change will removeAddress
completely from network.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: