-
Notifications
You must be signed in to change notification settings - Fork 16
Refactor use state hash for sync rebased #1608
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
base: main
Are you sure you want to change the base?
Conversation
3c22a89 to
a9a613e
Compare
a70d70c to
7b98862
Compare
a9a613e to
54d2757
Compare
7b98862 to
aab4435
Compare
54d2757 to
868858a
Compare
aab4435 to
b9822d0
Compare
868858a to
da88017
Compare
b9822d0 to
123cd2c
Compare
da88017 to
fdaafce
Compare
123cd2c to
84d11f5
Compare
fdaafce to
577eb97
Compare
84d11f5 to
5c44561
Compare
577eb97 to
ece09c1
Compare
5c44561 to
18a25cc
Compare
ece09c1 to
6ce2312
Compare
6ce2312 to
a25ec4b
Compare
|
|
||
| provider.update_history(&updates.updates); | ||
| let result = receipt.status().to_string(); | ||
| if result == "true" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Make an enum that contains the tx results from alloy and adds a timeout status.
18a25cc to
eac011d
Compare
eac011d to
5215d2f
Compare
35af4b0 to
f17b0e3
Compare
5215d2f to
571691f
Compare
571691f to
7f663bd
Compare
46800c5 to
15e4ab0
Compare
7f663bd to
3865f85
Compare
15e4ab0 to
9a0349f
Compare
3865f85 to
16eebd2
Compare
16eebd2 to
e906ed3
Compare
9a0349f to
0290a90
Compare
d96ad89 to
93fa6c3
Compare
2ed487d to
258e829
Compare
93fa6c3 to
8f4ecd1
Compare
c74b4f8 to
a942cab
Compare
8f4ecd1 to
4fe7564
Compare
a942cab to
9ff7fd7
Compare
9ff7fd7 to
a942cab
Compare
…rkle Tree over the calldatas per network
140b9f8 to
eb670b4
Compare
…n regarding source/target hashes Co-authored-by: Aneta Tsvetkova <anetastsvetkova@gmail.com>
eb670b4 to
caee75b
Compare
| provider.calldata_merkle_tree_frontier = next_calldata_merkle_tree; | ||
| provider.merkle_root_in_contract = None; | ||
| debug!("Successfully updated contract in network `{net}` block height {block_height} Merkle root {root:?}"); | ||
| } // TODO: Reread round counters + latest state hash from contract |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment not relevant to this code path. TODO: Remove.
|
|
||
| impl Hashable for HashValue { | ||
| fn combine(_level: Level, a: &Self, b: &Self) -> Self { | ||
| HashValue(keccak256([a.0.to_vec(), b.0.to_vec()].concat())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reo101: TODO: refactor to not make heap allocations.
Initial version of using Merkle root over all call-data updates generated per network.