Skip to content

Commit

Permalink
Minor post-merge cleanups (#3945)
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, in the `Eth1Chain.init` function and in the
`Eth1Chain.reset` function.
  • Loading branch information
zah authored Aug 10, 2022
1 parent ede83b1 commit d64c17f
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 91 deletions.
Loading

0 comments on commit d64c17f

Please sign in to comment.