Skip to content

Commit cfe826f

Browse files
debrisAndronik Ordian
andauthored
whisper is no longer a part of parity-ethereum repo (openethereum#10855)
* whisper is no longer a part of parity-ethereum repo * fix failing tests * update whisper help with the link to the new repo * Removed AttachedProtocols * updated whisper info in README.md files * Update parity/deprecated.rs Co-Authored-By: Andronik Ordian <[email protected]>
1 parent 5a13117 commit cfe826f

33 files changed

+42
-4417
lines changed

Cargo.lock

Lines changed: 0 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ parity-runtime = { path = "util/runtime" }
5959
parity-rpc = { path = "rpc" }
6060
parity-updater = { path = "updater" }
6161
parity-version = { path = "util/version" }
62-
parity-whisper = { path = "whisper" }
6362
parity-path = "0.1"
6463
dir = { path = "util/dir" }
6564
panic_hook = { path = "util/panic-hook" }
@@ -134,7 +133,6 @@ members = [
134133
"ethcore/wasm/run",
135134
"evmbin",
136135
"parity-clib",
137-
"whisper/cli",
138136
"util/triehash-ethereum",
139137
"util/keccak-hasher",
140138
"util/patricia-trie-ethereum",

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ We recommend installing Rust through [rustup](https://www.rustup.rs/). If you do
6666

6767
`clang` is required. It comes with Xcode command line tools or can be installed with homebrew.
6868

69-
- Windows:
69+
- Windows:
7070
Make sure you have Visual Studio 2015 with C++ support installed. Next, download and run the `rustup` installer from
7171
https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe, start "VS2015 x64 Native Tools Command Prompt", and use the following command to install and set up the `msvc` toolchain:
7272
```bash
@@ -320,10 +320,6 @@ Caching, Importing Blocks, and Block Information
320320
patricia-trie-ethereum registrar rlp_compress rlp_derive parity-runtime stats
321321
time-utils triehash-ethereum unexpected parity-version
322322
```
323-
* Parity Whisper Protocol Implementation
324-
```bash
325-
parity-whisper whisper-cli
326-
```
327323

328324
</p></details>
329325

@@ -360,10 +356,10 @@ In addition to the Parity Ethereum client, there are additional tools in this re
360356
- [evmbin](./evmbin) - Parity Ethereum EVM Implementation.
361357
- [ethstore](./accounts/ethstore) - Parity Ethereum Key Management.
362358
- [ethkey](./accounts/ethkey) - Parity Ethereum Keys Generator.
363-
- [whisper](./whisper) - Parity Ethereum Whisper-v2 PoC Implementation.
364359

365360
The following tool is available in a separate repository:
366361
- [ethabi](https://github.com/paritytech/ethabi) - Parity Ethereum Encoding of Function Calls. [Docs here](https://crates.io/crates/ethabi)
362+
- [whisper](https://github.com/paritytech/whisper) - Parity Ethereum Whisper-v2 PoC Implementation.
367363

368364
## 7. Community <a id="chapter-007"></a>
369365

accounts/ethkey/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,4 @@ _This project is a part of the Parity Ethereum toolchain._
218218
- [ethabi](https://github.com/paritytech/ethabi) - Parity Ethereum function calls encoding.
219219
- [ethstore](https://github.com/paritytech/parity-ethereum/blob/master/accounts/ethstore) - Parity Ethereum key management.
220220
- [ethkey](https://github.com/paritytech/parity-ethereum/blob/master/accounts/ethkey) - Parity Ethereum keys generator.
221-
- [whisper](https://github.com/paritytech/parity-ethereum/blob/master/whisper/) - Implementation of Whisper-v2 PoC.
221+
- [whisper](https://github.com/paritytech/whisper) - Implementation of Whisper-v2 PoC.

accounts/ethstore/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,4 +337,4 @@ _This project is a part of the Parity Ethereum toolchain._
337337
- [ethabi](https://github.com/paritytech/ethabi) - Parity Ethereum function calls encoding.
338338
- [ethstore](https://github.com/paritytech/parity-ethereum/blob/master/accounts/ethstore) - Parity Ethereum key management.
339339
- [ethkey](https://github.com/paritytech/parity-ethereum/blob/master/accounts/ethkey) - Parity Ethereum keys generator.
340-
- [whisper](https://github.com/paritytech/parity-ethereum/blob/master/whisper/) - Implementation of Whisper-v2 PoC.
340+
- [whisper](https://github.com/paritytech/whisper) - Implementation of Whisper-v2 PoC.

ethcore/sync/src/api.rs

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -219,31 +219,6 @@ impl From<light_net::Status> for PipProtocolInfo {
219219
}
220220
}
221221

222-
/// Configuration to attach alternate protocol handlers.
223-
/// Only works when IPC is disabled.
224-
pub struct AttachedProtocol {
225-
/// The protocol handler in question.
226-
pub handler: Arc<dyn NetworkProtocolHandler + Send + Sync>,
227-
/// 3-character ID for the protocol.
228-
pub protocol_id: ProtocolId,
229-
/// Supported versions and their packet counts.
230-
pub versions: &'static [(u8, u8)],
231-
}
232-
233-
impl AttachedProtocol {
234-
fn register(&self, network: &NetworkService) {
235-
let res = network.register_protocol(
236-
self.handler.clone(),
237-
self.protocol_id,
238-
self.versions
239-
);
240-
241-
if let Err(e) = res {
242-
warn!(target: "sync", "Error attaching protocol {:?}: {:?}", self.protocol_id, e);
243-
}
244-
}
245-
}
246-
247222
/// A prioritized tasks run in a specialised timer.
248223
/// Every task should be completed within a hard deadline,
249224
/// if it's not it's either cancelled or split into multiple tasks.
@@ -291,8 +266,6 @@ pub struct Params {
291266
pub provider: Arc<dyn (::light::Provider)>,
292267
/// Network layer configuration.
293268
pub network_config: NetworkConfiguration,
294-
/// Other protocols to attach.
295-
pub attached_protos: Vec<AttachedProtocol>,
296269
}
297270

298271
/// Ethereum network protocol handler
@@ -303,8 +276,6 @@ pub struct EthSync {
303276
eth_handler: Arc<SyncProtocolHandler>,
304277
/// Light (pip) protocol handler
305278
light_proto: Option<Arc<LightProtocol>>,
306-
/// Other protocols to attach.
307-
attached_protos: Vec<AttachedProtocol>,
308279
/// The main subprotocol name
309280
subprotocol_name: [u8; 3],
310281
/// Light subprotocol name.
@@ -409,7 +380,6 @@ impl EthSync {
409380
light_proto: light_proto,
410381
subprotocol_name: params.config.subprotocol_name,
411382
light_subprotocol_name: params.config.light_subprotocol_name,
412-
attached_protos: params.attached_protos,
413383
priority_tasks: Mutex::new(priority_tasks_tx),
414384
is_major_syncing
415385
});
@@ -613,9 +583,6 @@ impl ChainNotify for EthSync {
613583
self.network.register_protocol(light_proto, self.light_subprotocol_name, ::light::net::PROTOCOL_VERSIONS)
614584
.unwrap_or_else(|e| warn!("Error registering light client protocol: {:?}", e));
615585
}
616-
617-
// register any attached protocols.
618-
for proto in &self.attached_protos { proto.register(&self.network) }
619586
}
620587

621588
fn stop(&self) {
@@ -886,15 +853,12 @@ pub struct LightSyncParams<L> {
886853
pub subprotocol_name: [u8; 3],
887854
/// Other handlers to attach.
888855
pub handlers: Vec<Arc<dyn LightHandler>>,
889-
/// Other subprotocols to run.
890-
pub attached_protos: Vec<AttachedProtocol>,
891856
}
892857

893858
/// Service for light synchronization.
894859
pub struct LightSync {
895860
proto: Arc<LightProtocol>,
896861
sync: Arc<dyn SyncInfo + Sync + Send>,
897-
attached_protos: Vec<AttachedProtocol>,
898862
network: NetworkService,
899863
subprotocol_name: [u8; 3],
900864
network_id: u64,
@@ -937,7 +901,6 @@ impl LightSync {
937901
Ok(LightSync {
938902
proto: light_proto,
939903
sync: sync,
940-
attached_protos: params.attached_protos,
941904
network: service,
942905
subprotocol_name: params.subprotocol_name,
943906
network_id: params.network_id,
@@ -996,8 +959,6 @@ impl ManageNetwork for LightSync {
996959

997960
self.network.register_protocol(light_proto, self.subprotocol_name, ::light::net::PROTOCOL_VERSIONS)
998961
.unwrap_or_else(|e| warn!("Error registering light client protocol: {:?}", e));
999-
1000-
for proto in &self.attached_protos { proto.register(&self.network) }
1001962
}
1002963

1003964
fn stop_network(&self) {

evmbin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ _This project is a part of the Parity Ethereum toolchain._
5252
- [ethabi](https://github.com/paritytech/ethabi) - Parity Ethereum function calls encoding.
5353
- [ethstore](https://github.com/paritytech/parity-ethereum/blob/master/accounts/ethstore) - Parity Ethereum key management.
5454
- [ethkey](https://github.com/paritytech/parity-ethereum/blob/master/accounts/ethkey) - Parity Ethereum keys generator.
55-
- [whisper](https://github.com/paritytech/parity-ethereum/blob/master/whisper/) - Implementation of Whisper-v2 PoC.
55+
- [whisper](https://github.com/paritytech/whisper) - Implementation of Whisper-v2 PoC.

0 commit comments

Comments
 (0)