Skip to content

Commit

Permalink
Remove unnecessary pub(crate) and bump versions of consensus and rmc
Browse files Browse the repository at this point in the history
  • Loading branch information
woocash2 committed Aug 5, 2023
1 parent 9e12008 commit a0cc9c6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions consensus/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aleph-bft"
version = "0.23.0"
version = "0.24.0"
edition = "2021"
authors = ["Cardinal Cryptography"]
categories = ["algorithms", "data-structures", "cryptography", "database"]
Expand All @@ -13,7 +13,7 @@ readme = "../README.md"
description = "AlephBFT is an asynchronous and Byzantine fault tolerant consensus protocol aimed at ordering arbitrary messages (transactions). It has been designed to continuously operate even in the harshest conditions: with no bounds on message-delivery delays and in the presence of malicious actors. This makes it an excellent fit for blockchain-related applications."

[dependencies]
aleph-bft-rmc = { path = "../rmc", version = "0.7" }
aleph-bft-rmc = { path = "../rmc", version = "0.8" }
aleph-bft-types = { path = "../types", version = "0.8" }
anyhow = "1.0"
async-trait = "0.1"
Expand Down
4 changes: 2 additions & 2 deletions consensus/src/alerts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl<H: Hasher, D: Data, S: Signature> Alert<H, D, S> {
self.proof.0.as_signable().creator()
}

pub(crate) fn included_data(&self) -> Vec<D> {
pub fn included_data(&self) -> Vec<D> {
// Only legit units might end up in the DAG, we can ignore the fork proof.
self.legit_units
.iter()
Expand Down Expand Up @@ -114,7 +114,7 @@ pub enum AlertMessage<H: Hasher, D: Data, S: Signature, MS: PartialMultisignatur
}

impl<H: Hasher, D: Data, S: Signature, MS: PartialMultisignature> AlertMessage<H, D, S, MS> {
pub(crate) fn included_data(&self) -> Vec<D> {
pub fn included_data(&self) -> Vec<D> {
match self {
Self::ForkAlert(unchecked_alert) => unchecked_alert.as_signable().included_data(),
Self::RmcMessage(_, _) => Vec::new(),
Expand Down
2 changes: 1 addition & 1 deletion rmc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aleph-bft-rmc"
version = "0.7.0"
version = "0.8.0"
edition = "2021"
authors = ["Cardinal Cryptography"]
categories = ["algorithms", "cryptography"]
Expand Down

0 comments on commit a0cc9c6

Please sign in to comment.