Release 0.5.0-alpha.5

pallas@0.5.0-alpha.5
pallas-crypto@0.5.0-alpha.5
pallas-miniprotocols@0.5.0-alpha.5
pallas-multiplexer@0.5.0-alpha.5
pallas-primitives@0.5.0-alpha.5

Generated by cargo-workspaces
This commit is contained in:
Santiago Carmuega 2022-02-23 22:41:58 -03:00
parent 3317100f5d
commit cd85e2dae1
6 changed files with 14 additions and 5 deletions

View file

@ -1,7 +1,7 @@
[package] [package]
name = "pallas-crypto" name = "pallas-crypto"
description = "Cryptographic primitives for Cardano" description = "Cryptographic primitives for Cardano"
version = "0.5.0-alpha.4" version = "0.5.0-alpha.5"
edition = "2021" edition = "2021"
repository = "https://github.com/txpipe/pallas" repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas" homepage = "https://github.com/txpipe/pallas"

View file

@ -1,7 +1,7 @@
[package] [package]
name = "pallas-miniprotocols" name = "pallas-miniprotocols"
description = "Implementation of the Ouroboros network mini-protocols state-machines" description = "Implementation of the Ouroboros network mini-protocols state-machines"
version = "0.5.0-alpha.4" version = "0.5.0-alpha.5"
edition = "2021" edition = "2021"
repository = "https://github.com/txpipe/pallas" repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas" homepage = "https://github.com/txpipe/pallas"

View file

@ -13,6 +13,15 @@ pub enum Point {
Specific(u64, Vec<u8>), Specific(u64, Vec<u8>),
} }
impl Point {
pub fn slot_or_default(&self) -> u64 {
match self {
Point::Origin => 0,
Point::Specific(slot, _) => *slot,
}
}
}
impl Debug for Point { impl Debug for Point {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self { match self {

View file

@ -1,7 +1,7 @@
[package] [package]
name = "pallas-multiplexer" name = "pallas-multiplexer"
description = "Multithreaded Ouroboros multiplexer implementation using mpsc channels" description = "Multithreaded Ouroboros multiplexer implementation using mpsc channels"
version = "0.5.0-alpha.4" version = "0.5.0-alpha.5"
edition = "2021" edition = "2021"
repository = "https://github.com/txpipe/pallas" repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas" homepage = "https://github.com/txpipe/pallas"

View file

@ -1,7 +1,7 @@
[package] [package]
name = "pallas-primitives" name = "pallas-primitives"
description = "Ledger primitives and cbor codec for the different Cardano eras" description = "Ledger primitives and cbor codec for the different Cardano eras"
version = "0.5.0-alpha.4" version = "0.5.0-alpha.5"
edition = "2021" edition = "2021"
repository = "https://github.com/txpipe/pallas" repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas" homepage = "https://github.com/txpipe/pallas"

View file

@ -1,7 +1,7 @@
[package] [package]
name = "pallas" name = "pallas"
description = "Rust-native building blocks for the Cardano blockchain ecosystem." description = "Rust-native building blocks for the Cardano blockchain ecosystem."
version = "0.5.0-alpha.4" version = "0.5.0-alpha.5"
edition = "2021" edition = "2021"
repository = "https://github.com/txpipe/pallas" repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas" homepage = "https://github.com/txpipe/pallas"