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 validator node checkpointing #4217

Merged
merged 7 commits into from
Jun 22, 2022

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Jun 21, 2022

Description

feat(wallet): create ContractCheckpoint outputs via grpc
feat(base-node): add get_current_contract_outputs grpc call
feat(base-layer/core): add checkpoint data to SidechainFeatures
feat(validator-node): spawn consensus workers when new constitution is found

Motivation and Context

Validator node periodically submits basic checkpoints containing a merkle root of the state.

TODOs:

  • Validator node should resume active contracts after restart
  • Wallet should spend previous checkpoint
  • Checkpoint committee signatures need to be populated
  • Validator node needs to keep track of contracts that it has accepted
  • Checkpoint proofs need to be finalised and implemented
  • Constitution amendments need to be recognised and handled in the VN

How Has This Been Tested?

Manually and partially with existing tests

sdbondi added 7 commits June 21, 2022 16:30
* development:
  fix clippies
  remove tari_core_from cbindgen build
  feat(miner): friendlier miner output (tari-project#4219)
  v0.32.5
  chore: update toolchain and fix clippy (tari-project#4212)
  feat(wallet_ffi): wallet_get_utxos() (tari-project#4209)
  chore: bump lmdb-sys dependency (tari-project#4195)
  chore(deps): upgrade randomx (tari-project#4196)
  Bump croaring to 0.5.2 - improve cross-compile in docker
  bug: remove deprecated tauri config variable (tari-project#4194)
  feat: generate wallet ffi header file automatically (tari-project#4183)
  v0.32.4
  feat(wallet-ffi): adds FFI wallet_get_utxos() and test_wallet_get_utxos() (tari-project#4180)
@aviator-app aviator-app bot merged commit 8b0add0 into tari-project:development Jun 22, 2022
@sdbondi sdbondi deleted the vn-checkpointing branch June 22, 2022 13:09
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.

2 participants