Skip to content

Commit

Permalink
Minor post-merge cleanups
Browse files Browse the repository at this point in the history
#3944

The use of nested `awaitWithRetries` calls would have
resulted in an unexpected number of retries (3x3).
We now use regular `await` in outer layer to avoid the problem.

#3943

The new code has an invariant that the `headMerkleizer` field in
the `Eth1Chain` is always kept in sync with the blocks stored in
the chain.

This invariant is now enforced better by doing the necessary merkleizer
updates in the `Eth1Chain.addBlock` function.
  • Loading branch information
zah committed Aug 9, 2022
1 parent ede83b1 commit 6ba7fba
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 89 deletions.
Loading

0 comments on commit 6ba7fba

Please sign in to comment.