tari-project / tari-dan

BSD 3-Clause "New" or "Revised" License
5 stars 14 forks source link

feat!: change block hash to allow chain merkle proof #1024

Closed stringhandler closed 2 months ago

stringhandler commented 2 months ago

Description

Change the hash of block to allow creating a merkle proof of a chain of blocks

Motivation and Context

When we receive a QC, having this structure means we can easily create a merkle proof from any two blocks to the QC. Hence, a QC or set of QCs can prove any block in the chain with a single merkle proof.

How Has This Been Tested?

Locally

What process can a PR reviewer use to test or verify this change?

Not really necessary

Breaking Changes

BREAKING CHANGE: Hash of blocks will change

github-actions[bot] commented 2 months ago

Test Results (CI)

530 tests  ±0   530 :white_check_mark: ±0   1h 51m 21s :stopwatch: - 11m 17s  63 suites ±0     0 :zzz: ±0    2 files   ±0     0 :x: ±0 

Results for commit 0e06572b. ± Comparison against base commit a77eda60.