Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feat/wasm-integrati…
Browse files Browse the repository at this point in the history
…on-test
  • Loading branch information
fl0rek committed Oct 31, 2024
2 parents 0a55e3c + 3ecd476 commit 58a911d
Show file tree
Hide file tree
Showing 55 changed files with 1,996 additions and 587 deletions.
99 changes: 85 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ members = ["cli", "node", "node-wasm", "proto", "rpc", "types"]

[workspace.dependencies]
blockstore = "0.7.0"
lumina-node = { version = "0.5.0", path = "node" }
lumina-node-wasm = { version = "0.5.0", path = "node-wasm" }
celestia-proto = { version = "0.4.0", path = "proto" }
celestia-rpc = { version = "0.5.0", path = "rpc", default-features = false }
celestia-types = { version = "0.6.0", path = "types", default-features = false }
libp2p = "0.54.0"
nmt-rs = "0.2.1"
lumina-node = { version = "0.6.0", path = "node" }
lumina-node-wasm = { version = "0.6.0", path = "node-wasm" }
celestia-proto = { version = "0.5.0", path = "proto" }
celestia-rpc = { version = "0.7.0", path = "rpc", default-features = false }
celestia-types = { version = "0.7.0", path = "types", default-features = false }
celestia-tendermint = { version = "0.32.2", default-features = false }
celestia-tendermint-proto = "0.32.2"

libp2p = "0.54.0"
nmt-rs = "0.2.1"
prost = "0.12.6"

[patch.crates-io]
# Uncomment to apply local changes
#beetswap = { path = "../beetswap" }
Expand Down
12 changes: 12 additions & 0 deletions cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.5.0](https://github.com/eigerco/lumina/compare/lumina-cli-v0.4.1...lumina-cli-v0.5.0) - 2024-10-25

### Added

- *(node,node-wasm)* [**breaking**] Allow customising syncing window size ([#442](https://github.com/eigerco/lumina/pull/442))

## [0.4.1](https://github.com/eigerco/lumina/compare/lumina-cli-v0.4.0...lumina-cli-v0.4.1) - 2024-10-11

### Added

- setup local demo page with webpack ([#388](https://github.com/eigerco/lumina/pull/388))

## [0.4.0](https://github.com/eigerco/lumina/compare/lumina-cli-v0.3.1...lumina-cli-v0.4.0) - 2024-10-03

### Added
Expand Down
3 changes: 2 additions & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lumina-cli"
version = "0.4.0"
version = "0.5.0"
edition = "2021"
license = "Apache-2.0"
description = "Celestia data availability node implementation in Rust"
Expand Down Expand Up @@ -35,6 +35,7 @@ clap = { version = "4.5.7", features = ["derive"] }
directories = "5.0.1"
dotenvy = "0.15.7"
mime_guess = "2.0.4"
parse_duration = "2.1.1"
redb = "2.1.1"
rust-embed = { version = "8.4.0", features = ["interpolate-folder-path"] }
serde = "1.0.203"
Expand Down
8 changes: 8 additions & 0 deletions cli/src/native.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::env;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::time::Duration;

use anyhow::{bail, Context, Result};
use celestia_rpc::prelude::*;
Expand Down Expand Up @@ -38,6 +39,12 @@ pub(crate) struct Params {
/// Persistent header store path.
#[arg(short, long = "store")]
pub(crate) store: Option<PathBuf>,

/// Syncing window size, defines maximum age of headers considered for syncing and sampling.
/// Headers older than syncing window by more than an hour are eligible for pruning.
#[arg(long = "syncing-window", verbatim_doc_comment)]
#[clap(value_parser = parse_duration::parse)]
pub(crate) custom_syncing_window: Option<Duration>,
}

pub(crate) async fn run(args: Params) -> Result<()> {
Expand Down Expand Up @@ -73,6 +80,7 @@ pub(crate) async fn run(args: Params) -> Result<()> {
p2p_bootnodes,
p2p_listen_on: args.listen_addrs,
sync_batch_size: 512,
custom_syncing_window: args.custom_syncing_window,
blockstore,
store,
})
Expand Down
18 changes: 18 additions & 0 deletions node-wasm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.6.0](https://github.com/eigerco/lumina/compare/lumina-node-wasm-v0.5.2...lumina-node-wasm-v0.6.0) - 2024-10-25

### Added

- *(node,node-wasm)* [**breaking**] Allow customising syncing window size ([#442](https://github.com/eigerco/lumina/pull/442))

## [0.5.2](https://github.com/eigerco/lumina/compare/lumina-node-wasm-v0.5.1...lumina-node-wasm-v0.5.2) - 2024-10-21

### Fixed

- *(node-wasm)* workaround to clean extra message from worker ([#444](https://github.com/eigerco/lumina/pull/444))

## [0.5.1](https://github.com/eigerco/lumina/compare/lumina-node-wasm-v0.5.0...lumina-node-wasm-v0.5.1) - 2024-10-11

### Added

- setup local demo page with webpack ([#388](https://github.com/eigerco/lumina/pull/388))

## [0.5.0](https://github.com/eigerco/lumina/compare/lumina-node-wasm-v0.3.0...lumina-node-wasm-v0.5.0) - 2024-10-03

### Added
Expand Down
2 changes: 1 addition & 1 deletion node-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lumina-node-wasm"
version = "0.5.0"
version = "0.6.0"
edition = "2021"
license = "Apache-2.0"
description = "Browser compatibility layer for the Lumina node"
Expand Down
Loading

0 comments on commit 58a911d

Please sign in to comment.