Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
pls148 authored Jan 2, 2025
2 parents c430b46 + f68a58e commit defae8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ and robust infrastructure.
[Official Documentation](https://docs.espressosys.com/sequencer/espresso-sequencer-architecture/readme)

### Architecture
The diagram below shows how the Espresso Confirmation Layer fits into the rollup
centric Ethereum ecosystem. See [Architecture](./doc/architecture.md) for details.

![Architecture](./doc/espresso-overview.svg)
The diagram below shows how the Espresso Confirmation Layer fits into the rollup centric Ethereum ecosystem. See
[Architecture](./doc/architecture.md) for details.

![Architecture](./doc/espresso-overview.svg)

#### ZK rollups integration

Expand All @@ -43,9 +43,8 @@ a dockerized Espresso Sequencer network with an example Layer 2 rollup applicati

## Documentation

The rust code documentation can be found at
[sequencer.docs.espressosys.com](https://sequencer.docs.espressosys.com). Please note the disclaimer about API
stability at the end of the readme.
The rust code documentation can be found at [sequencer.docs.espressosys.com](https://sequencer.docs.espressosys.com).
Please note the disclaimer about API stability at the end of the readme.

To generate the documentation locally and view it in the browser, run

Expand Down Expand Up @@ -120,7 +119,7 @@ forge build
To run the tests

```shell
forge test
just sol-test
```

In order to avoid constant warnings about checksum mismatches with [svm-rs](https://github.com/roynalnaruto/svm-rs)
Expand Down
4 changes: 3 additions & 1 deletion sequencer/src/api/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ async fn load_frontier<Mode: TransactionMode>(
) -> anyhow::Result<BlocksFrontier> {
tx.get_path(
Snapshot::<SeqTypes, BlockMerkleTree, { BlockMerkleTree::ARITY }>::Index(height),
height - 1,
height
.checked_sub(1)
.ok_or(anyhow::anyhow!("Subtract with overflow ({height})!"))?,
)
.await
.context(format!("fetching frontier at height {height}"))
Expand Down

0 comments on commit defae8a

Please sign in to comment.