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

fix(sync): Sync latest globals within merkle tree ops #1612

Merged
merged 16 commits into from
Aug 18, 2023
Prev Previous commit
Next Next commit
temp
Maddiaa0 committed Aug 18, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 071e6baf8ad4bbc951abcc68a3fe0111e98c1304
5 changes: 3 additions & 2 deletions yarn-project/world-state/src/world-state-db/merkle_trees.ts
Original file line number Diff line number Diff line change
@@ -117,8 +117,9 @@ export class MerkleTrees implements MerkleTreeDb {
await this._updateHistoricBlocksTree(initialGlobalVariablesHash, true);

// TODO: maybe make this async and awaitable
this.latestGlobalVariablesHash.commit();
await historicBlocksTree.commit();
await this.commit()
// this.latestGlobalVariablesHash.commit();
// await historicBlocksTree.commit();
}

/**