Skip to content

Commit

Permalink
Merge pull request #9 from cartridge-gg/merge-v0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen authored Dec 5, 2024
2 parents 920157b + e959f62 commit a384b91
Show file tree
Hide file tree
Showing 259 changed files with 28,124 additions and 9,558 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@v1.16.23
- uses: crate-ci/typos@v1.26.0
with:
files: .

Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/docker-p2p.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Builds and uploads a P2P-enabled Docker image whenever triggered manually

name: Docker - P2P

on:
workflow_dispatch:

env:
# Workaround for https://github.com/rust-lang/cargo/issues/8719#issuecomment-1516492970
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

jobs:
# Build a docker image unless this was triggered by a release.
build-image-p2p:
runs-on: pathfinder-large-ubuntu
steps:
- name: Determine Docker image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: eqlabs/pathfinder
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate version
id: generate_version
run: |
echo -n "pathfinder_version=" >> $GITHUB_OUTPUT
git describe --tags --dirty >> $GITHUB_OUTPUT
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-config-inline: |
[worker.oci]
max-parallelism = 4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
# Required for git security reasons. See https://github.com/rustyhorde/vergen/pull/126#issuecomment-1201088162
- name: Vergen git safe directory
run: git config --global --add safe.directory /workspace
- name: Build
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
platforms: |
linux/amd64
file: ./Dockerfile
build-args: |
PATHFINDER_FORCE_VERSION=${{ steps.generate_version.outputs.pathfinder_version }}
CARGO_EXTRA_ARGS=--features p2p
builder: ${{ steps.buildx.outputs.name }}
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: |
eqlabs/pathfinder:snapshot-p2p-${{ github.sha }}
eqlabs/pathfinder:latest-p2p
cache-from: type=gha
cache-to: type=gha,mode=max
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@ 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).

## [0.15.0] - 2024-11-21

### Added

- Pathfinder now fetches data concurrently from the feeder gateway when catching up. The `--gateway.fetch-concurrency` CLI option can be used to limit how many blocks are fetched concurrently (the default is 8).
- `--disable-version-update-check` CLI option has been added to disable the periodic checking for a new version.
- Add `pathfinder_getClassProof` endpoint to retrieve the Merkle proof of any class hash in the class trie.
- add `process_start_time_seconds` metric showing the unix timestamp when the process started.
- `--log-output-json` CLI option has been added to output the Pathfinder log in line-delimited JSON.
- Preliminary support has been added for the new JSON-RPC 0.8.0-rc1 specification.

### Changed

- Ethereum RPC API now requires Websocket endpoints (prev. HTTP). If an HTTP url is provided instead, Pathfinder will attempt to connect vía Websocket protocol at that same url.
- JSON-RPC API version 0.7 is now served by default on the `/` path.

### Fixed

- `starknet_getBlockWithTxs` works with empty blocks`

## [0.14.4] - 2024-10-03

### Fixed
Expand Down
Loading

0 comments on commit a384b91

Please sign in to comment.