Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

refactor(consensus)!: replace Validator address bytes with pubkey bytes #354

Conversation

zeroqn
Copy link
Contributor

@zeroqn zeroqn commented Jul 14, 2020

BREAKING CHANGE:

  • replace Validator address bytes with pubkey bytes

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 use Address, one use PeerId. This change will remove Address completely from network.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@zeroqn 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 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
@yejiayu
Copy link
Contributor

yejiayu commented Jul 14, 2020

/test chaos

1 similar comment
@zeroqn
Copy link
Contributor Author

zeroqn commented Jul 14, 2020

/test chaos

zeroqn added 3 commits July 15, 2020 05:35
BREAKING CHANGE:
- replace Validator address bytes with pubkey bytes
Block proposer is address instead public key
@zeroqn zeroqn force-pushed the change-consensus-replace-address-with-pubkey branch from 167b365 to 4d5593a Compare July 14, 2020 21:35
@zeroqn
Copy link
Contributor Author

zeroqn commented Jul 15, 2020

/retest

@muta-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@muta-robot muta-robot merged commit e4433d7 into nervosnetwork:master Jul 15, 2020
yejiayu added a commit that referenced this pull request Jul 15, 2020
yejiayu added a commit that referenced this pull request Jul 15, 2020
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants