Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
feat(api): expose an async event stream API, and adapt node module to…
Browse files Browse the repository at this point in the history
… use qp2p async API

- refactor(node): encapsulate the Core mod so it doesn't expose its members as public, and remove the timers
- refactor(examples): adapt minimal.rs example to make use of new async API
- feat(api): implementation of botstrapping mechanism in new async logic
- refactor(node): make the core communication mod to be owned by the stage instead of the node
- refactor(node): remove the Terminated state as well as the is_running API
- feat(node): return a specific ClientMesageReceived event for messages from clients
- refactor(node): remove pause/resume feature
- fix(dkg): await broadcast step
- feat(is_genesis): simple bool to know if first node
- fix(node): report PromotedToElder event for genesis node
- feat(api): return the RecvStream as part of the ClientMessageReceived event
- chore: quic-p2p -> qp2p

Co-authored-by: Josh Wilson <joshuef@gmail.com>
  • Loading branch information
bochaco and joshuef committed Sep 24, 2020
1 parent 83912c7 commit a42b065
Show file tree
Hide file tree
Showing 23 changed files with 1,713 additions and 2,029 deletions.
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,24 @@ ed25519-dalek = { version = "1.0.0-pre.3", features = ["serde"] }
env_logger = { version = "~0.7.1", optional = true }
err-derive = "~0.2.4"
sn_fake_clock = "~0.4.0"
futures = "~0.3.5"
fxhash = "~0.2.1"
hex_fmt = "~0.3.0"
itertools = "~0.9.0"
lazy_static = { version = "1", optional = true }
log = "~0.4.8"
lru_time_cache = "~0.11.0"
mock-quic-p2p = { git = "https://github.com/maidsafe/quic-p2p", rev = "602dc620", optional = true }
quic-p2p = { version = "~0.7.0", features = ["upnp"] }
mock-quic-p2p = { git = "https://github.com/maidsafe/qp2p", rev = "602dc620", optional = true }
qp2p = { git = "https://github.com/maidsafe/qp2p", features = ["upnp"], branch = "master" }
rand = "~0.7.3"
rand_core = "~0.5.1"
rand_os = "~0.2.2"
rand_xorshift = "~0.2.0"
bls_signature_aggregator = "~0.1.0"
serde = { version = "1.0.111", features = ["derive" ,"rc"] }
tiny-keccak = { version = "2.0.2", features = ["sha3"] }
xor_name = "1"
tokio = { version = "~0.2.5", features = ["sync"] }
xor_name = "1.1.0"

[dev-dependencies]
env_logger = "~0.7.1"
Expand Down

0 comments on commit a42b065

Please sign in to comment.