Skip to content

Commit 2581824

Browse files
authored
Reexport useful traits and types (#500)
1 parent 1173cf6 commit 2581824

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ More details are available [in the book][reference-link-implementation-details].
6060
- Import AlephBFT in your crate
6161
```toml
6262
[dependencies]
63-
aleph-bft = "^0.38"
63+
aleph-bft = "^0.39"
6464
```
6565
- The main entry point is the `run_session` function, which returns a Future that runs the
6666
consensus algorithm.

consensus/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aleph-bft"
3-
version = "0.38.2"
3+
version = "0.39.0"
44
edition = "2021"
55
authors = ["Cardinal Cryptography"]
66
categories = ["algorithms", "data-structures", "cryptography", "database"]

consensus/src/extension/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
use crate::{dag::DagUnit, MultiKeychain};
1+
use crate::{dag::DagUnit, MultiKeychain, UnitFinalizationHandler};
22

33
mod election;
44
mod extender;
55
mod units;
66

7-
use aleph_bft_types::UnitFinalizationHandler;
87
use extender::Extender;
98

109
/// A struct responsible for executing the Consensus protocol on a local copy of the Dag.

consensus/src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ mod task_queue;
2020
mod testing;
2121

2222
pub use aleph_bft_types::{
23-
Data, DataProvider, Hasher, IncompleteMultisignatureError, Index, Indexed, Keychain,
24-
MultiKeychain, Multisigned, Network, NodeCount, NodeIndex, NodeMap, NodeSubset,
25-
PartialMultisignature, PartiallyMultisigned, Recipient, Round, SessionId, Signable, Signature,
26-
SignatureError, SignatureSet, Signed, SpawnHandle, TaskHandle, UncheckedSigned,
23+
Data, DataProvider, FinalizationHandler, Hasher, IncompleteMultisignatureError, Index, Indexed,
24+
Keychain, MultiKeychain, Multisigned, Network, NodeCount, NodeIndex, NodeMap, NodeSubset,
25+
OrderedUnit, PartialMultisignature, PartiallyMultisigned, Recipient, Round, SessionId,
26+
Signable, Signature, SignatureError, SignatureSet, Signed, SpawnHandle, TaskHandle,
27+
UncheckedSigned, UnitFinalizationHandler,
2728
};
2829
pub use config::{
2930
create_config, default_config, default_delay_config, exponential_slowdown, Config, DelayConfig,

consensus/src/member.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ use crate::{
88
},
99
task_queue::TaskQueue,
1010
units::{UncheckedSignedUnit, Unit, UnitCoord},
11-
Config, Data, DataProvider, Hasher, MultiKeychain, Network, NodeIndex, Receiver, Recipient,
12-
Round, Sender, Signature, SpawnHandle, Terminator, UncheckedSigned,
11+
Config, Data, DataProvider, FinalizationHandler, Hasher, MultiKeychain, Network, NodeIndex,
12+
OrderedUnit, Receiver, Recipient, Round, Sender, Signature, SpawnHandle, Terminator,
13+
UncheckedSigned, UnitFinalizationHandler,
1314
};
14-
use aleph_bft_types::{FinalizationHandler, NodeMap, OrderedUnit, UnitFinalizationHandler};
15+
use aleph_bft_types::NodeMap;
1516
use codec::{Decode, Encode};
1617
use futures::{channel::mpsc, pin_mut, AsyncRead, AsyncWrite, FutureExt, StreamExt};
1718
use futures_timer::Delay;

consensus/src/runway/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ use crate::{
1010
SignedUnit, UncheckedSignedUnit, Unit, UnitCoord, UnitStore, UnitStoreStatus, Validator,
1111
WrappedUnit,
1212
},
13-
Config, Data, DataProvider, Hasher, Index, Keychain, MultiKeychain, NodeIndex, Receiver, Round,
14-
Sender, Signature, SpawnHandle, Terminator, UncheckedSigned,
13+
Config, Data, DataProvider, Hasher, Index, Keychain, MultiKeychain, NodeIndex, Receiver,
14+
Recipient, Round, Sender, Signature, SpawnHandle, Terminator, UncheckedSigned,
15+
UnitFinalizationHandler,
1516
};
16-
use aleph_bft_types::{Recipient, UnitFinalizationHandler};
1717
use futures::{
1818
channel::{mpsc, oneshot},
1919
future::pending,

consensus/src/testing/dag.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ use crate::{
99
ControlHash, FullUnit, PreUnit, SignedUnit as GenericSignedUnit, Unit, UnitStore,
1010
UnitWithParents as _, Validator,
1111
},
12-
NodeCount, NodeIndex, NodeMap, NodeSubset, Round, Signed,
12+
NodeCount, NodeIndex, NodeMap, NodeSubset, OrderedUnit, Round, Signed, UnitFinalizationHandler,
1313
};
1414
use aleph_bft_mock::{Data, Hash64, Hasher64, Keychain};
15-
use aleph_bft_types::{OrderedUnit, UnitFinalizationHandler};
1615
use log::debug;
1716
use parking_lot::Mutex;
1817
use rand::{distributions::Open01, prelude::*};

0 commit comments

Comments
 (0)