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!: implement validator node registration as per RFC-0313 #4928

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Nov 16, 2022

Description

  • adds a validator node store with insert, delete, get_vn_set, get_shard_key methods
  • calculates VN Merkle root using $H(V_i || S_i)$ nodes
  • performs registration utxo validations for orphan, transaction, add_block and async validators
  • validates VN Merkle root

Includes changes from development

Motivation and Context

RFC-0313

How Has This Been Tested?

Additional unit tests

AaronFeickert and others added 4 commits November 16, 2022 09:43
Description
---
Minor updates for a corresponding [change](tari-project/tari_utilities#52) to the `SafePassword` API.

Motivation and Context
---
A pending change in `tari_utilities` to the handling of sensitive data includes a new implementation of `SafePassword`. One change removes derived traits for equality testing in favor of equality testing on references to the underlying passphrase data. This work makes the minor but necessary changes to address this API change.

How Has This Been Tested?
---
Tests pass after applying the linked `tari_utilities` PR. Note that tests will pass using the current `SafePassword` API as well, as the dependency change PR restricts the API.
…ri-project#4807) (tari-project#4911)

Description
---
When wallet starts new UTXO scanning service it should start at the birthday. Currently, it starts at height 0. This PR addresses this issue

Motivation and Context
---
Addresses tari-project#4807.

How Has This Been Tested?
---
@sdbondi sdbondi force-pushed the core-vn-reg-impl-from-rfc branch 3 times, most recently from 9454226 to 14d8010 Compare November 16, 2022 14:36
@sdbondi sdbondi changed the title feat: implement validator node lmdb store feat: implement validator node registration as per RFC-0313 Nov 16, 2022
@sdbondi sdbondi changed the title feat: implement validator node registration as per RFC-0313 feat!: implement validator node registration as per RFC-0313 Nov 17, 2022
@sdbondi sdbondi changed the base branch from development to feature-dan November 17, 2022 07:02
@stringhandler stringhandler merged commit 8569f7c into tari-project:feature-dan Nov 17, 2022
@sdbondi sdbondi deleted the core-vn-reg-impl-from-rfc branch November 17, 2022 13:03
@sdbondi sdbondi restored the core-vn-reg-impl-from-rfc branch November 17, 2022 14:03
sdbondi added a commit to tari-project/tari-dan that referenced this pull request Nov 21, 2022
Description
---
- `get_consensus_constants` grpc updates
- update vn reg signature
- update cargo.lock
- move OnEpochChange handler code into function
- fix bug where if the validator node is not registered it would return an error 
- fix epoch not found bug
- fix  genesis newview QC is always rejected 

Motivation and Context
---
[RFC-0313](https://rfc.tari.com/RFC-0313_VNRegistration.html)

Ref tari-project/tari#4928

How Has This Been Tested?
---
Manually - registering 3 validators from clean igor chain
sdbondi added a commit to sdbondi/tari that referenced this pull request Nov 28, 2022
* feature-dan:
  fix(core)!: sort validate set by shard key (tari-project#4952)
  update validator signature
  feat!: implement validator node registration as per RFC-0313 (tari-project#4928)
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