Skip to content

Commit

Permalink
Merge pull request #2114 from eqlabs/krisztian/fix-reorg-for-zero-sta…
Browse files Browse the repository at this point in the history
…te-tries

fix(storage/trie): fix reorg failure for no-history pruning mode
  • Loading branch information
kkovaacs authored Jul 9, 2024
2 parents 8fb15f6 + e4c7563 commit 6af91a9
Show file tree
Hide file tree
Showing 3 changed files with 305 additions and 48 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ More expansive patch notes and explanations may be found in the specific [pathfi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Fixed

- Pathfinder exits with an error when detecting a one-block reorg if `--storage.state-tries` is set to `0`.

## [0.13.2] - 2024-06-24

### Fixed
Expand Down
9 changes: 8 additions & 1 deletion crates/pathfinder/examples/feeder_gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ async fn serve(cli: Cli) -> anyhow::Result<()> {
}
});

let get_public_key = warp::path("get_public_key").then(|| async {
warp::reply::json(&serde_json::json!(
"0x1252b6bce1351844c677869c6327e80eae1535755b611c66b8f46e595b40eea"
))
});

#[derive(Debug, Deserialize)]
struct ClassHashParam {
#[serde(rename = "classHash")]
Expand Down Expand Up @@ -336,7 +342,8 @@ async fn serve(cli: Cli) -> anyhow::Result<()> {
.or(get_state_update)
.or(get_contract_addresses)
.or(get_class_by_hash)
.or(get_signature),
.or(get_signature)
.or(get_public_key),
)
.with(warp::filters::trace::request());

Expand Down
Loading

0 comments on commit 6af91a9

Please sign in to comment.