Skip to content

Commit

Permalink
add new() method for ConsensusConfiguration trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime2 committed Aug 21, 2019
1 parent 140a319 commit 2ecb8ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Expand Up @@ -28,6 +28,9 @@ pub enum TransactionType {

// Consensus configuration trait
pub trait ConsensusConfiguration<Data> {
// creates new consensus configuration
fn new() -> Self;

// Register a sending-half of std::sync::mpsc::channel which is used to push
// all finalised transaction to.
// It returns True on successful registration and False otherwise
Expand Down

0 comments on commit 2ecb8ac

Please sign in to comment.