Skip to content

Commit

Permalink
chore: Release dolos version 0.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Oct 13, 2024
1 parent 1c87cdc commit 5896488
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 11 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,35 @@

All notable changes to this project will be documented in this file.

## [0.16.0] - 2024-10-13

### 🚀 Features

- Introduce direct snapshot bootstrap (#336)
- Automate WAL housekeeping procedure (#347)
- Allow manual wal pruning via CLI (#349)
- Ask for history pruning during init (#351)
- Improve bootstrap experience (#353)
- Trigger bootstrap right after init (#354)

### 🐛 Bug Fixes

- Fix typo in bootstrap question (#271)
- Fix build / lint issues (#346)
- Make CORS config optional (#348)
- Avoid crashing on WAL pruning edge case (#350)
- Use saturating substract in housekeeping logic (#355)

### 📚 Documentation

- Add reference to wal history setting (#352)

### ⚙️ Miscellaneous Tasks

- Update blaze docs with latest version (#338)
- Add support for CORS in gRPC-web (#339)
- Fix lint warnings (#356)

## [0.15.1] - 2024-09-07

### 🐛 Bug Fixes
Expand All @@ -13,6 +42,10 @@ All notable changes to this project will be documented in this file.

- Add Blaze example (#334)

### ⚙️ Miscellaneous Tasks

- Release dolos version 0.15.1

## [0.15.0] - 2024-09-06

### 🐛 Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dolos"
description = "A Cardano data-node built in Rust"
version = "0.15.1"
version = "0.16.0"
edition = "2021"
repository = "https://github.com/txpipe/dolos"
homepage = "https://github.com/txpipe/dolos"
Expand Down
2 changes: 1 addition & 1 deletion src/bin/dolos/bootstrap/mithril.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use tracing::{debug, info, warn};

use crate::{feedback::Feedback, MithrilConfig};

#[derive(Debug, clap::Args)]
#[derive(Debug, clap::Args, Clone)]
pub struct Args {
#[arg(long, default_value = "./snapshot")]
download_dir: String,
Expand Down
12 changes: 6 additions & 6 deletions src/bin/dolos/bootstrap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mod mithril;
mod relay;
mod snapshot;

#[derive(Debug, Subcommand)]
#[derive(Debug, Subcommand, Clone)]
pub enum Command {
Relay(relay::Args),
Mithril(mithril::Args),
Expand Down Expand Up @@ -44,14 +44,14 @@ pub struct Args {
}

pub fn run(config: &crate::Config, args: &Args, feedback: &Feedback) -> miette::Result<()> {
let command = match &args.command {
let command = match args.command.clone() {
Some(x) => x,
None => &Command::inquire()?,
None => Command::inquire()?,
};

match command {
Command::Relay(args) => relay::run(config, args, feedback),
Command::Mithril(args) => mithril::run(config, args, feedback),
Command::Snapshot(args) => snapshot::run(config, args, feedback),
Command::Relay(args) => relay::run(config, &args, feedback),
Command::Mithril(args) => mithril::run(config, &args, feedback),
Command::Snapshot(args) => snapshot::run(config, &args, feedback),
}
}
2 changes: 1 addition & 1 deletion src/bin/dolos/bootstrap/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use miette::{bail, Context, IntoDiagnostic};

use crate::feedback::Feedback;

#[derive(Debug, clap::Args, Default)]
#[derive(Debug, clap::Args, Default, Clone)]
pub struct Args {}

fn open_empty_wal(config: &crate::Config) -> miette::Result<WalStore> {
Expand Down
2 changes: 1 addition & 1 deletion src/bin/dolos/bootstrap/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use tar::Archive;

use crate::feedback::{Feedback, ProgressReader};

#[derive(Debug, clap::Args, Default)]
#[derive(Debug, clap::Args, Default, Clone)]
pub struct Args {
/// The variant of the snapshot to download (full, ledger).
#[arg(long)]
Expand Down

0 comments on commit 5896488

Please sign in to comment.