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

E3 agg commitment #647

Merged
merged 27 commits into from
Sep 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9b7bf13
added commitment to aggregator
awskii Aug 5, 2022
1a1e4b3
added commitment evaluation by updates, fixed mainnet roothash mismatch
awskii Aug 25, 2022
948635e
added ability to change starting state of hph
awskii Aug 30, 2022
fdf0aab
replayable erigon23 with commitment
awskii Sep 2, 2022
9b21561
possible fix for eliasfano index read after close
awskii Sep 2, 2022
e35f72c
fixed db pruning and restart
awskii Sep 7, 2022
ab7c15a
Initial fixes
Sep 18, 2022
5fbe281
Debug
Sep 19, 2022
9b4cb3a
clear downHashedLen for branch nodes
Sep 20, 2022
c5e1888
Fix key length, cleanup
Sep 20, 2022
8422c71
Cleanup
Sep 20, 2022
da3abdf
Cleanup
Sep 20, 2022
57085d1
picked aggregator updates
awskii Sep 20, 2022
8c80b54
fixed empty cell hash for ProcessUpdate evaluation
awskii Sep 20, 2022
708f4d9
hashBuffer moved from Cell to HexPatriciaHashed
awskii Sep 20, 2022
a289ced
Merge branch 'main' into e3-agg-commitment
awskii Sep 21, 2022
916bf60
fixed codeHash incorrect renewal
awskii Sep 22, 2022
9a06867
lint
awskii Sep 22, 2022
b0c93d5
removed valuemergefn from history
awskii Sep 22, 2022
85aa1cf
fixed lint
awskii Sep 23, 2022
e6fe0ab
fixed test
awskii Sep 23, 2022
03ab2bf
rewritten fuzz test on hph
awskii Sep 23, 2022
6a9314f
fix for Win tests - do not remove tmp dir after test
awskii Sep 23, 2022
ab41dda
win
awskii Sep 26, 2022
9e0bcda
Merge branch 'main' into e3-agg-commitment
awskii Sep 26, 2022
61d7e77
fixup after merge
awskii Sep 26, 2022
8b5a93b
close aggregator after test
awskii Sep 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions commitment/commitment.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,13 @@ func (branchData BranchData) IsComplete() bool {

// MergeHexBranches combines two branchData, number 2 coming after (and potentially shadowing) number 1
func (branchData BranchData) MergeHexBranches(branchData2 BranchData, newData []byte) (BranchData, error) {
if branchData2 == nil {
return branchData, nil
}
if branchData == nil {
return branchData2, nil
}

touchMap1 := binary.BigEndian.Uint16(branchData[0:])
afterMap1 := binary.BigEndian.Uint16(branchData[2:])
bitmap1 := touchMap1 & afterMap1
Expand Down
Loading