Fantom-foundation / lachesis-rs

Lachesis BFT consensus for permission-less networks, in Rust
MIT License
35 stars 5 forks source link

Refactor Hashgraph and node to use traits #15

Closed AgustinCB closed 5 years ago

AgustinCB commented 5 years ago

Let's make node accept "a hashgraph" instead of "the hashgraph".

To do so, we changed the struct Hashgraph to be instead a BTreeHashgraph structure implementing the Hashgraph trait and then make Node get a Rc<RefCell<Hashgraph>> instead of just Hashgraph.